Saved in:
Bibliographic Details
Main Authors: Li, Yanhao, Ma, Lu, Zhang, Jiaran, Tang, Lexiang, Zhang, Wentao, Luo, Guibo
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2512.21540
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866912789137719296
author Li, Yanhao
Ma, Lu
Zhang, Jiaran
Tang, Lexiang
Zhang, Wentao
Luo, Guibo
author_facet Li, Yanhao
Ma, Lu
Zhang, Jiaran
Tang, Lexiang
Zhang, Wentao
Luo, Guibo
contents Existing approaches typically rely on fixed length penalties, but such penalties are hard to tune and fail to adapt to the evolving reasoning abilities of LLMs, leading to suboptimal trade-offs between accuracy and conciseness. To address this challenge, we propose Leash (adaptive LEngth penAlty and reward SHaping), a reinforcement learning framework for efficient reasoning in LLMs. We formulate length control as a constrained optimization problem and employ a Lagrangian primal-dual method to dynamically adjust the penalty coefficient. When generations exceed the target length, the penalty is intensified; when they are shorter, it is relaxed. This adaptive mechanism guides models toward producing concise reasoning without sacrificing task performance. Experiments on Deepseek-R1-Distill-Qwen-1.5B and Qwen3-4B-Thinking-2507 show that Leash reduces the average reasoning length by 60% across diverse tasks - including in-distribution mathematical reasoning and out-of-distribution domains such as coding and instruction following - while maintaining competitive performance. Our work thus presents a practical and effective paradigm for developing controllable and efficient LLMs that balance reasoning capabilities with computational budgets.
format Preprint
id arxiv_https___arxiv_org_abs_2512_21540
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Leash: Adaptive Length Penalty and Reward Shaping for Efficient Large Reasoning Model
Li, Yanhao
Ma, Lu
Zhang, Jiaran
Tang, Lexiang
Zhang, Wentao
Luo, Guibo
Artificial Intelligence
Existing approaches typically rely on fixed length penalties, but such penalties are hard to tune and fail to adapt to the evolving reasoning abilities of LLMs, leading to suboptimal trade-offs between accuracy and conciseness. To address this challenge, we propose Leash (adaptive LEngth penAlty and reward SHaping), a reinforcement learning framework for efficient reasoning in LLMs. We formulate length control as a constrained optimization problem and employ a Lagrangian primal-dual method to dynamically adjust the penalty coefficient. When generations exceed the target length, the penalty is intensified; when they are shorter, it is relaxed. This adaptive mechanism guides models toward producing concise reasoning without sacrificing task performance. Experiments on Deepseek-R1-Distill-Qwen-1.5B and Qwen3-4B-Thinking-2507 show that Leash reduces the average reasoning length by 60% across diverse tasks - including in-distribution mathematical reasoning and out-of-distribution domains such as coding and instruction following - while maintaining competitive performance. Our work thus presents a practical and effective paradigm for developing controllable and efficient LLMs that balance reasoning capabilities with computational budgets.
title Leash: Adaptive Length Penalty and Reward Shaping for Efficient Large Reasoning Model
topic Artificial Intelligence
url https://arxiv.org/abs/2512.21540