Bhattamishra et al., The Next Symbol Prediction Problem

0.1. Definition. (Deterministic finite automaton)   A deterministic finite automaton is a tuple 𝑄,Σ,𝛿,𝑞0,𝐹𝐴 where—

  1. 𝑄 is a finite set of states,
  2. Σ is a finite alpahbet,
  3. 𝛿:𝑄×Σ𝑄 is a transition function, and
  4. 𝐹𝐴𝑄 is a set of accepting states.
0.2. Definition.   Let 𝑥:𝑛 denote the prefix of 𝑛 up to length 𝑛, 𝜆 the empty string, and Pref(𝑥)={𝑥:𝑘:0𝑘|𝑥|}, and likewise on a set of strings. For a state 𝑞, 𝐹(𝑞)=1 iff 𝑞𝐹𝑎 and 0 otherwise. 𝑞dead denotes a dead state in a reject state where all symbols have a transition to the same dead state. 𝜑(𝑞,𝜎)=1 if 𝛿(𝑞,𝜎)=𝑞dead and 0 otherwise.

0.3. Definition. (Next symbol prediction)   The example oracle produces only positive exaamples. However, for every prefix of an input, it provides the legal symbols for the next step, and the label 𝑐(𝑥:𝑛) of the prefix. Thus information about negative examples is given by the labels of prefixes and the valid symbols for the next step.

The task of a predictor is to predict, for any input 𝑥, the next set of valid symbols, and the labels for each prefix, i.e. (|Σ|+1)(𝑙+1) labels. has error 1 on an input if any of the labels is incorrect, and 0 otherwise. Then the error of with respect to a target language 𝑐 and distribution 𝐷 is

ℒ︀NSP(;𝑐,𝐷)=𝔼𝐷[err((𝑥),𝑐(𝑥))].
0.4. Definition. (PAC-learning under next symbol prediction)   A concept class 𝐶 is PAC-learnable in the next symbol prediction setting with hypothesis class 𝐻 if there is a learning algorithm 𝐿 such that for every 𝑐𝐶 and 𝐷 over 𝑋 for every 0<𝜀,𝛿<0.5 if 𝐿 is given access to…