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

ShorterBetter: 引导推理模型寻找最优推理长度以实现高效推理

ShorterBetter: Guiding Reasoning Models to Find Optimal Inference Length for Efficient Reasoning

Data Science Institute, The University of Chicago(芝加哥大学数据科学研究所)

Jingyang Yi, Jiazheng Wang, Sida Li

AI总结:

ShorterBetter通过强化学习引导推理模型自主学习最优推理长度,提升推理效率并减少输出长度。

摘要:

近期模型如OpenAI o1和DeepSeek-R1通过生成扩展的链式思维(CoT)轨迹,在推理密集型任务中表现出色。虽然更长的推理有助于对复杂问题的解决方案路径进行深入探索,但往往会导致低效和冗余的输出--这种现象通常被描述为过度思考。在本文中,我们提出ShorterBetter,一种简单而有效的强化学习方法,使推理模型能够学习自身最优的CoT长度,而无需人工监督。我们定义样本最优长度(SOL)为多个生成中正确响应的最短长度,它作为动态奖励信号引导模型向高效推理发展。应用于DeepSeek-Distill-Qwen-1.5B/7B作为基础模型,ShorterBetter在域内和域外推理任务中均实现了50%-80%的输出长度减少,同时保持准确性。我们的推理轨迹分析显示,ShorterBetter通过减少不必要的重复、过度自我验证和过度探索替代方案来优化推理轨迹结构。

英文摘要:

Recent models such as OpenAI o1 and DeepSeek-R1 have demonstrated strong performance on reasoning-intensive tasks by generating extended Chain-of-Thought (CoT) traces. While longer reasoning helps with thorough exploration of solution paths for complex problems, it also often leads to inefficient and redundant outputs--a phenomenon commonly described as overthinking. In this paper, we propose ShorterBetter, a simple yet effective reinforcement learning method that enables reasoning models to learn their own optimal CoT lengths without manual supervision. We define the Sample Optimal Length (SOL) as the length of the shortest correct response among multiple generations, which serves as a dynamic reward signal to guide the model toward efficient reasoning. Applied to DeepSeek-Distill-Qwen-1.5B/7B as base models, ShorterBetter achieves 50%-80% reduction in output lengths in both in-domain and out-of-domain reasoning tasks while maintaining accuracy. Our reasoning trace analysis shows that ShorterBetter refines the structure of the reasoning traces by reducing unnecessary repetition, excessive self-verification, and over-exploration of alternatives.

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

↑