Just Enough Thinking: Efficient Reasoning with Adaptive Length Penalties Reinforcement Learning

Violet Xiang, Chase Blagden, Rafael Rafailov, Nathan Lile, Sang Truong, Chelsea Finn, Nick Haber

TL;DR

Large reasoning models often waste massive amounts of compute "overthinking" simple questions. This paper introduces Adaptive Length Penalty (ALP), a reinforcement learning objective that dynamically penalizes long responses on easy problems while allowing extended reasoning on hard ones, cutting token usage by 50% without sacrificing accuracy.

What Problem Does This Paper Address?

State-of-the-art Large Reasoning Models (LRMs), such as DeepSeek-R1, achieve incredible performance on complex tasks by scaling inference-time compute through long chain-of-thought (CoT) traces. However, this verbosity comes with a steep price: these models frequently "overthink" trivial prompts, generating thousands of tokens to answer simple questions like "What is 2 + 3?".

Existing methods to curb this verbosity fall short. Supervised fine-tuning on shorter traces requires expensive data curation and can degrade reasoning quality. User-controlled token budgets require manual, case-by-case configuration. Meanwhile, standard reinforcement learning (RL) approaches apply uniform length penalties that treat all problems identically, which risks under-resourcing genuinely difficult tasks. The challenge is teaching models to adaptively allocate their thinking time based on intrinsic problem difficulty.

Methods

The authors propose Adaptive Length Penalty (ALP), a reward-shaping method integrated into standard online reinforcement learning frameworks (like GRPO, RLOO, or Reinforce++).

Instead of a fixed penalty for generation length, ALP dynamically scales the penalty based on an online empirical solve rate. During training, the framework samples $K$ independent rollouts for each prompt $q$ and computes how often the model gets the correct answer:

$$p_{\text{solved}}(q) = \frac{1}{K} \sum_{k=1}^K \mathbf{1}[\text{answer}(y^{(k)}) = y^*]$$

This solve rate acts as a real-time proxy for difficulty. The final composite reward balances accuracy with a difficulty-conditioned length penalty:

$$r(y, q) = r_{\text{accuracy}} - \beta N \max(p_{\text{solved}}(q), K^{-1}) \cdot r_{\text{length}}$$

If a prompt has a high solve rate (i.e., it's easy), the length penalty becomes severe, forcing the model to be concise. If the solve rate is low (hard), the penalty drops significantly, granting the model the token budget it needs to think deeply. Crucially, because group-based RL algorithms like GRPO already sample multiple rollouts to estimate advantages, ALP introduces zero additional computational overhead during training.

Datasets

  • Training: The base model (DeepScaleR-1.5B) was trained on the DeepScaleR dataset, a filtered compilation of math problems from AIME, AMC (prior to 2023), Omni-Math, and Still datasets.
  • Evaluation: The models were evaluated across three benchmarks of varying difficulty: MATH-500, OlympiadBench, and AIME (2024 & 2025).

Key Insights and Ideas

  • Real-Time Difficulty Calibration: Rather than relying on static, human-annotated difficulty labels, ALP allows the model's own shifting proficiency during training to define what is "easy" or "hard."
  • Smart Budget Redistribution: ALP doesn't just compress text uniformly. It enforces extreme frugality on simple tasks, creating a "computational surplus." The model then strategically reallocates these saved tokens to crack highly complex problems.
  • Pruning Unproductive Thinking: Keyword and behavioral analysis revealed that ALP specifically prunes redundant repetitions, aimless exploratory wandering, and excessive backtracking (e.g., significantly reducing the frequency of self-correction tokens like "wait" or "actually"), while successfully preserving structured planning behaviors.

Key Results

  • 50% Token Savings: Post-training DeepScaleR-1.5B with ALP cut average token usage by approximately 50% across all datasets while maintaining baseline accuracy.
  • Superior Resource Allocation: Under a constrained inference budget of 1024 tokens, ALP achieved 40% higher Pass@1 accuracy on MATH-500 than the base model by better managing its limited token budget.
Figure 1: Pass@1 Performance with different inference budgets (512, 1024, 2048, 4096). Inference budget is enforced by setting the max number of generation tokens.
  • Extreme Adaptation Ratio: Pareto efficiency analysis showed that ALP used only 21% of its total token budget on the easiest 50% of problems. It achieved a 5.35× adaptation ratio (the ratio of tokens used for hard vs. easy problems), vastly outperforming fixed-budget and uniform-penalty baselines.
Figure 2: Pareto efficiency analysis reveals how models distribute computational resources across problems of varying difficulty (inference budget 4096). (Left) Cumulative token allocation curves for problems ordered from easiest to hardest, aggregated across MATH-500, OlympiadBench, and AIME datasets. Shaded regions indicate easy (0-50%) and hard (80-100%) problem ranges. (Right) Adaptation ratio is computed as tokens used for hard problems / tokens used for easy problems.

Limitations and Future Work

  • Domain Scope: The evaluation was strictly confined to mathematical reasoning. It remains an open question whether ALP's benefits translate to other complex domains like code generation, instruction-following, or creative writing.
  • Allocation vs. Capability: ALP optimizes the allocation of existing capabilities rather than expanding them. It makes the model a more efficient thinker, but not inherently a smarter one. The authors note that exploring whether efficiency and fundamental capability gains can be co-optimized is a promising direction for future research.

Summary updated

BibTeX
@inproceedings{xiang2025just,
  author = {Violet Xiang and Chase Blagden and Rafael Rafailov and Nathan Lile and Sang Truong and Chelsea Finn and Nick Haber},
  title = {{Just Enough Thinking: Efficient Reasoning with Adaptive Length Penalties Reinforcement Learning}},
  booktitle = {ER @ NeurIPS},
  year = {2025},
  url = {https://openreview.net/forum?id=oHR5d6tuXs},
}
Figure