arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2512.21540cs.AI
收藏

Leash:自适应长度惩罚与奖励塑造用于高效大推理模型

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

Peking University(北京大学);Harbin Institute of Technology(哈尔滨工业大学)

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

AI总结:

Leash通过自适应长度惩罚与奖励塑造,有效提升大模型推理效率,减少推理长度60%同时保持性能竞争力。

摘要:

现有方法通常依赖固定长度惩罚,但此类惩罚难以调节且无法适应LLM推理能力的演变,导致准确性和简洁性之间的次优权衡。为解决这一挑战,我们提出了Leash(自适应长度惩罚和奖励塑造),一种用于LLM高效推理的强化学习框架。我们将长度控制 formulation 为一个约束优化问题,并采用拉格朗日对偶方法动态调整惩罚系数。当生成内容超过目标长度时,惩罚会加强;当生成内容较短时,惩罚会放松。这种自适应机制引导模型产生简洁的推理而不牺牲任务性能。在Deepseek-R1-Distill-Qwen-1.5B和Qwen3-4B-Thinking-2507上的实验表明,Leash在多样任务中将平均推理长度减少了60%,包括在分布内的数学推理和在分布外的领域如编程和指令遵循,同时保持竞争性的性能。我们的工作因此提出了一个实用且有效的范式,用于开发可控且高效的LLM,平衡推理能力与计算预算。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑