What Formal Languages Can Transformers Express? A Survey
Not on the map. Why?
Abstract (arXiv)
As transformers have gained prominence in natural language processing, some researchers have investigated theoretically what problems they can and cannot solve, by treating problems as formal languages. Exploring such questions can help clarify the power of transformers relative to other models of computation, their fundamental capabilities and limits, and the impact of architectural choices. Work in this subarea has made considerable progress in recent years. Here, we undertake a comprehensive survey of this work, documenting the diverse assumptions that underlie different results and providing a unified framework for harmonizing seemingly contradictory findings.
Key facts. Cited by 124 papers in the map (data through 14 Oct 2026). Builds on 47 of its 99 references that are in the map. First posted on arXiv 1 Nov 2023.
Builds on
47 of 99 references.
References · 47
- 2017Attention Is All You Needcited by 60,361
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
- 2016Layer Normalizationcited by 5,669
- 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,548
- 2016Gaussian Error Linear Units (GELUs)cited by 3,502
- 2021Show Your Work: Scratchpads for Intermediate Computation with Language Modelscited by 886
- 2019Are Transformers universal approximators of sequence-to-sequence functions?cited by 406
- 2021A Survey of Transformerscited by 401
- 2019Learning Deep Transformer Models for Machine Translationcited by 309
- 2023Towards Revealing the Mystery behind Chain of Thought: A Theoretical Perspectivecited by 294
35 more
- 2019Theoretical Limitations of Self-Attention in Neural Sequence Modelscited by 288
- 2022Transformers Learn Shortcuts to Automatacited by 268
- 2022Neural Networks and the Chomsky Hierarchycited by 217
- 2023What Algorithms can Transformers Learn? A Study in Length Generalizationcited by 199
- 2022The Parallelism Tradeoff: Limitations of Log-Precision Transformerscited by 193
- 2021Thinking Like Transformerscited by 184
- 2021Saturated Transformers are Constant-Depth Threshold Circuitscited by 139
- 2023Representational Strengths and Limitations of Transformerscited by 133
- 2019On the Turing Completeness of Modern Neural Network Architecturescited by 129
- 2018On the Practical Computational Power of Finite Precision RNNs for Language Recognitioncited by 117
- 2022Overcoming a Theoretical Limitation of Self-Attentioncited by 113
- 2021Self-Attention Networks Can Process Bounded Hierarchical Languagescited by 105
- 2023Tracr: Compiled Transformers as a Laboratory for Interpretabilitycited by 104
- 2021Statistically Meaningful Approximation: a Case Study on Approximating Turing Machines with Transformerscited by 102
- 2022Formal Language Recognition by Hard Attention Transformers: Perspectives from Circuit Complexitycited by 93
- 2020On the Computational Power of Transformers and its Implications in Sequence Modelingcited by 85
- 2022Formal Algorithms for Transformerscited by 72
- 2022Simplicity Bias in Transformers and their Ability to Learn Sparse Boolean Functionscited by 70
- 2022A Logic for Expressing Log-Precision Transformerscited by 67
- 2023Tighter Bounds on the Expressivity of Transformer Encoderscited by 66
- 2020A Formal Hierarchy of RNN Architecturescited by 62
- 2020RNNs can generate bounded hierarchical languages with optimal memorycited by 59
- 2020Limitations of Autoregressive Models and Their Alternativescited by 55
- 2019Sequential Neural Networks as Automatacited by 54
- 2020How Can Self-Attention Networks Recognize Dyck-n Languages?cited by 51
- 2019LSTM Networks Can Perform Dynamic Countingcited by 45
- 2023Entity Tracking in Language Modelscited by 44
- 2023Learning Transformer Programscited by 41
- 2020Effects of Parameter Norm Growth During Transformer Training: Inductive Bias from Gradient Descentcited by 40
- 2023Logical Languages Accepted by Transformer Encoders with Hard Attentioncited by 38
- 2023Average-Hard Attention Transformers are Constant-Depth Uniform Threshold Circuitscited by 26
- 2020On the Linguistic Capacity of Real-Time Counter Automatacited by 17
- 2020A Survey of Neural Networks and Formal Languagescited by 17
- 2021Formal Language Theory Meets Modern NLPcited by 9
- 2018On learning an interpreted language with recurrent modelscited by 3
Built on by
Citing papers per year: 2024: 24; 2025: 55; 2026: 45.
124 papers.
Sort:
By area:
- 2025CODI: Compressing Chain-of-Thought into Continuous Space via Self-Distillationcited by 225
- 2024The Illusion of State in State-Space Modelscited by 187
- 2024Unlocking State-Tracking in Linear RNNs Through Negative Eigenvaluescited by 101
- 2024Transformers, parallel computation, and logarithmic depthcited by 79
- 2024A Mechanistic Analysis of a Transformer Trained on a Symbolic Multi-Step Reasoning Taskcited by 49
- 2024The Expressive Capacity of State Space Models: A Formal Language Perspectivecited by 46
- 2024Transformers are Universal In-context Learnerscited by 43
- 2024Counting Like Transformers: Compiling Temporal Counting Logic Into Softmax Transformerscited by 39
- 2025Between Circuits and Chomsky: Pre-pretraining on Formal Languages Imparts Linguistic Biasescited by 37
- 2025(How) Do Language Models Track State?cited by 34
- 2024Separations in the Representational Capabilities of Transformers and Recurrent Architecturescited by 29
- 2025Lower Bounds for Chain-of-Thought Reasoning in Hard-Attention Transformerscited by 28
38 more
- 2025Cramming 1568 Tokens into a Single Vector and Back Again: Exploring the Limits of Embedding Space Capacitycited by 28
- 2024Training Neural Networks as Recognizers of Formal Languagescited by 24
- 2025Can Language Models Learn Typologically Implausible Languages?cited by 23
- 2025A Theory of Learning with Autoregressive Chain of Thoughtcited by 23
- 2025Implicit Language Models are RNNs: Balancing Parallelization and Expressivitycited by 22
- 2024Mixture of Parrots: Experts improve memorization more than reasoningcited by 21
- 2025Exact Expressive Power of Transformers with Paddingcited by 19
- 2025Constant Bit-size Transformers Are Turing Completecited by 19
- 2025Structured Sparse Transition Matrices to Enable State Tracking in State-Space Modelscited by 16
- 2025Characterizing the Expressivity of Fixed-Precision Transformer Language Modelscited by 14
- 2025Constrained Decoding of Diffusion LLMs with Context-Free Grammarscited by 14
- 2025The Serial Scaling Hypothesiscited by 13
- 2025Blending Complementary Memory Systems in Hybrid Quadratic-Linear Transformerscited by 12
- 2025How Transformers Learn Regular Language Recognition: A Theoretical Study on Training Dynamics and Implicit Biascited by 11
- 2025Unique Hard Attention: A Tale of Two Sidescited by 10
- 2024Fundamental Limitations on Subquadratic Alternatives to Transformerscited by 9
- 2024Relations, Negations, and Numbers: Looking for Logic in Generative Text-to-Image Modelscited by 9
- 2025Lost in Transmission: When and Why LLMs Fail to Reason Globallycited by 9
- 2025The Counting Power of Transformerscited by 9
- 2025Mechanistic evaluation of Transformers and state space modelscited by 9
- 2025Comprehension Without Competence: Architectural Limits of LLMs in Symbolic Computation and Reasoningcited by 9
- 2025Softmax Transformers are Turing-Completecited by 9
- 2024Transformers as Transducerscited by 8
- 2025Meta-Learning Neural Mechanisms rather than Bayesian Priorscited by 8
- 2025Pause Tokens Strictly Increase the Expressivity of Constant-Depth Transformerscited by 8
- 2025Sequential-Parallel Duality in Prefix Scannable Modelscited by 8
- 2025Fast weight programming and linear transformers: from machine learning to neurobiologycited by 8
- 2026Why Are Linear RNNs More Parallelizable?cited by 8
- 2025Compositional Reasoning with Transformers, RNNs, and Chain of Thoughtcited by 6
- 2025Born a Transformer -- Always a Transformer? On the Effect of Pretraining on Architectural Abilitiescited by 6
- 2025Transformers through the lens of support-preserving maps between measurescited by 6
- 2025The Transformer Cookbookcited by 6
- 2026Learning State-Tracking from Code Using Linear RNNscited by 6
- 2026Do Language Models Track Entities Across State Changes?cited by 6
- 2024Transformer Encoder Satisfiability: Complexity and Impact on Formal Reasoningcited by 5
- 2024Learning Linear Attention in Polynomial Timecited by 5
- 2024Quantifying artificial intelligence through algorithmic generalizationcited by 5
- 2025Can Large Language Models Learn Formal Logic? A Data-Driven Training and Evaluation Frameworkcited by 5
50 most cited of 124 All 124 (JSON)
- 2026Training Dynamics of Transformers on Unbounded Inputs: Attention Learning Can Lag Output Layer Learning14 Oct 2026
- 2026From Transformers to Weighted Automata: Towards the Verification of Large Language Models3 Oct 2026
- 2026Rotate the Loop: Blockwise Conformality for Looped Transformers30 Sep 2026
- 2026Synthetic Pre-pretraining Survives Scale, but Not as a Grammatical Prior30 Sep 2026
- 2026Repetition, Not Length: Isolating the Counting Failure in Neural Text-to-Speech29 Sep 2026
- 2026TULIP: Targeted LLM Unlearning at Layers Identified Per-Input28 Sep 2026
- 2026VC Dimension and Expressivity of Real-Valued Transformers25 Sep 2026
- 2026Scaling of Capability and Efficiency at Inference Time in Large Reasoning Models22 Sep 2026
- 2026Length Generalization for Transformers via Compression8 Sep 2026
- 2026On the Expressive Power of Transformers13 Aug 2026
- 2026Transcript-Managed Transformers: Monotone Multi-Agent Collapse and Universality with Two Pop-Enabled Transcripts31 Jul 2026
- 2026Indexing: the Beginning and the End24 Jul 2026
38 more
- 2026The Information Shadow: Measuring Structural Limits on What Language Models Can Learn17 Jul 2026
- 2026When Does Reward Teach State? A Hidden-Automaton Instrument and a Group-Language Warning Signal11 Jul 2026
- 2026Data-driven Machine Learning Cannot Reach Symbolic-level Logical Reasoning -- The Limit of the Scaling Law24 Jun 2026
- 2026An expressivity analysis of hierarchical modelling in deep transformers via bounded-depth grammars16 Jun 2026
- 2026Understanding the Parameter Space Geometry of Transformers Encoding Boolean Functions7 Jun 2026
- 2026An Algebraic View of the Expressivity of Recurrent Language Models1 Jun 2026
- 2026Refit the Probe: Single-Direction Ablation Is Not a Necessity Test30 May 2026
- 2026The Deterministic Horizon: When Extended Reasoning Fails and Tool Delegation Becomes Necessary29 May 2026
- 2026Positional versus Symbolic Attention Heads: Learning Dynamics, RoPE Geometry, and Length Generalization29 May 2026
- 2026Revisiting Padded Transformer Expressivity: Which Architectural Choices Matter and Which Don't28 May 2026
- 2026Do Language Models Track Entities Across State Changes?28 May 2026
- 2026Length Generalization with Log-Depth Recurrent Units25 May 2026
- 2026How Many Different Outputs Can a Transformer Generate?21 May 2026
- 2026A Sharper Picture of Generalization in Transformers20 May 2026
- 2026Provably Shorter Scratchpads in Hybrid DeltaNet-Attention Decoders15 May 2026
- 2026Continuous Latent Contexts Enable Efficient Online Learning in Transformers11 May 2026
- 2026Position: Avoid Overstretching LLMs for every Enterprise Task10 May 2026
- 2026Encoder-Decoder Transformers: Logical Characterizations and Periodicity8 May 2026
- 2026The Topological Trouble With Transformers18 Apr 2026
- 2026Circuit Complexity of Hierarchical Knowledge Tracing and Implications for Log-Precision Transformers25 Mar 2026
- 2026Predictive Statistics Shape Emergent World Representations of Grid Walkers17 Mar 2026
- 2026Why Depth Matters in Parallelizable Sequence Models: A Lie Algebraic View5 Mar 2026
- 2026Why Are Linear RNNs More Parallelizable?4 Mar 2026
- 2026Synthesis and Verification of Transformer Programs (Technical Report)18 Feb 2026
- 2026Learning State-Tracking from Code Using Linear RNNs16 Feb 2026
- 2026Length Generalization Bounds for Transformers13 Feb 2026
- 2026Why Agentic Theorem Prover Works: A Statistical Provability Theory of Mathematical Reasoning Models11 Feb 2026
- 2026Trapped by simplicity: When Transformers fail to learn from noisy features9 Feb 2026
- 2026On the Role of Computation in Reinforcement Learning5 Feb 2026
- 2026Understanding LLM Failures: A Multi-Tape Turing Machine Analysis of Systematic Errors in Language Model Reasoning27 Jan 2026
- 2026On the Expressiveness of State Space Models via Temporal Logics27 Jan 2026
- 2026Barriers to Discrete Reasoning with Transformers: A Survey Across Depth, Exactness, and Bandwidth19 Jan 2026
- 2026Query Languages for Machine-Learning Models14 Jan 2026
- 2025Reflection Pretraining Enables Token-Level Self-Correction in Biological Sequence Models24 Dec 2025
- 2025Softmax Transformers are Turing-Complete25 Nov 2025
- 2025Probability Distributions Computed by Autoregressive Transformers31 Oct 2025
- 2025Transformers are Inherently Succinct22 Oct 2025
- 2025The End of Transformers? On Challenging Attention and the Rise of Sub-Quadratic Architectures6 Oct 2025
50 newest of 124 All 124 (JSON)
- 2025CODI: Compressing Chain-of-Thought into Continuous Space via Self-Distillationcited by 225
- 2025Lower Bounds for Chain-of-Thought Reasoning in Hard-Attention Transformerscited by 28
- 2024Training Neural Networks as Recognizers of Formal Languagescited by 24
- 2025A Theory of Learning with Autoregressive Chain of Thoughtcited by 23
- 2025Implicit Language Models are RNNs: Balancing Parallelization and Expressivitycited by 22
- 2025Exact Expressive Power of Transformers with Paddingcited by 19
- 2025Lost in Transmission: When and Why LLMs Fail to Reason Globallycited by 9
- 2025Comprehension Without Competence: Architectural Limits of LLMs in Symbolic Computation and Reasoningcited by 9
- 2025Softmax Transformers are Turing-Completecited by 9
- 2025Compositional Reasoning with Transformers, RNNs, and Chain of Thoughtcited by 6
- 2025Can Large Language Models Learn Formal Logic? A Data-Driven Training and Evaluation Frameworkcited by 5
- 2025Beyond Memorization: Extending Reasoning Depth with Recurrence, Memory and Test-Time Compute Scalingcited by 4
12 most cited of 19 All 19 (JSON)
- 2026Scaling of Capability and Efficiency at Inference Time in Large Reasoning Models22 Sep 2026
- 2026Data-driven Machine Learning Cannot Reach Symbolic-level Logical Reasoning -- The Limit of the Scaling Law24 Jun 2026
- 2026The Deterministic Horizon: When Extended Reasoning Fails and Tool Delegation Becomes Necessary29 May 2026
- 2026Why Agentic Theorem Prover Works: A Statistical Provability Theory of Mathematical Reasoning Models11 Feb 2026
- 2026Understanding LLM Failures: A Multi-Tape Turing Machine Analysis of Systematic Errors in Language Model Reasoning27 Jan 2026
- 2025Reflection Pretraining Enables Token-Level Self-Correction in Biological Sequence Models24 Dec 2025
- 2025Softmax Transformers are Turing-Complete25 Nov 2025
- 2025Efficient Turing Machine Simulation with Transformers28 Sep 2025
- 2025Beyond Memorization: Extending Reasoning Depth with Recurrence, Memory and Test-Time Compute Scaling22 Aug 2025
- 2025Comprehension Without Competence: Architectural Limits of LLMs in Symbolic Computation and Reasoning14 Jul 2025
- 2025Exact Expressive Power of Transformers with Padding25 May 2025
- 2025Lost in Transmission: When and Why LLMs Fail to Reason Globally13 May 2025
12 newest of 19 All 19 (JSON)
- 2024Unlocking State-Tracking in Linear RNNs Through Negative Eigenvaluescited by 101
- 2024Fundamental Limitations on Subquadratic Alternatives to Transformerscited by 9
- 2025Mechanistic evaluation of Transformers and state space modelscited by 9
- 2025Sequential-Parallel Duality in Prefix Scannable Modelscited by 8
- 2026Why Depth Matters in Parallelizable Sequence Models: A Lie Algebraic Viewcited by 1
- 2026Why Depth Matters in Parallelizable Sequence Models: A Lie Algebraic View5 Mar 2026
- 2025Sequential-Parallel Duality in Prefix Scannable Models12 Jun 2025
- 2025Mechanistic evaluation of Transformers and state space models21 May 2025
- 2024Unlocking State-Tracking in Linear RNNs Through Negative Eigenvalues19 Nov 2024
- 2024Fundamental Limitations on Subquadratic Alternatives to Transformers5 Oct 2024
- 2026On the Role of Computation in Reinforcement Learningcited by 3
- 2026On the Role of Computation in Reinforcement Learning5 Feb 2026
- 2024The Illusion of State in State-Space Modelscited by 187
- 2024Transformers, parallel computation, and logarithmic depthcited by 79
- 2024A Mechanistic Analysis of a Transformer Trained on a Symbolic Multi-Step Reasoning Taskcited by 49
- 2024The Expressive Capacity of State Space Models: A Formal Language Perspectivecited by 46
- 2024Transformers are Universal In-context Learnerscited by 43
- 2024Counting Like Transformers: Compiling Temporal Counting Logic Into Softmax Transformerscited by 39
- 2025Between Circuits and Chomsky: Pre-pretraining on Formal Languages Imparts Linguistic Biasescited by 37
- 2025(How) Do Language Models Track State?cited by 34
- 2024Separations in the Representational Capabilities of Transformers and Recurrent Architecturescited by 29
- 2025Can Language Models Learn Typologically Implausible Languages?cited by 23
- 2025Constant Bit-size Transformers Are Turing Completecited by 19
- 2025Structured Sparse Transition Matrices to Enable State Tracking in State-Space Modelscited by 16
12 most cited of 95 All 95 (JSON)
- 2026Training Dynamics of Transformers on Unbounded Inputs: Attention Learning Can Lag Output Layer Learning14 Oct 2026
- 2026From Transformers to Weighted Automata: Towards the Verification of Large Language Models3 Oct 2026
- 2026Rotate the Loop: Blockwise Conformality for Looped Transformers30 Sep 2026
- 2026Synthetic Pre-pretraining Survives Scale, but Not as a Grammatical Prior30 Sep 2026
- 2026Repetition, Not Length: Isolating the Counting Failure in Neural Text-to-Speech29 Sep 2026
- 2026VC Dimension and Expressivity of Real-Valued Transformers25 Sep 2026
- 2026Length Generalization for Transformers via Compression8 Sep 2026
- 2026On the Expressive Power of Transformers13 Aug 2026
- 2026Transcript-Managed Transformers: Monotone Multi-Agent Collapse and Universality with Two Pop-Enabled Transcripts31 Jul 2026
- 2026Indexing: the Beginning and the End24 Jul 2026
- 2026The Information Shadow: Measuring Structural Limits on What Language Models Can Learn17 Jul 2026
- 2026When Does Reward Teach State? A Hidden-Automaton Instrument and a Group-Language Warning Signal11 Jul 2026
12 newest of 95 All 95 (JSON)