Leash: Adaptive Length Penalty and Reward Shaping for Efficient Large Reasoning Model

Yanhao Li, Lu Ma, Jiaran Zhang, Lexiang Tang, Wentao Zhang, Guibo Luo · DOI

Abstract

Large Reasoning Models (LRMs) often suffer from "token over-expansion," where models generate excessively long chains of thought (CoT) that increase computational costs without improving accuracy. We present LEASH (Adaptive Length Penalty and Reward Shaping), a reinforcement learning framework that employs a dynamic length constraint. By treating length control as a constrained optimization problem using a Lagrangian primal-dual method, LEASH reduces token usage by up to 60% while maintaining or improving performance on complex reasoning tasks.

Introduction

State-of-the-art reasoning models like DeepSeek-R1 and OpenAI’s o-series leverage long-form reasoning to solve difficult problems. However, this capability often leads to "yapping"—redundant self-reflection and circular reasoning that adds latency without adding value. Current mitigation strategies, such as hard truncation or fixed length penalties, often degrade model performance or are difficult to tune. LEASH addresses this by introducing an adaptive "leash" that dynamically adjusts the length penalty based on real-time model performance during training.

Methodology

LEASH utilizes a Lagrangian primal-dual approach to manage the trade-off between reasoning depth and token efficiency. The core components include:

  • Adaptive Penalty ($\lambda$): A dual variable that acts as the "leash" strength. It increases when the model's average output length exceeds a target threshold ($L_t$) and relaxes when the model becomes sufficiently concise.
  • One-Sided Penalized Reward: Only outputs exceeding the target length are penalized. This prevents the model from "collapsing" into overly brief, non-reasoning responses by not providing a positive bonus for being extra short.
  • Clipped Reward Shaping: Rewards are bounded to ensure stable gradient updates during the Reinforcement Learning (RL) process, specifically within the Direct Alignment from Preference Optimization (DAPO) framework.

Experimental Setup

The framework was evaluated using two base models: DeepSeek-R1-Distill-Qwen-1.5B and Qwen3-4B-Thinking-2507. Training utilized a refined subset of the DAPO-MATH-17k dataset. Evaluation spanned in-domain mathematical benchmarks (AIME, AMC) and out-of-domain (OOD) tasks such as GPQA (graduate-level science) and MMLU-Pro to test the robustness of the learned efficiency.

Results and Discussion

LEASH demonstrates significant efficiency gains across all tested benchmarks. On the 1.5B model, it achieved a 60.7% reduction in reasoning length while slightly improving accuracy by 0.8 points. 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.

Figure 3: Average tokens and accuracy trends during training for LEASH variants.

Training dynamics reveal that the penalty coefficient ($\lambda$) typically peaks early in the training process as the model learns to be concise, and then gradually drops toward zero. This indicates that the model eventually "internalizes" the length constraint, making the external penalty less necessary over time. Behavioral analysis shows that as the models became more efficient, they shifted from explicit planning markers (e.g., "Step 1") to more implicit, procedural reasoning.

Figure 4: Training dynamics including satisfaction rate, the adaptive penalty coefficient (lambda), and token reduction.

Conclusion

LEASH provides a robust mechanism for controlling the verbosity of reasoning models without sacrificing their cognitive capabilities. By dynamically adjusting length constraints, it achieves superior trade-offs between brevity and correctness compared to static penalty methods. Future work will explore dynamic target lengths based on prompt difficulty and scaling the framework to larger parameter models.

Summary updated

BibTeX
@inproceedings{li2026leash,
  author = {Yanhao Li and Lu Ma and Jiaran Zhang and Lexiang Tang and Wentao Zhang and Guibo Luo},
  title = {{Leash: Adaptive Length Penalty and Reward Shaping for Efficient Large Reasoning Model}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2026},
  doi = {10.18653/v1/2026.acl-long.129},
}
Figure