Characterizing the Expressivity of Fixed-Precision Transformer Language Models
Not on the map. Why?
Abstract (arXiv)
Transformer-based language models (LMs) have achieved widespread empirical success, but their theoretical expressive power remains only partially understood. In this work, we analyze a restricted idealization of fixed-precision transformers with strict future masking, soft attention, and no positional encodings. We establish that this class of models is exactly as expressive as a specific fragment of linear temporal logic that contains only a single temporal operator: the past operator. We further connect this fragment to established classes in formal language theory, automata theory, and algebra, yielding a unified framework for understanding transformer expressivity under this idealization. Finally, we present empirical results that align closely with our theory: transformers trained on languages within their characterized expressive capacity generalize reliably across sequence lengths, while they consistently fail to generalize on languages beyond it.
Key facts. Cited by 14 papers in the map (data through 14 Oct 2026). Builds on 30 of its 51 references that are in the map. First posted on arXiv 29 May 2025.
Builds on
30 of 51 references.
References · 30
- 2017Attention Is All You Needcited by 60,361
- 2023GPT-4 Technical Reportcited by 18,396
- 2020Measuring Massive Multitask Language Understandingcited by 7,963
- 2016Layer Normalizationcited by 5,669
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
- 2019SuperGLUE: A Stickier Benchmark for General-Purpose Language Understanding Systemscited by 1,729
- 2018Self-Attention with Relative Position Representationscited by 1,120
- 2019Theoretical Limitations of Self-Attention in Neural Sequence Modelscited by 288
- 2024Chain of Thought Empowers Transformers to Solve Inherently Serial Problemscited by 260
- 2022Neural Networks and the Chomsky Hierarchycited by 217
- 2022The Parallelism Tradeoff: Limitations of Log-Precision Transformerscited by 193
- 2021Saturated Transformers are Constant-Depth Threshold Circuitscited by 139
18 more
- 2019On the Turing Completeness of Modern Neural Network Architecturescited by 129
- 2023What Formal Languages Can Transformers Express? A Surveycited by 124
- 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
- 2022Formal Language Recognition by Hard Attention Transformers: Perspectives from Circuit Complexitycited by 93
- 2022A Logic for Expressing Log-Precision Transformerscited by 67
- 2023Tighter Bounds on the Expressivity of Transformer Encoderscited by 66
- 2019Sequential Neural Networks as Automatacited by 54
- 2023Masked Hard-Attention Transformers Recognize Exactly the Star-Free Languagescited by 49
- 2024A Formal Framework for Understanding Length Generalization in Transformerscited by 45
- 2024Counting Like Transformers: Compiling Temporal Counting Logic Into Softmax Transformerscited by 39
- 2023Logical Languages Accepted by Transformer Encoders with Hard Attentioncited by 38
- 2024Transformers Can Represent n-gram Language Modelscited by 32
- 2024On the Representational Capacity of Neural Language Models with Chain-of-Thought Reasoningcited by 26
- 2024Transformers in Uniform TC0cited by 25
- 2024Training Neural Networks as Recognizers of Formal Languagescited by 24
- 2020On the Linguistic Capacity of Real-Time Counter Automatacited by 17
Built on by
Citing papers per year: 2025: 3; 2026: 11.
14 papers.
Sort:
By area:
- 2025On the Reasoning Abilities of Masked Diffusion Language Modelscited by 7
- 2025Transformers are Inherently Succinctcited by 4
- 2026Length Generalization Bounds for Transformerscited by 4
- 2026Characterizing the Expressivity of Local Attention in Transformerscited by 3
- 2025Expressive Power of Graph Transformers via Logiccited by 2
- 2026Revisiting Padded Transformer Expressivity: Which Architectural Choices Matter and Which Don'tcited by 1
- 2026Disentangling the Expressivity of RoPEcited by 1
- 2026Synthesis and Verification of Transformer Programs (Technical Report)cited by 0
- 2026Encoder-Decoder Transformers: Logical Characterizations and Periodicitycited by 0
- 2026Causally Evaluating the Learnability of Formal Language Taskscited by 0
- 2026Surprisal Theory is Tautological (without Rational Grounding)cited by 0
- 2026A Compositional Theory of Causally Masked Transformerscited by 0
2 more
- 2026How Wrong Can a Good Predictor Be? Diverging Updates with Vanishing Predictive KL10 Sep 2026
- 2026Length Generalization for Transformers via Compression8 Sep 2026
- 2026Disentangling the Expressivity of RoPE12 Aug 2026
- 2026A Compositional Theory of Causally Masked Transformers29 Jul 2026
- 2026Surprisal Theory is Tautological (without Rational Grounding)23 Jul 2026
- 2026Causally Evaluating the Learnability of Formal Language Tasks8 Jun 2026
- 2026Revisiting Padded Transformer Expressivity: Which Architectural Choices Matter and Which Don't28 May 2026
- 2026Encoder-Decoder Transformers: Logical Characterizations and Periodicity8 May 2026
- 2026Characterizing the Expressivity of Local Attention in Transformers1 May 2026
- 2026Synthesis and Verification of Transformer Programs (Technical Report)18 Feb 2026
- 2026Length Generalization Bounds for Transformers13 Feb 2026
- 2025Transformers are Inherently Succinct22 Oct 2025
2 more
- 2025On the Reasoning Abilities of Masked Diffusion Language Models15 Oct 2025
- 2025Expressive Power of Graph Transformers via Logic1 Aug 2025
- 2025Transformers are Inherently Succinctcited by 4
- 2026Length Generalization Bounds for Transformerscited by 4
- 2026Characterizing the Expressivity of Local Attention in Transformerscited by 3
- 2025Expressive Power of Graph Transformers via Logiccited by 2
- 2026Revisiting Padded Transformer Expressivity: Which Architectural Choices Matter and Which Don'tcited by 1
- 2026Disentangling the Expressivity of RoPEcited by 1
- 2026Synthesis and Verification of Transformer Programs (Technical Report)cited by 0
- 2026Encoder-Decoder Transformers: Logical Characterizations and Periodicitycited by 0
- 2026Causally Evaluating the Learnability of Formal Language Taskscited by 0
- 2026Surprisal Theory is Tautological (without Rational Grounding)cited by 0
- 2026A Compositional Theory of Causally Masked Transformerscited by 0
- 2026Length Generalization for Transformers via Compressioncited by 0
12 most cited of 13 All 13 (JSON)
- 2026How Wrong Can a Good Predictor Be? Diverging Updates with Vanishing Predictive KL10 Sep 2026
- 2026Length Generalization for Transformers via Compression8 Sep 2026
- 2026Disentangling the Expressivity of RoPE12 Aug 2026
- 2026A Compositional Theory of Causally Masked Transformers29 Jul 2026
- 2026Surprisal Theory is Tautological (without Rational Grounding)23 Jul 2026
- 2026Causally Evaluating the Learnability of Formal Language Tasks8 Jun 2026
- 2026Revisiting Padded Transformer Expressivity: Which Architectural Choices Matter and Which Don't28 May 2026
- 2026Encoder-Decoder Transformers: Logical Characterizations and Periodicity8 May 2026
- 2026Characterizing the Expressivity of Local Attention in Transformers1 May 2026
- 2026Synthesis and Verification of Transformer Programs (Technical Report)18 Feb 2026
- 2026Length Generalization Bounds for Transformers13 Feb 2026
- 2025Transformers are Inherently Succinct22 Oct 2025
12 newest of 13 All 13 (JSON)