TL;DR
LEASH is a reinforcement learning framework that uses an adaptive "leash"—a dynamic length penalty—to prevent Large Reasoning Models (LRMs) from generating unnecessarily long chains of thought. By treating length control as a constrained optimization problem, it reduces token usage by up to 60% while maintaining or even improving accuracy across complex math and logic tasks.
What Problem Does This Paper Address?
Large Reasoning Models (LRMs), such as DeepSeek-R1 or OpenAI’s o-series, achieve impressive performance by generating long "Chains of Thought" (CoT). However, this often leads to token over-expansion: the models become "wordy," engaging in redundant self-reflection and circular reasoning that increases computational cost and latency without adding value.
Existing solutions usually fall into two camps:
- Truncation: Simply cutting the output short, which often "lobotomizes" the model by removing essential reasoning steps.
- Fixed Penalties: Applying a static penalty for length during training. These are notoriously hard to tune; too much penalty kills accuracy, while too little fails to curb verbosity.
The authors of LEASH argue that we need a mechanism that can dynamically "tighten" or "loosen" the length constraint based on how the model is currently performing during the training process.
Methods
The core of LEASH (adaptive LEngth penAlty and reward SHaping) is a Lagrangian primal-dual method. Instead of a fixed penalty, the framework introduces a dual variable ($\lambda$) that acts as the "leash" strength.
- Adaptive Penalty: If the model’s average output length exceeds a target threshold ($L_t$), the system automatically increases $\lambda$, intensifying the penalty. If the model becomes too concise, the penalty is relaxed.
- One-Sided Penalized Reward: To prevent the model from "collapsing" (i.e., learning that the shortest possible answer is always best), LEASH only penalizes outputs that are over the target length. It does not provide a positive bonus for being extra short.
- Clipped Reward Shaping: The rewards are clipped to a specific range to prevent extreme fluctuations in length from causing unstable gradient updates during Reinforcement Learning (RL).
The framework is built on top of DAPO (Direct Alignment from Preference Optimization), a standard RLHF-style training loop.
Datasets
The researchers evaluated LEASH using two base models: DeepSeek-R1-Distill-Qwen-1.5B and Qwen3-4B-Thinking-2507.
- Training: They used a refined subset of the DAPO-MATH-17k dataset, specifically filtering for prompts where the 4B model showed a mix of success and failure to ensure a meaningful learning signal.
- In-Domain Evaluation: Mathematical benchmarks including AIME24, AIME25, HMMT25, and AMC23.
- Out-of-Domain (OOD) Evaluation: To test generalization, they used GPQA (graduate-level science questions) and MMLU-Pro.
Key Insights and Ideas
- The "Leash" Eventually Relaxes: Training dynamics show that the penalty coefficient ($\lambda$) peaks early as the model learns to be concise, but then gradually drops toward zero. This suggests the model eventually "internalizes" the length constraint, making the external penalty less necessary over time.
- Implicit vs. Explicit Planning: Behavioral analysis revealed that as the models became more efficient, they used fewer explicit planning markers (like "Step 1," "First," "Second"). The reasoning didn't disappear; it just became more implicit and procedural, moving from "yapping" about the plan to just executing it.
- Efficiency Can Boost Accuracy: Surprisingly, on the 1.5B model, LEASH actually improved accuracy by 0.8 points while cutting length by 62.7%. This suggests that forcing a model to be concise can help it stay "focused" and avoid the "hallucination traps" that sometimes occur in rambling, over-extended reasoning traces.
Key Results
- Massive Token Savings: On the DeepSeek-R1 1.5B base, LEASH reduced average reasoning length by 60.7% across all benchmarks.
- Superior Trade-offs: Compared to prior methods like THINKPRUNE or LASER-DE, LEASH consistently achieved a better balance between brevity and correctness. For example, while other methods saw accuracy drops of 1-2 points to achieve similar length reductions, LEASH often maintained or slightly improved performance.
- Robust Generalization: The efficiency gains held up even on OOD tasks like GPQA and MMLU-Pro, proving that the model wasn't just "memorizing" how to be short for math problems, but was learning a more general style of efficient reasoning.
Limitations and Future Work
- Model Scale: The study focused on relatively small "compact" models (1.5B and 4B parameters). It remains to be seen how these dynamics scale to 70B+ parameter giants.
- Fixed Target Length: Currently, the target length ($L_t$) is a fixed hyperparameter. The authors suggest that future work should involve dynamic targets that adapt based on the specific difficulty of a prompt (e.g., a simple arithmetic problem should have a much shorter "leash" than a complex calculus proof).
- Scope: The evaluation was primarily focused on single-turn reasoning. Extending LEASH to multi-turn conversations or tool-use scenarios is a logical next step.
Summary updated