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

通过预算引导调控大语言模型的思考过程

Steering LLM Thinking with Budget Guidance

UMass Amherst(马萨诸塞大学阿默斯特分校);Zhejiang University(浙江大学);MIT-IBM Watson AI Lab(麻省理工-IBM沃森人工智能实验室)

Junyan Li, Wenshuo Zhao, Yang Zhang, Chuang Gan

AI总结:

针对大语言模型深度思考推理成本高、性能提升不成比例的问题,提出无需微调的预算引导方法,通过轻量级预测器建模剩余思考长度的Gamma分布,以token级软引导控制推理预算,在数学基准上显著提升token效率并可推广至多任务。

摘要:

近期的深度思考大语言模型往往会进行大量推理以提升性能,但这种冗长推理并非总是理想选择,因为它会带来过高的推理成本,而性能提升却不成比例。因此,在不牺牲性能的前提下控制推理长度十分重要,但这一目标仍具挑战性,尤其是在思考预算紧张的情况下。我们提出了预算引导(budget guidance)方法,这是一种简单且有效的方案,可将大语言模型的推理过程导向目标预算,且无需对大语言模型进行任何微调。我们的方法引入了一个轻量级预测器,该预测器在生成下一个token时对剩余思考长度建模Gamma分布。随后,这一信号被用于以软约束的token级方式引导生成过程,确保整体推理轨迹符合指定的思考预算。预算引导实现了对思考长度的自然控制,并且在具有挑战性的数学基准上,相比基线方法显著提升了token效率。例如,在预算紧张的情况下,该方法在MATH-500基准上相比基线方法实现了最高26%的准确率提升,同时仅使用全思考模型63%的思考token就能保持具有竞争力的准确率。预算引导还可推广到更广泛的任务领域,并展现出诸如估计问题难度等涌现能力。源代码可在以下链接获取:https://github.com/UMass-Embodied-AGI/BudgetGuidance。

英文摘要:

Recent deep-thinking large language models often reason extensively to improve performance, but such lengthy reasoning is not always desirable, as it incurs excessive inference costs with disproportionate performance gains. Controlling reasoning length without sacrificing performance is therefore important, but remains challenging, especially under tight thinking budgets. We propose budget guidance, a simple yet effective method for steering the reasoning process of LLMs toward a target budget without requiring any LLM fine-tuning. Our approach introduces a lightweight predictor that models a Gamma distribution over the remaining thinking length during next-token generation. This signal is then used to guide generation in a soft, token-level manner, ensuring that the overall reasoning trace adheres to the specified thinking budget. Budget guidance enables natural control of the thinking length, along with significant token efficiency improvements over baseline methods on challenging math benchmarks. For instance, it achieves up to a 26% accuracy gain on the MATH-500 benchmark under tight budgets compared to baseline methods, while maintaining competitive accuracy with only 63% of the thinking tokens used by the full-thinking model. Budget guidance also generalizes to broader task domains and exhibits emergent capabilities, such as estimating question difficulty. The source code is available at: https://github.com/UMass-Embodied-AGI/BudgetGuidance.

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

↑