Learn to Reason Efficiently with Adaptive Length-based Reward Shaping

Wei Liu, Ruochen Zhou, Yiyun Deng, Yuzhen Huang, Junteng Liu, Yuntian Deng, Yizhe Zhang, Junxian He

TL;DR

Researchers have developed LASER-D, a reinforcement learning (RL) framework that trains Large Reasoning Models (LRMs) to be both smarter and significantly more concise. By using an adaptive, difficulty-aware "step reward," the method achieved a +5.3 point accuracy boost on the challenging AIME2024 math benchmark while slashing token usage by 64%, effectively teaching models when to think deeply and when to get straight to the point.

The Problem: Over-thinking in Large Reasoning Models

Modern "Large Reasoning Models" (like DeepSeek-R1 or OpenAI’s o1) achieve impressive results by generating long "Chains of Thought" (CoT). However, these models often suffer from over-thinking: they might generate thousands of tokens of redundant "self-reflection" for a trivial math problem that only requires a few steps.

This verbosity isn't just expensive and slow; it can actually introduce "compounding errors" where the model confuses itself during a long-winded explanation. Previous attempts to fix this usually involved "budgeting" (forcing a hard limit on tokens) or "truncation" (cutting off long answers). These often backfire by crippling the model's ability to solve truly difficult problems that require long reasoning traces.

Methods: Length-based Reward Shaping

The authors first propose a unified framework for Length-based Reward Shaping, categorizing existing methods into truncation, group-based, and budget-based rewards. Building on this, they introduce two novel iterations:

Reward Shaping Framework
  1. LASER (Length-bAsed StEp Reward): Instead of a hard cutoff (truncation), LASER uses a "step function." If a model provides a correct answer within a target length ($L_T$), it receives a bonus reward. This encourages brevity without strictly forbidding longer explorations if they are necessary for correctness.
  2. LASER-D (Dynamic and Difficulty-aware): This is the "pro" version. It addresses two flaws in static rewards:
  3. Difficulty-Awareness: It categorizes questions into "Easy," "Medium," and "Hard" buckets based on real-time accuracy during training. Easy questions get strict (short) token limits, while hard questions are allowed more room to "breathe."
    • Dynamic Adaptation: The target lengths aren't fixed. An automated module periodically samples the model's performance and adjusts the token limits ($L_A$) as the model becomes more efficient at reasoning.

Key Insights and Ideas

  • The "Fast and Slow Thinking" Balance: LASER-D successfully mimics human-like cognition by penalizing long-windedness on easy tasks while permitting "slow thinking" on hard ones.
  • Pruning Redundant Self-Reflection: Qualitative analysis showed that the original models often got stuck in loops of "Wait, let me re-check..." or "Actually, maybe..." even when they were already correct. LASER-D trains the model to recognize when its reasoning is sufficient, leading to much cleaner, formula-dense outputs.
  • Truncation is a Blunt Instrument: The paper shows that simply cutting off responses (truncation) during RL training is surprisingly effective at saving tokens but disproportionately harms performance on hard tasks (like AIME). Reward shaping is a much more surgical way to improve efficiency.

Key Results

The models were trained on the DeepScaleR-Preview-Dataset (40K competition-level math pairs) and evaluated across a wide battery of benchmarks, including MATH500, AIME2024, AMC2023, OlympiadBench, and out-of-domain tasks like GPQA and LiveCodeBench.

Performance and Reasoning Trace Comparison

The results across five different model families (from 1.5B to 32B parameters) were highly consistent:

  • Efficiency: On AIME2024, LASER-D reduced token usage by 64% compared to the base DeepSeek-R1-Distill-Qwen-1.5B model.
  • Performance: Despite the massive reduction in tokens, accuracy actually increased. On AIME2024, accuracy jumped from 28.9% to 34.2% (+5.3 points).
  • Generalization: The efficiency gains held up even on non-math tasks. On LiveCodeBench, the model cut token usage by ~50% while improving coding accuracy.
  • Scalability: The method worked even better on larger models. For the 7B model, LASER-D achieved a +5.2 point gain on AIME while using only 5,379 tokens compared to the original's 13,414.

Limitations and Future Work

  • Domain Specificity: While the method showed promise in coding and law, the primary training and evaluation were centered on mathematics. The authors note that "agentic reasoning" (where a model interacts with tools or environments) needs further validation.
  • Computational Overhead: The "Dynamic" part of LASER-D requires periodic monitoring of a small dataset during training, which adds about 3.5% to the total computation time.
  • Future Directions: The authors plan to explore more realistic, multi-step scenario tasks and investigate if this reward shaping can be applied to even broader domains beyond STEM.

Summary updated

BibTeX
@inproceedings{liu2026learn,
  author = {Wei Liu and Ruochen Zhou and Yiyun Deng and Yuzhen Huang and Junteng Liu and Yuntian Deng and Yizhe Zhang and Junxian He},
  title = {{Learn to Reason Efficiently with Adaptive Length-based Reward Shaping}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=hj9eKpqxQl},
}
Figure