An Asymptotic Theory of Chain-of-Thought in In-Context Learning
On the map: LLM reasoning → Prompting and chain-of-thought reasoning
Abstract (arXiv)
Chain-of-thought (CoT) reasoning has become a widely used mechanism for eliciting multi-step reasoning in large language models by generating intermediate reasoning steps at inference time. Yet the scaling behavior of generalization with CoT depth remains poorly understood. To address this question, we study a theoretically solvable model of CoT for in-context weight prediction in linear regression, where test-time reasoning is represented as an iterative refinement of the weight-parameter estimate. Using tools from random matrix theory under high-dimensional asymptotics, we derive an exact formula for the generalization error as a function of reasoning depth, pretraining data amount, and context length. Our analysis reveals a sharp phase transition separating exponential and polynomial improvement, saturation, and overthinking, and characterizes how the optimal reasoning depth scales. We further show that deeper reasoning is most effective with sufficiently rich pretraining and in-context information, whereas limited pretraining or context makes longer reasoning prone to error amplification or saturation. We also validate these predictions through experiments on fully learned linear attention and softmax attention models. Our results provide a unified theoretical account of how test-time CoT depth affects generalization.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Prompting and chain-of-thought reasoning, one of 17 directions in LLM reasoning. Builds on 35 of its 37 references that are in the map. First posted on arXiv 2 Jun 2026.
Builds on
35 of 37 references.
Closest ancestors · 5
Same direction, newest first
- 2025Innate Reasoning is Not Enough: In-Context Learning Enhances Reasoning Large Language Models with Less Overthinking25 Mar
- 2025Transformers Learn to Implement Multi-step Gradient Descent with Chain of Thought28 Feb
- 2024Mind Your Step (by Step): Chain-of-Thought can Reduce Performance on Tasks where Thinking Makes Humans Worse27 Oct
- 2022Large Language Models are Zero-Shot Reasoners24 May
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Models28 Jan
Other references · 30
- 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,146
- 2025s1: Simple test-time scalingcited by 1,311
- 2021Show Your Work: Scratchpads for Intermediate Computation with Language Modelscited by 871
- 2022Transformers learn in-context by gradient descentcited by 714
- 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 700
- 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 671
- 2025Scaling up Test-Time Compute with Latent Reasoning: A Recurrent Depth Approachcited by 372
- 2025Towards Thinking-Optimal Scaling of Test-Time Compute for LLM Reasoningcited by 118
- 2025Between Underthinking and Overthinking: An Empirical Study of Reasoning Length and correctness in LLMscited by 115
- 2024The rising costs of training frontier AI modelscited by 91
- 2025Is Best-of-N the Best of Them? Coverage, Scaling, and Optimality in Inference-Time Alignmentcited by 91
- 2025Don't Overthink it. Preferring Shorter Thinking Chains for Improved LLM Reasoningcited by 82
18 more
- 2024Asymptotic theory of in-context learning by linear attentioncited by 54
- 2026Parcae: Scaling Laws For Stable Looped Language Modelscited by 45
- 2025Training Dynamics of In-Context Learning in Linear Attentioncited by 44
- 2025How Do Large Language Monkeys Get Their Power (Laws)?cited by 40
- 2024A Simple Model of Inference Scaling Lawscited by 36
- 2026Loop, Think, & Generalize: Implicit Reasoning in Recurrent-Depth Transformerscited by 34
- 2024Differential learning kinetics govern the transition from memorization to generalization during in-context learningcited by 19
- 2025Theory of Scaling Laws for In-Context Regression: Depth, Width, Context and Timecited by 15
- 2025Scaling over Scaling: Exploring Test-Time Scaling Plateau in Large Reasoning Modelscited by 11
- 2015Applications of Realizations (aka Linearizations) to Free Probabilitycited by 8
- 2025Two-Point Deterministic Equivalence for Stochastic Gradient Dynamics in Linear Modelscited by 6
- 2025Pretrain-Test Task Alignment Governs Generalization in In-Context Learningcited by 6
- 2026Learning Shrinks the Hard Tail: Training-Dependent Inference Scaling in a Solvable Linear Modelcited by 6
- 2025Understanding the Role of Training Data in Test-Time Scalingcited by 4
- 2025Demystifying LLM-as-a-Judge: Analytically Tractable Model for Inference-Time Scalingcited by 4
- 2026Theoretical Perspectives on Data Quality and Synergistic Effects in Pre- and Post-Training Reasoning Modelscited by 3
- 2024Simplified derivations for high-dimensional convex learning problemscited by 1
- 2025Learning Linear Regression with Low-Rank Tasks in-Contextcited by 1
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2024Training Nonlinear Transformers for Chain-of-Thought Inference: A Theoretical Generalization Analysis
- 2025Why Does Reasoning Length Converge? Unveiling the Underfitting-Overfitting Trade-off in Chain-of-Thought
- 2025Rethinking the Chain-of-Thought: The Roles of In-Context Learning and Pre-trained Priors
- 2025The Curse of CoT: On the Limitations of Chain-of-Thought in In-Context Learning
- 2025From Reasoning to Super-Intelligence: A Search-Theoretic Perspective
- 2026When does Chain-of-Thought Help: A Markovian Perspective
- 2025When More is Less: Understanding Chain-of-Thought Length in LLMs
- 2024Unlocking the Capabilities of Thought: A Reasoning Boundary Framework to Quantify and Optimize Chain-of-Thought