Hardness of Learning Regular Languages in the Next Symbol Prediction Setting

Satwik Bhattamishra, Phil Blunsom, Varun Kanade
10/21/2025
cs.LG

No confident code implementation found for this paper.

Abstract

We study the learnability of languages in the Next Symbol Prediction (NSP) setting, where a learner receives only positive examples from a language together with, for every prefix, (i) whether the prefix itself is in the language and (ii) which next symbols can lead to an accepting string. This setting has been used in prior works to empirically analyze neural sequence models, and additionally, we observe that efficient algorithms for the NSP setting can be used to learn the (truncated) support of language models. We formalize the setting so as to make it amenable to PAC-learning analysis. While the setting provides a much richer set of labels than the conventional classification setting, we show that learning concept classes such as DFAs and Boolean formulas remains computationally hard. The proof is via a construction that makes almost all additional labels uninformative, yielding a reduction from the conventional learning problem to learning with NSP labels. Under cryptographic assumptions, the reduction implies that the problem of learning DFAs is computationally hard in the NSP setting.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{bhattamishra2025hardness,
  title  = {Hardness of Learning Regular Languages in the Next Symbol Prediction Setting},
  author = {Satwik Bhattamishra and Phil Blunsom and Varun Kanade},
  year   = {2025},
  eprint = {2510.18634},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2510.18634v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2510.18634.svg)](https://codeofpaper.com/paper/2510.18634)

Discussion