mlsanityData to 7 Oct 2026

Length Generalization Bounds for Transformers

arXiv 2603.02238 ↗First posted 13 Feb 2026cs.LG cs.FL cs.LOcited by 4

Not on the map. Why?

Abstract (arXiv)

Length generalization is a key property of a learning algorithm that enables it to make correct predictions on inputs of any length, given finite training data. To provide such a guarantee, one needs to be able to compute a length generalization bound, beyond which the model is guaranteed to generalize. This paper concerns the open problem of the computability of such generalization bounds for C-RASP, a class of languages which is closely linked to transformers. A positive partial result was recently shown by Chen et al. for C-RASP with only one layer and, under some restrictions, also with two layers. We provide complete answers to the above open problem. Our main result is the non-existence of computable length generalization bounds for C-RASP (already with two layers) and hence for transformers. To complement this, we provide a computable bound for the positive fragment of C-RASP, which we show equivalent to fixed-precision transformers. For both positive C-RASP and fixed-precision transformers, we show that the length complexity is exponential, and prove optimality of the bounds.

Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Builds on 35 of its 46 references that are in the map. First posted on arXiv 13 Feb 2026.

Builds on

35 of 46 references.

References · 35

  1. 2020Scaling Laws for Neural Language Modelscited by 6,411
  2. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
  3. 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,085
  4. 2021Show Your Work: Scratchpads for Intermediate Computation with Language Modelscited by 871
  5. 2023The Impact of Positional Encoding on Length Generalization in Transformerscited by 319
  6. 2024Chain of Thought Empowers Transformers to Solve Inherently Serial Problemscited by 256
  7. 2022Neural Networks and the Chomsky Hierarchycited by 214
  8. 2022Exploring Length Generalization in Large Language Modelscited by 204
  9. 2023What Algorithms can Transformers Learn? A Study in Length Generalizationcited by 198
  10. 2021Thinking Like Transformerscited by 182
  11. 2021Investigating the Limitations of Transformers with Simple Arithmetic Taskscited by 136
  12. 2023What Formal Languages Can Transformers Express? A Surveycited by 120
23 more
  1. 2024Transformers Can Achieve Length Generalization But Not Robustlycited by 82
  2. 2022A Logic for Expressing Log-Precision Transformerscited by 67
  3. 2023Tighter Bounds on the Expressivity of Transformer Encoderscited by 65
  4. 2023Length Generalization in Arithmetic Transformerscited by 64
  5. 2023Masked Hard-Attention Transformers Recognize Exactly the Star-Free Languagescited by 47
  6. 2020The EOS Decision and Length Extrapolationcited by 46
  7. 2024A Formal Framework for Understanding Length Generalization in Transformerscited by 44
  8. 2024Counting Like Transformers: Compiling Temporal Counting Logic Into Softmax Transformerscited by 39
  9. 2023Logical Languages Accepted by Transformer Encoders with Hard Attentioncited by 37
  10. 2025Learning Compositional Functions with Transformers from Easy-to-Hard Datacited by 34
  11. 2025Scaling Laws for Differentially Private Language Modelscited by 22
  12. 2025Exact Expressive Power of Transformers with Paddingcited by 19
  13. 2024Simulating Hard Attention Using Soft Attentioncited by 15
  14. 2025Learning In-context n-grams with Transformers: Sub-n-grams Are Near-stationary Pointscited by 15
  15. 2025Characterizing the Expressivity of Fixed-Precision Transformer Language Modelscited by 14
  16. 2025Knee-Deep in C-RASP: A Transformer Depth Hierarchycited by 12
  17. 2022Induced Natural Language Rationales and Interleaved Markup Tokens Enable Extrapolation in Large Language Modelscited by 10
  18. 2025Quantitative Bounds for Length Generalization in Transformerscited by 8
  19. 2025The Counting Power of Transformerscited by 7
  20. 2025Non-Asymptotic Length Generalizationcited by 7
  21. 2024Transformer Encoder Satisfiability: Complexity and Impact on Formal Reasoningcited by 5
  22. 2025The Transformer Cookbookcited by 5
  23. 2025Transformers are Inherently Succinctcited by 4

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 4.

4 papers.