A Theory for Length Generalization in Learning to Reason
Not on the map. Why?
Abstract (arXiv)
Length generalization (LG) is a challenging problem in learning to reason. It refers to the phenomenon that when trained on reasoning problems of smaller lengths or sizes, the resulting model struggles with problems of larger sizes or lengths. Although LG has been studied by many researchers, the challenge remains. This paper proposes a theoretical study of LG for problems whose reasoning processes can be modeled as DAGs (directed acyclic graphs). The paper first identifies and proves the conditions under which LG can be achieved in learning to reason. It then designs problem representations based on the theory to learn to solve challenging reasoning problems like parity, addition, and multiplication, using a Transformer to achieve perfect LG.
Key facts. Cited by 11 papers in the map (data through 7 Oct 2026). Builds on 69 of its 79 references that are in the map. First posted on arXiv 31 Mar 2024.
Builds on
69 of 79 references.
References · 69
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,601
- 2023Tree of Thoughts: Deliberate Problem Solving with Large Language Modelscited by 3,155
- 2022Scaling Instruction-Finetuned Language Modelscited by 2,997
- 2022Challenging BIG-Bench Tasks and Whether Chain-of-Thought Can Solve Themcited by 1,767
- 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,085
- 2022Program of Thoughts Prompting: Disentangling Computation from Reasoning for Numerical Reasoning Taskscited by 1,057
- 2021Show Your Work: Scratchpads for Intermediate Computation with Language Modelscited by 871
- 2023Distilling Step-by-Step! Outperforming Larger Language Models with Less Training Data and Smaller Model Sizescited by 710
- 2020Long Range Arena: A Benchmark for Efficient Transformerscited by 696
38 more
- 2022PAL: Program-aided Language Modelscited by 635
- 2023Faith and Fate: Limits of Transformers on Compositionalitycited by 496
- 2023Orca: Progressive Learning from Complex Explanation Traces of GPT-4cited by 369
- 2022Language Models Are Greedy Reasoners: A Systematic Formal Analysis of Chain-of-Thoughtcited by 334
- 2023The Impact of Positional Encoding on Length Generalization in Transformerscited by 319
- 2023Towards Revealing the Mystery behind Chain of Thought: A Theoretical Perspectivecited by 293
- 2023Faithful Chain-of-Thought Reasoningcited by 285
- 2023Reasoning or Reciting? Exploring the Capabilities and Limitations of Language Models Through Counterfactual Taskscited by 243
- 2022Binding Language Models in Symbolic Languagescited by 224
- 2022Towards Understanding Chain-of-Thought Prompting: An Empirical Study of What Matterscited by 221
- 2023Large Language Model Guided Tree-of-Thoughtcited by 218
- 2022Exploring Length Generalization in Large Language Modelscited by 204
- 2023Evaluating the Logical Reasoning Ability of ChatGPT and GPT-4cited by 202
- 2023What Algorithms can Transformers Learn? A Study in Length Generalizationcited by 198
- 2023ReWOO: Decoupling Reasoning from Observations for Efficient Augmented Language Modelscited by 174
- 2021Investigating the Limitations of Transformers with Simple Arithmetic Taskscited by 136
- 2018ListOps: A Diagnostic Dataset for Latent Tree Learningcited by 128
- 2022A Length-Extrapolatable Transformercited by 123
- 2023Deductive Verification of Chain-of-Thought Reasoningcited by 122
- 2023Teaching Arithmetic to Small Transformerscited by 121
- 2023Randomized Positional Encodings Boost Length Generalization of Transformerscited by 114
- 2022Unveiling Transformers with LEGO: a synthetic reasoning taskcited by 105
- 2023Why think step by step? Reasoning emerges from the locality of experiencecited by 103
- 2023Chain-of-Thought Hub: A Continuous Effort to Measure Large Language Models' Reasoning Performancecited by 102
- 2023Cumulative Reasoning with Large Language Modelscited by 94
- 2023Goat: Fine-tuned LLaMA Outperforms GPT-4 on Arithmetic Taskscited by 84
- 2023Boosting Language Models Reasoning with Chain-of-Knowledge Promptingcited by 77
- 2023Generalization on the Unseen, Logic Reasoning and Degree Curriculumcited by 73
- 2022Limitations of Language Models in Arithmetic and Symbolic Inductioncited by 71
- 2023Length Generalization in Arithmetic Transformerscited by 64
- 2023Large Language Models are In-Context Semantic Reasoners rather than Symbolic Reasonerscited by 63
- 2023Making Large Language Models Better Reasoners with Alignmentcited by 63
- 2023Measuring and Improving Chain-of-Thought Reasoning in Vision-Language Modelscited by 45
- 2022Directed Acyclic Transformer for Non-Autoregressive Machine Translationcited by 44
- 2022Sub-Task Decomposition Enables Learning in Sequence to Sequence Taskscited by 41
- 2023Towards Benchmarking and Improving the Temporal Reasoning Capability of Large Language Modelscited by 37
- 2022Chain of Thought Imitation with Procedure Cloningcited by 30
- 2023Counterfactual reasoning: Testing language models' understanding of hypothetical scenarioscited by 27
50 most cited of 69 All 69 (JSON)
Built on by
Citing papers per year: 2024: 5; 2025: 5; 2026: 1.
11 papers.
- 2024Unlocking the Capabilities of Thought: A Reasoning Boundary Framework to Quantify and Optimize Chain-of-Thoughtcited by 56
- 2024Position Coupling: Improving Length Generalization of Arithmetic Transformers Using Task Structurecited by 22
- 2025The Lookahead Limitation: Why Multi-Operand Addition is Hard for LLMscited by 13
- 2024Interpret Your Decision: Logical Reasoning Regularization for Generalization in Visual Classificationcited by 5
- 2024RL-STaR: Theoretical Analysis of Reinforcement Learning Frameworks for Self-Taught Reasonercited by 4
- 2024Unraveling Arithmetic in Large Language Models: The Role of Algebraic Structurescited by 4
- 2025A Theoretical Framework for OOD Robustness in Transformers using Gevrey Classescited by 4
- 2025RBF++: Quantifying and Optimizing Reasoning Boundaries across Measurable and Unmeasurable Capabilities for Chain-of-Thought Reasoningcited by 4
- 2025Language Models, Graph Searching, and Supervision Adulteration: When More Supervision is Less and How to Make More Morecited by 3
- 2026Boule or Baguette? A Study on Task Topology, Length Generalization, and the Benefit of Reasoning Tracescited by 1
- 2025Learning Model Successorscited by 0
- 2026Boule or Baguette? A Study on Task Topology, Length Generalization, and the Benefit of Reasoning Traces16 Feb 2026
- 2025RBF++: Quantifying and Optimizing Reasoning Boundaries across Measurable and Unmeasurable Capabilities for Chain-of-Thought Reasoning19 May 2025
- 2025A Theoretical Framework for OOD Robustness in Transformers using Gevrey Classes17 Apr 2025
- 2025Language Models, Graph Searching, and Supervision Adulteration: When More Supervision is Less and How to Make More More13 Mar 2025
- 2025The Lookahead Limitation: Why Multi-Operand Addition is Hard for LLMs27 Feb 2025
- 2025Learning Model Successors31 Jan 2025
- 2024Unraveling Arithmetic in Large Language Models: The Role of Algebraic Structures25 Nov 2024
- 2024RL-STaR: Theoretical Analysis of Reinforcement Learning Frameworks for Self-Taught Reasoner31 Oct 2024
- 2024Unlocking the Capabilities of Thought: A Reasoning Boundary Framework to Quantify and Optimize Chain-of-Thought8 Oct 2024
- 2024Interpret Your Decision: Logical Reasoning Regularization for Generalization in Visual Classification6 Oct 2024
- 2024Position Coupling: Improving Length Generalization of Arithmetic Transformers Using Task Structure31 May 2024
Similar, not cited
Close in wording, no citation either way
- 2023Conditions for Length Generalization in Learning Reasoning Skills
- 2025Long Is More Important Than Difficult for Training Reasoning Models
- 2025Shorter but not Worse: Frugal Reasoning via Easy Samples as Length Regularizers in Math RLVR
- 2025OMEGA: Can LLMs Reason Outside the Box in Math? Evaluating Exploratory, Compositional, and Transformative Generalization
- 2025Does Learning Mathematical Problem-Solving Generalize to Broader Reasoning?
- 2026Learning to Reason with Curriculum II: Compositional Generalization
- 2025Improving LLMs' Generalized Reasoning Abilities by Graph Problems
- 2024Language Models Need Inductive Biases to Count Inductively