Understanding the Out-of-Distribution Generalization of Chain-of-Thought Reasoning in LLMs
On the map: LLM reasoning → Prompting and chain-of-thought reasoning
Abstract (arXiv)
Chain-of-Thought (CoT) reasoning substantially improves Large Language Models (LLMs), yet its out-of-distribution (OOD) generalization mechanism remains theoretically underexplored. We study CoT as compositional OOD generalization: the target task lacks complete reasoning trajectories or direct input-output pairs, while training provides only in-distribution (ID) atomic step data. We show that CoT generalizes by repeatedly applying a shared single-step predictor to compose reusable ID transitions. Theoretically, let T denote the number of reasoning steps in the target task, n the number of training samples per sub-task, and k the number of output tokens per step; then the OOD task risk is controlled by the sum of the ID sub-task risks, scaled by a coefficient of order O(k) that is independent of T, although the summed risk itself may still grow with T. A Rademacher-complexity analysis further shows that the estimation term is of order O(√T/n), rather than linear in T, due to predictor sharing under a uniform capacity control on the shared class. For autoregressive Next-Token Prediction, the final-task risk is bounded by the best-in-class step-level risk scaled by the same coefficient of order O(k), plus an estimation term of order widetildeObig(k√T/nbig). A parity-coupled construction further shows that, for the sub-task empirical risk minimizer, the expected final-task risk is at least the best in-class risk plus Omega(√T/n) when T≤ n. Experiments on Atom-Task and GSM8K support the theory: CoT enables short-to-long and compositional generalization, while explicit state tracking is crucial. Our code is available at https://github.com/maxliang114514/CoT-OOD.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in Prompting and chain-of-thought reasoning, one of 17 directions in LLM reasoning. Builds on 35 of its 45 references that are in the map. Submitted 4 Nov 2026.
Builds on
35 of 45 references.
Closest ancestors · 17
Same direction, newest first
- 2026Sample Complexity of Autoregressive Reasoning: Chain-of-Thought vs. End-to-End13 Apr
- 2025A Theory of Learning with Autoregressive Chain of Thought11 Mar
- 2025Transformers Learn to Implement Multi-step Gradient Descent with Chain of Thought28 Feb
- 2025Compositional Generalization from Learned Skills via CoT Training: A Theoretical and Structural Analysis for Reasoning7 Feb
- 2025Lower Bounds for Chain-of-Thought Reasoning in Hard-Attention Transformers4 Feb
- 2024Deciphering the Factors Influencing the Efficacy of Chain-of-Thought: Probability, Memorization, and Noisy Reasoning1 Jul
- 2024Chain of Thought Empowers Transformers to Solve Inherently Serial Problems20 Feb
- 2023Graph of Thoughts: Solving Elaborate Problems with Large Language Models18 Aug
- 2023Towards Revealing the Mystery behind Chain of Thought: A Theoretical Perspective24 May
- 2023The CoT Collection: Improving Zero-shot and Few-shot Learning of Language Models via Chain-of-Thought Fine-Tuning23 May
- 2023Why think step by step? Reasoning emerges from the locality of experience7 Apr
- 2022Large Language Models Are Reasoning Teachers20 Dec
5 more
- 2022Program of Thoughts Prompting: Disentangling Computation from Reasoning for Numerical Reasoning Tasks22 Nov
- 2022Automatic Chain of Thought Prompting in Large Language Models7 Oct
- 2022Least-to-Most Prompting Enables Complex Reasoning in Large Language Models21 May
- 2022Self-Consistency Improves Chain of Thought Reasoning in Language Models21 Mar
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Models28 Jan
Other references · 18
- 2021Training Verifiers to Solve Math Word Problemscited by 11,055
- 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 10,542
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,845
- 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,799
- 2023Tree of Thoughts: Deliberate Problem Solving with Large Language Modelscited by 3,329
- 2025Does Reinforcement Learning Really Incentivize Reasoning Capacity in LLMs Beyond the Base Model?cited by 1,106
- 2022STaR: Bootstrapping Reasoning With Reasoningcited by 1,047
- 2023Math-Shepherd: Verify and Reinforce LLMs Step-by-step without Human Annotationscited by 1,016
- 2023MetaMath: Bootstrap Your Own Mathematical Questions for Large Language Modelscited by 782
- 2023MAmmoTH: Building Math Generalist Models through Hybrid Instruction Tuningcited by 507
- 2025Cognitive Behaviors that Enable Self-Improving Reasoners, or, Four Habits of Highly Effective STaRscited by 408
- 2015The Benefit of Multitask Representation Learningcited by 202
6 more
- 2024Hopping Too Late: Exploring the Limitations of Large Language Models on Multi-Hop Queriescited by 95
- 2025Scaling Test-Time Compute Without Verification or RL is Suboptimalcited by 90
- 2025All Roads Lead to Likelihood: The Value of Reinforcement Learning in Fine-Tuningcited by 67
- 2025Rethinking Reflection in Pre-Trainingcited by 48
- 2025Task Generalization With AutoRegressive Compositional Structure: Can Learning From D Tasks Generalize to DT Tasks?cited by 13
- 2024On the Generalization Ability of Unsupervised Pretrainingcited by 9
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2025Beyond In-Distribution Success: Scaling Curves of CoT Granularity for Language Model Generalization
- 2025Learning Composable Chains-of-Thought
- 2025Is Chain-of-Thought Reasoning of LLMs a Mirage? A Data Distribution Lens
- 2026An Asymptotic Theory of Chain-of-Thought in In-Context Learning
- 2024Training Nonlinear Transformers for Chain-of-Thought Inference: A Theoretical Generalization Analysis
- 2024Understanding Chain-of-Thought in LLMs through Information Theory
- 2024Fine-Tuning on Diverse Reasoning Chains Drives Within-Inference CoT Refinement in LLMs
- 2023Dissecting Chain-of-Thought: Compositionality through In-Context Filtering and Learning