Hardness of Learning Regular Languages in the Next Symbol Prediction Setting

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Bhattamishra, Satwik, Blunsom, Phil, Kanade, Varun
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866911224258625536
author Bhattamishra, Satwik
Blunsom, Phil
Kanade, Varun
author_facet Bhattamishra, Satwik
Blunsom, Phil
Kanade, Varun
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2510_18634
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Hardness of Learning Regular Languages in the Next Symbol Prediction Setting
Bhattamishra, Satwik
Blunsom, Phil
Kanade, Varun
Machine Learning
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.
title Hardness of Learning Regular Languages in the Next Symbol Prediction Setting
topic Machine Learning
url https://arxiv.org/abs/2510.18634