On the Linguistic Capacity of Real-Time Counter Automata
Not on the map. Why?
Abstract (arXiv)
Counter machines have achieved a newfound relevance to the field of natural language processing (NLP): recent work suggests some strong-performing recurrent neural networks utilize their memory as counters. Thus, one potential way to understand the success of these networks is to revisit the theory of counter computation. Therefore, we study the abilities of real-time counter machines as formal grammars, focusing on formal properties that are relevant for NLP models. We first show that several variants of the counter machine converge to express the same class of formal languages. We also prove that counter languages are closed under complement, union, intersection, and many other common set operations. Next, we show that counter machines cannot evaluate boolean expressions, even though they can weakly validate their syntax. This has implications for the interpretability and evaluation of neural network systems: successfully matching syntactic patterns does not guarantee that counter memory accurately encodes compositional semantics. Finally, we consider whether counter languages are semilinear. This work makes general contributions to the theory of formal languages that are of potential interest for understanding recurrent neural networks.
Key facts. Cited by 16 papers in the map (data through 7 Oct 2026). First posted on arXiv 15 Apr 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 1; 2022: 2; 2023: 7; 2024: 3; 2025: 2; 2026: 1.
16 papers.
Sort:
By area:
- 2023Large Language Modelscited by 774
- 2022The Parallelism Tradeoff: Limitations of Log-Precision Transformerscited by 191
- 2023What Formal Languages Can Transformers Express? A Surveycited by 120
- 2024In-Context Language Learning: Architectures and Algorithmscited by 86
- 2023Tighter Bounds on the Expressivity of Transformer Encoderscited by 65
- 2023The Expressive Power of Transformers with Chain of Thoughtcited by 47
- 2023Practical Computational Power of Linear Transformers and Their Recurrent and Self-Referential Extensionscited by 20
- 2024Bridging the Empirical-Theoretical Gap in Neural Network Formal Language Learning Using Minimum Description Lengthcited by 14
- 2025Characterizing the Expressivity of Fixed-Precision Transformer Language Modelscited by 14
- 2021Formal Language Theory Meets Modern NLPcited by 9
- 2022Exploring the Long-Term Generalization of Counting Behavior in RNNscited by 7
- 2026Why Are Linear RNNs More Parallelizable?cited by 7
4 more
- 2023Theoretical Conditions and Empirical Failure of Bracket Counting on Long Sequences with Linear Recurrent Networkscited by 3
- 2023Benchmarking Neural Network Generalization for Grammar Inductioncited by 3
- 2024Stability Analysis of Various Symbolic Rule Extraction Methods from Recurrent Neural Networkcited by 3
- 2025Three tiers of computation in transformers and in brain architecturescited by 1
- 2026Why Are Linear RNNs More Parallelizable?4 Mar 2026
- 2025Characterizing the Expressivity of Fixed-Precision Transformer Language Models29 May 2025
- 2025Three tiers of computation in transformers and in brain architectures5 Mar 2025
- 2024Bridging the Empirical-Theoretical Gap in Neural Network Formal Language Learning Using Minimum Description Length15 Feb 2024
- 2024Stability Analysis of Various Symbolic Rule Extraction Methods from Recurrent Neural Network4 Feb 2024
- 2024In-Context Language Learning: Architectures and Algorithms23 Jan 2024
- 2023What Formal Languages Can Transformers Express? A Survey1 Nov 2023
- 2023Practical Computational Power of Linear Transformers and Their Recurrent and Self-Referential Extensions24 Oct 2023
- 2023The Expressive Power of Transformers with Chain of Thought11 Oct 2023
- 2023Benchmarking Neural Network Generalization for Grammar Induction16 Aug 2023
- 2023Large Language Models11 Jul 2023
- 2023Theoretical Conditions and Empirical Failure of Bracket Counting on Long Sequences with Linear Recurrent Networks7 Apr 2023
4 more
- 2023Tighter Bounds on the Expressivity of Transformer Encoders25 Jan 2023
- 2022Exploring the Long-Term Generalization of Counting Behavior in RNNs29 Nov 2022
- 2022The Parallelism Tradeoff: Limitations of Log-Precision Transformers2 Jul 2022
- 2021Formal Language Theory Meets Modern NLP19 Feb 2021
- 2023The Expressive Power of Transformers with Chain of Thoughtcited by 47
- 2023The Expressive Power of Transformers with Chain of Thought11 Oct 2023
- 2023Large Language Modelscited by 774
- 2022The Parallelism Tradeoff: Limitations of Log-Precision Transformerscited by 191
- 2023What Formal Languages Can Transformers Express? A Surveycited by 120
- 2024In-Context Language Learning: Architectures and Algorithmscited by 86
- 2023Tighter Bounds on the Expressivity of Transformer Encoderscited by 65
- 2023Practical Computational Power of Linear Transformers and Their Recurrent and Self-Referential Extensionscited by 20
- 2024Bridging the Empirical-Theoretical Gap in Neural Network Formal Language Learning Using Minimum Description Lengthcited by 14
- 2025Characterizing the Expressivity of Fixed-Precision Transformer Language Modelscited by 14
- 2021Formal Language Theory Meets Modern NLPcited by 9
- 2022Exploring the Long-Term Generalization of Counting Behavior in RNNscited by 7
- 2026Why Are Linear RNNs More Parallelizable?cited by 7
- 2023Theoretical Conditions and Empirical Failure of Bracket Counting on Long Sequences with Linear Recurrent Networkscited by 3
12 most cited of 15 All 15 (JSON)
- 2026Why Are Linear RNNs More Parallelizable?4 Mar 2026
- 2025Characterizing the Expressivity of Fixed-Precision Transformer Language Models29 May 2025
- 2025Three tiers of computation in transformers and in brain architectures5 Mar 2025
- 2024Bridging the Empirical-Theoretical Gap in Neural Network Formal Language Learning Using Minimum Description Length15 Feb 2024
- 2024Stability Analysis of Various Symbolic Rule Extraction Methods from Recurrent Neural Network4 Feb 2024
- 2024In-Context Language Learning: Architectures and Algorithms23 Jan 2024
- 2023What Formal Languages Can Transformers Express? A Survey1 Nov 2023
- 2023Practical Computational Power of Linear Transformers and Their Recurrent and Self-Referential Extensions24 Oct 2023
- 2023Benchmarking Neural Network Generalization for Grammar Induction16 Aug 2023
- 2023Large Language Models11 Jul 2023
- 2023Theoretical Conditions and Empirical Failure of Bracket Counting on Long Sequences with Linear Recurrent Networks7 Apr 2023
- 2023Tighter Bounds on the Expressivity of Transformer Encoders25 Jan 2023
12 newest of 15 All 15 (JSON)