TLDR: LAPO (Length-Adaptive Policy Optimization) is a novel two-stage reinforcement learning framework that teaches large language models to internally determine the optimal length for their reasoning processes. Unlike methods that impose external limits, LAPO enables models to understand and adapt their computational effort based on problem complexity, significantly reducing ‘overthinking’ and token usage (up to 40.9%) while improving accuracy (by 2.3%) on mathematical reasoning benchmarks.
Large language models (LLMs) have shown impressive capabilities in complex reasoning tasks, often by generating extensive step-by-step thought processes. However, this freedom can lead to a significant problem: these models frequently produce overly long reasoning sequences, even for simple problems. This phenomenon, often called ‘overthinking,’ results in substantial computational costs and makes practical deployment challenging.
Existing methods to tackle this issue typically impose external constraints, such as rigid length limits or early stopping mechanisms. While these approaches can reduce output length, they often compromise accuracy or disrupt the model’s natural thinking flow. The core limitation is that they treat length control as an external rule, rather than an intrinsic understanding of a problem’s complexity.
Introducing LAPO: Internalizing Reasoning Efficiency
A new framework called Length-Adaptive Policy Optimization (LAPO) proposes a paradigm shift. Instead of forcing models to adhere to external length limits, LAPO teaches them to develop an internal sense of appropriate reasoning depth. The key insight is that successful problem solutions naturally converge to certain reasoning lengths that reflect their inherent complexity. By learning from these patterns, models can anticipate the necessary reasoning budget before they even begin solving a problem.
LAPO operates through a two-stage reinforcement learning process:
-
Discovery Stage: In this initial phase, the model learns natural reasoning patterns. It’s rewarded for generating efficient and correct solutions, and during this process, LAPO collects statistical data on the lengths of successful reasoning chains. This helps identify the ‘reasonable’ length range where most correct answers naturally fall, without imposing artificial constraints.
-
Internalization Stage: Building on the insights from the first stage, the model is guided to internalize these discovered patterns. This is achieved by augmenting the problem prompt with a ‘self-declared’ length budget, for example, ‘I will answer the question with N tokens.’ By learning to generate solutions that align with this self-proposed plan, the model is incentivized to understand the link between problem complexity and the computational resources required. This transforms length control from an external command into an intrinsic part of the model’s own reasoning plan.
This progressive design mimics how human experts develop intuition: first gaining experience about appropriate reasoning depth through practice, then learning to anticipate these requirements proactively.
Also Read:
- LLMs Learn to Think Smarter with Hierarchical Budget Policy Optimization
- Advancing AI’s Spatial Understanding: New Strategies for Vision-Language Models
Remarkable Results and Insights
Extensive experiments on mathematical reasoning benchmarks demonstrate LAPO’s effectiveness. The framework achieved significant efficiency gains, reducing token usage by up to 40.9% while simultaneously improving accuracy by 2.3%. This means models trained with LAPO can generate more concise yet effective reasoning chains.
Compared to other efficient reasoning methods, LAPO establishes a more effective balance between accuracy and efficiency. It outperforms approaches that aggressively compress token usage at the cost of reasoning quality.
Analysis of LAPO-trained models reveals an emergent ability to allocate computational resources based on problem complexity. Models trained with LAPO show a clear positive correlation between problem difficulty and the length of their reasoning, demonstrating that they learn to scale their computational investment proportionally to task demands. Furthermore, a qualitative analysis of reasoning behaviors showed that LAPO selectively prunes inefficient and hesitant thought patterns, such as redundant self-correction and exploration, while preserving the essential structure of a coherent logical argument.
In conclusion, LAPO represents a significant step forward in making large reasoning models more efficient and practical. By enabling models to internalize an understanding of appropriate reasoning depth, it allows them to adapt their computational effort to the specific needs of each problem, leading to more robust and efficient AI reasoning strategies. You can find more details about this research in the original preprint.


