mlsanityData to 14 Oct 2026

Characterizing the Expressivity of Fixed-Precision Transformer Language Models

arXiv 2505.23623 ↗First posted 29 May 2025cs.CLcited by 14

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

  1. 2017Attention Is All You Needcited by 60,361
  2. 2023GPT-4 Technical Reportcited by 18,396
  3. 2020Measuring Massive Multitask Language Understandingcited by 7,963
  4. 2016Layer Normalizationcited by 5,669
  5. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
  6. 2019SuperGLUE: A Stickier Benchmark for General-Purpose Language Understanding Systemscited by 1,729
  7. 2018Self-Attention with Relative Position Representationscited by 1,120
  8. 2019Theoretical Limitations of Self-Attention in Neural Sequence Modelscited by 288
  9. 2024Chain of Thought Empowers Transformers to Solve Inherently Serial Problemscited by 260
  10. 2022Neural Networks and the Chomsky Hierarchycited by 217
  11. 2022The Parallelism Tradeoff: Limitations of Log-Precision Transformerscited by 193
  12. 2021Saturated Transformers are Constant-Depth Threshold Circuitscited by 139
18 more
  1. 2019On the Turing Completeness of Modern Neural Network Architecturescited by 129
  2. 2023What Formal Languages Can Transformers Express? A Surveycited by 124
  3. 2018On the Practical Computational Power of Finite Precision RNNs for Language Recognitioncited by 117
  4. 2022Overcoming a Theoretical Limitation of Self-Attentioncited by 113
  5. 2021Self-Attention Networks Can Process Bounded Hierarchical Languagescited by 105
  6. 2022Formal Language Recognition by Hard Attention Transformers: Perspectives from Circuit Complexitycited by 93
  7. 2022A Logic for Expressing Log-Precision Transformerscited by 67
  8. 2023Tighter Bounds on the Expressivity of Transformer Encoderscited by 66
  9. 2019Sequential Neural Networks as Automatacited by 54
  10. 2023Masked Hard-Attention Transformers Recognize Exactly the Star-Free Languagescited by 49
  11. 2024A Formal Framework for Understanding Length Generalization in Transformerscited by 45
  12. 2024Counting Like Transformers: Compiling Temporal Counting Logic Into Softmax Transformerscited by 39
  13. 2023Logical Languages Accepted by Transformer Encoders with Hard Attentioncited by 38
  14. 2024Transformers Can Represent n-gram Language Modelscited by 32
  15. 2024On the Representational Capacity of Neural Language Models with Chain-of-Thought Reasoningcited by 26
  16. 2024Transformers in Uniform TC0cited by 25
  17. 2024Training Neural Networks as Recognizers of Formal Languagescited by 24
  18. 2020On the Linguistic Capacity of Real-Time Counter Automatacited by 17

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 3; 2026: 11.

14 papers.

Sort:

By area: