MLRegTest: A Benchmark for the Machine Learning of Regular Languages
Not on the map. Why?
Abstract (arXiv)
Synthetic datasets constructed from formal languages allow fine-grained examination of the learning and generalization capabilities of machine learning systems for sequence classification. This article presents a new benchmark for machine learning systems on sequence classification called MLRegTest, which contains training, development, and test sets from 1,800 regular languages. Different kinds of formal languages represent different kinds of long-distance dependencies, and correctly identifying long-distance dependencies in sequences is a known challenge for ML systems to generalize successfully. MLRegTest organizes its languages according to their logical complexity (monadic second order, first order, propositional, or monomial expressions) and the kind of logical literals (string, tier-string, subsequence, or combinations thereof). The logical complexity and choice of literal provides a systematic way to understand different kinds of long-distance dependencies in regular languages, and therefore to understand the capacities of different ML systems to learn such long-distance dependencies. Finally, the performance of different neural networks (simple RNN, LSTM, GRU, transformer) on MLRegTest is examined. The main conclusion is that performance depends significantly on the kind of test set, the class of language, and the neural network architecture.
Key facts. Cited by 7 papers in the map (data through 14 Oct 2026). Builds on 9 of its 66 references that are in the map. First posted on arXiv 16 Apr 2023.
Builds on
9 of 66 references.
References · 9
- 2014Deep Learning in Neural Networks: An Overviewcited by 770
- 2022Neural Networks and the Chomsky Hierarchycited by 217
- 2022Simplicity Bias in Transformers and their Ability to Learn Sparse Boolean Functionscited by 70
- 2022A Logic for Expressing Log-Precision Transformerscited by 67
- 2017Extracting Automata from Recurrent Neural Networks Using Queries and Counterexamplescited by 66
- 2020How Can Self-Attention Networks Recognize Dyck-n Languages?cited by 51
- 2021Sensitivity as a Complexity Measure for Sequence Classification Taskscited by 28
- 2018Evaluating the Ability of LSTMs to Learn Context-Free Grammarscited by 16
- 2020Connecting Weighted Automata, Tensor Networks and Recurrent Neural Networks through Spectral Learningcited by 7
Built on by
Citing papers per year: 2023: 3; 2024: 2; 2025: 1; 2026: 1.
7 papers.
- 2024In-Context Language Learning: Architectures and Algorithmscited by 89
- 2023Exposing Attention Glitches with Flip-Flop Language Modelingcited by 75
- 2024Training Neural Networks as Recognizers of Formal Languagescited by 24
- 2023State space models can express n-gram languagescited by 3
- 2025Probability Distributions Computed by Autoregressive Transformerscited by 2
- 2023Correct and Optimal: the Regular Expression Inference Challengecited by 0
- 2026Causally Evaluating the Learnability of Formal Language Taskscited by 0
- 2026Causally Evaluating the Learnability of Formal Language Tasks8 Jun 2026
- 2025Probability Distributions Computed by Autoregressive Transformers31 Oct 2025
- 2024Training Neural Networks as Recognizers of Formal Languages11 Nov 2024
- 2024In-Context Language Learning: Architectures and Algorithms23 Jan 2024
- 2023Correct and Optimal: the Regular Expression Inference Challenge15 Aug 2023
- 2023State space models can express n-gram languages20 Jun 2023
- 2023Exposing Attention Glitches with Flip-Flop Language Modeling1 Jun 2023