Why Does Reasoning Length Converge? Unveiling the Underfitting-Overfitting Trade-off in Chain-of-Thought

Zeyu Gan, Hao Yi, Yong Liu

TL;DR

This paper introduces CoT-Space, a theoretical framework that explains why the reasoning length of Large Language Models (LLMs) naturally converges to an optimal value during reinforcement learning (RL). By framing Chain-of-Thought (CoT) generation as a continuous optimization process, the authors reveal that this convergence is driven by a classic machine learning trade-off: underfitting (generating a CoT too short to solve the problem) versus overfitting (generating a CoT too long, which memorizes prompt-specific shortcuts).

What Problem Does This Paper Address?

Recent breakthroughs in LLMs—such as DeepSeek-R1 and OpenAI’s o1—rely heavily on "internal test-time scaling." Instead of just predicting the next answer token, these models use RL to autonomously discover effective multi-step reasoning trajectories (Chains-of-Thought) before delivering a final answer.

Empirically, as RL training progresses, the model's average reasoning length naturally stabilizes or converges to an optimal length. However, a massive theoretical gap remains: we don't mechanistically understand why this length converges, nor do we understand the root cause of the "overthinking" phenomenon where models degrade in performance if they reason for too long. Traditional token-level analysis fails here because language is inherently discrete and grows exponentially, obscuring the macroscopic dynamics of the reasoning process.

Figure 1. Analogy between strategy discovery in classical RL and LLM reasoning. (a) In classical RL, an agent with a high-level goal (e.g., break more bricks) discovers an effective strategy through exploration to maximize its reward. (b) Similarly, an LLM policy with the goal of providing correct answers autonomously learns that generating a suitable CoT is an effective strategy.

Methods

To bridge the gap between discrete language generation and classical learning theory, the authors propose CoT-Space:

  1. Continuum Approximation: The authors prove that due to the exponential expressive redundancy of language (i.e., there are exponentially many ways to write token sequences that mean the exact same thing), the discrete token-level state space can be mathematically approximated as a dense, continuous semantic manifold.
  2. Reasoning as Noisy Gradient Descent: Using this continuous space, they model step-by-step CoT generation as a Stochastic Differential Equation (SDE). Crucially, they prove that the optimization noise scale ($\sigma$) is inversely proportional to the CoT length ($L$): $\sigma \propto \frac{1}{L}$.
  3. Generalization Bounds: They derive an information-theoretic generalization bound that decomposes the total expected reasoning risk into two competing components:
  4. Optimization Drift (Underfitting Regime): Excessive noise from a CoT that is too short causes the model to diverge from the correct solution path.
  5. Information Complexity (Overfitting Regime): Insufficient noise from an overly long CoT causes the model to overfit to the exact phrasing of the prompt rather than learning generalizable logical patterns.

Datasets

The authors empirically validate their framework using two standard mathematical reasoning benchmarks:

  • GSM8K: Grade-school math word problems.
  • MATH: Harder, competition-level math problems. To precisely evaluate the effect of task difficulty, the authors manually subdivided the MATH training set into its five original difficulty levels (Level 1 to Level 5).

Key Insights and Ideas

  • CoT Length acts as a Regularizer: In traditional machine learning, you tune the learning rate or batch size to control optimization noise. In LLM test-time scaling, CoT length itself acts as the noise controller. An optimal CoT length introduces just enough stochasticity to help the model find flat, robust, and generalizable solutions.
  • The Capacity Paradox: Counterintuitively, larger, higher-performing models converge to shorter optimal CoT lengths within the same task. Because larger models have higher "thought dispersion" (capacity to overfit), they require a higher noise scale—and thus a shorter, more concise CoT—to prevent overfitting.
  • Algorithm Independence: The optimal CoT length is an intrinsic property determined solely by task difficulty and model capacity. The specific RL algorithm used is merely a tool to find this solution; it does not change where the length converges.

Key Results

The authors validated CoT-Space across a massive suite of open-source models (including the Qwen2.5, Qwen3, and Llama3 series) and five different RL algorithms (GRPO, PPO, DAPO, Reinforce++, and RLOO).

Empirical validation of factors governing optimal CoT length
  • Task Difficulty vs. Length: As predicted by Remark 1, more complex tasks require a greater reasoning depth to avoid underfitting. The optimal CoT length ($L_{opt}$) increases monotonically as tasks scale from GSM8K up through MATH Level 5.
  • Model Capacity vs. Length: Larger models consistently learn to produce more concise reasoning paths than their smaller counterparts on the same task to mitigate the risk of overfitting.
  • Algorithm Agnosticism: Despite vastly different initial learning dynamics, all five RL algorithms guided the same base model to a nearly identical final $L_{opt}$, confirming that convergence length is an intrinsic property of the model-task pairing.

Limitations and Future Work

  • The I.I.D. Assumption: The paper adapts classical PAC-Bayesian and information-theoretic generalization bounds which assume independent and identically distributed (i.i.d.) data. However, RL involves non-stationary, on-policy data generation. Developing tighter bounds tailored specifically to non-stationary RL is a critical next step.
  • Latent Space Reasoning: Since this work proves that reasoning space converges to a continuous manifold, the authors suggest it is theoretically sound to bypass discrete token generation entirely during intermediate steps. Future architectures could map thoughts into a continuous latent space, perform gradient-based planning there, and decode only the final answer.
  • Continuous Verifiers: Current reward models provide sparse, discrete outcomes. The authors advocate for training "Continuous Verifiers" that predict a scalar "semantic distance" to the correct answer, providing the smooth gradients required for more stable RL optimization.

Summary updated

BibTeX
@misc{gan2025why,
  author = {Zeyu Gan and Hao Yi and Yong Liu},
  title = {{Why Does Reasoning Length Converge? Unveiling the Underfitting-Overfitting Trade-off in Chain-of-Thought}},
  year = {2025},
  eprint = {2509.04027},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.04027},
}
Figure