Training Neural Networks as Recognizers of Formal Languages
Alexandra Butoi, Ghazal Khalighinejad, Anej Svete, Josef Valvoda, Ryan Cotterell, Brian DuSell
摘要
Characterizing the computational power of neural network architectures in terms of formal language theory remains a crucial line of research, as it describes lower and upper bounds on the reasoning capabilities of modern AI. However, when empirically testing these bounds, existing work often leaves a discrepancy between experiments and the formal claims they are meant to support. The problem is that formal language theory pertains specifically to recognizers: machines that receive a string as input and classify whether it belongs to a language. On the other hand, it is common instead to evaluate language models on proxy tasks, e.g., language modeling or sequence-to-sequence transduction, that are similar in only an informal sense to the underlying theory. We correct this mismatch by training and evaluating neural networks directly as binary classifiers of strings, using a general method that can be applied to a wide variety of languages. As part of this, we extend an algorithm recently proposed by Snaebjarnarson et al. (2025) for efficient length-controlled sampling of strings from regular languages. We provide results on a variety of languages across the Chomsky hierarchy for three neural architectures: a simple RNN, an LSTM, and a causally-masked transformer. We find that the RNN and LSTM often outperform the transformer, and that auxiliary training objectives such as language modeling can help, although no single objective uniformly improves performance across languages and architectures. Our contributions will facilitate theoretically sound empirical testing of language recognition claims in future work. We have released our datasets as a benchmark called FLaRe 1 (Formal Language Recognition), along with our code. 2
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 15 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Characterizing the Expressivity of Fixed-Precision Transformer Language Models 引用了 Neural Networks and the Chomsky Hierarchy
- Discovering Interpretable Algorithms by Decompiling Transformers to RASP 引用了 Characterizing the Expressivity of Fixed-Precision Transformer Language Models
- Separations in the Representational Capabilities of Transformers and Recurrent Architectures 引用了 Repeat After Me: Transformers are Better than State Space Models at Copying
- Separations in the Representational Capabilities of Transformers and Recurrent Architectures 引用了 Neural Networks and the Chomsky Hierarchy
- Repeat After Me: Transformers are Better than State Space Models at Copying 引用了 Inductive Biases and Variable Creation in Self-Attention Mechanisms
- Repeat After Me: Transformers are Better than State Space Models at Copying 引用了 Neural Networks and the Chomsky Hierarchy
- Revisiting Padded Transformer Expressivity: Which Architectural Choices Matter and Which Don't 引用了 Characterizing the Expressivity of Fixed-Precision Transformer Language Models
- Revisiting Padded Transformer Expressivity: Which Architectural Choices Matter and Which Don't 引用了 On the Reasoning Abilities of Masked Diffusion Language Models
- Revisiting Padded Transformer Expressivity: Which Architectural Choices Matter and Which Don't 引用了 Neural Networks and the Chomsky Hierarchy
引用它的顶会 Paper15
- Characterizing the Expressivity of Fixed-Precision Transformer Language ModelsJiaoda Li, Ryan CotterellNeurIPS 2025 · 18 次引用
- On the Reasoning Abilities of Masked Diffusion Language ModelsAnej Svete, Ashish SabharwalICLR 2026 · 8 次引用
- Information Locality as an Inductive Bias for Neural Language ModelsTaiga Someya, Anej Svete, Brian DuSell, Timothy J. O'Donnell 等ACL 2025 · 6 次引用
- Discovering Interpretable Algorithms by Decompiling Transformers to RASPXinting Huang, Aleksandra Bakalova, Satwik Bhattamishra, William Merrill 等ICML 2026 · 3 次引用
- Revisiting Padded Transformer Expressivity: Which Architectural Choices Matter and Which Don'tAnej Svete, William Merrill, Ryan Cotterell, Ashish SabharwalICML 2026 · 3 次引用
它引用的 Paper18
- Repeat After Me: Transformers are Better than State Space Models at CopyingSamy Jelassi, David Brandfonbrener, Sham M. Kakade, Eran MalachICML 2024 · 176 次引用
- Inductive Biases and Variable Creation in Self-Attention MechanismsBenjamin L. Edelman, Surbhi Goel, Sham M. Kakade, Cyril ZhangICML 2022 · 154 次引用
- In-Context Language Learning: Architectures and AlgorithmsEkin Akyürek, Bailin Wang, Yoon Kim, Jacob AndreasICML 2024 · 91 次引用
- Neural Networks and the Chomsky HierarchyGrégoire Delétang, Anian Ruoss, Jordi Grau-Moya, Tim Genewein 等ICLR 2023 · 45 次引用
- Separations in the Representational Capabilities of Transformers and Recurrent ArchitecturesSatwik Bhattamishra, Michael Hahn, Phil Blunsom, Varun KanadeNeurIPS 2024 · 36 次引用
相关 Paper
- Bridging the Empirical-Theoretical Gap in Neural Network Formal Language Learning Using Minimum Description LengthNur Geffen Lan, Emmanuel Chemla, Roni KatzirACL 2024 · 1 次引用
- Transparency at the Source: Evaluating and Interpreting Language Models With Access to the True DistributionJaap Jumelet, Willem H. ZuidemaEMNLP Findings 2023
- What Languages are Easy to Language-Model? A Perspective from Learning Probabilistic Regular LanguagesNadav Borenstein, Anej Svete, Robin Chan, Josef Valvoda 等ACL 2024
- Tighter Bounds on the Expressivity of Transformer EncodersDavid Chiang, Peter Cholak, Anand PillayICML 2023 · 80 次引用
- An Algebraic View of the Expressivity of Recurrent Language ModelsFranz Nowak, Ryan Cotterell, Reda BoumasmoudICML 2026 · 1 次引用
