Abstract
Reasoning models like OpenAI o1 and DeepSeek-R1 often generate excessively long "Chain-of-Thought" (CoT) traces, leading to computational waste and a phenomenon known as "overthinking." This paper introduces ShorterBetter, a reinforcement learning (RL) method that utilizes the shortest correct response among multiple samples as a dynamic reward signal. Our approach achieves a 50–80% reduction in token usage while maintaining or improving accuracy across diverse mathematical and coding benchmarks.
Introduction: The Challenge of Overthinking
The current paradigm in Large Language Models (LLMs) emphasizes "scaling test-time compute," allowing models more "time to think" via extended reasoning chains. While effective for complex tasks, this often results in overthinking—manifesting as verbose repetition, excessive self-verification, and exploration of dead-end paths even after a solution is found. Beyond inefficiency, excessively long reasoning can degrade accuracy as models lose context within their own generated tokens. The objective is to identify the Optimal Reasoning Length (OL), which varies dynamically based on problem difficulty and model capacity.
Methodology: Adaptive Length Optimization
ShorterBetter employs a reinforcement learning framework that avoids the pitfalls of manual supervision or fixed token budgets by being inherently adaptive.
Sample Optimal Length (SOL)
Since the true optimal length for any given problem is unknown, we approximate it using the Sample Optimal Length (SOL). This is defined as the shortest correct response found within a group of $n$ sampled generations for a specific prompt.
Dynamic Reward Signal and GRPO
We define a reward function that balances correctness and conciseness:
- Correctness Reward ($\alpha$): A binary bonus for reaching the correct final answer.
- Length Penalty ($\beta$): A penalty calculated based on the gap between the current response length and the SOL.
Optimization is performed using Group Relative Policy Optimization (GRPO). This algorithm is particularly efficient as it computes advantages relative to a group of samples, eliminating the need for a separate, resource-heavy critic model. Unlike static methods, ShorterBetter's target length shifts dynamically based on the model's current capabilities.
Experimental Results
We evaluated ShorterBetter on models ranging from 1.5B to 8B parameters (DeepSeek-Distill-Qwen and Llama-3) across in-domain math tasks (AIME, AMC) and out-of-domain tasks (MathQA, MMLU, LiveCodeBench).
Efficiency and Accuracy Gains
ShorterBetter consistently achieved massive efficiency gains, reducing output length by 50% to 80%. Critically, this reduction did not come at the cost of performance. In many instances, accuracy improved; for example, the 7B model saw a 7.1% accuracy increase on in-domain math tasks despite the significantly shorter outputs.
Structural Refactoring of Reasoning
Analysis reveals that ShorterBetter does more than just truncate responses; it refactors the reasoning structure. The model learns to increase the proportion of Pivotal Reasoning (steps directly leading to the solution) while drastically reducing Non-Substantive Statements (filler) and redundant Verification & Self-Correction steps. This supports the hypothesis of a U-shaped relationship between length and accuracy, where guiding the model toward the SOL steers it toward the peak of the performance curve.
Conclusion and Future Work
ShorterBetter demonstrates that reasoning models can be trained to be both more accurate and significantly more efficient by penalizing unnecessary verbosity. While currently reliant on verifiable answers (math/code), future work will explore extending this dynamic reward mechanism to open-ended reasoning tasks and larger frontier-scale models.
Summary updated