arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2505.11274cs.AIcs.CL
收藏

SelfBudgeter:面向高效大语言模型推理的自适应令牌分配

SelfBudgeter: Adaptive Token Allocation for Efficient LLM Reasoning

State Key Laboratory for Multimedia Information Processing, School of Computer Science, Peking University(多媒体信息处理国家重点实验室,计算机学院,北京大学);BandAI, Bytedance(字节跳动BandAI)

Zheng Li, Qingxiu Dong, Jingyuan Ma, Di Zhang, Kai Jia, Zhifang Sui

AI总结:

本文提出SelfBudgeter策略,通过自适应预算分配提升LLM推理效率,实验显示在数学推理任务中平均响应长度压缩61%并保持准确性。

摘要:

近期,大型推理模型在各种任务上展示了卓越的性能。然而,推理模型即使对于简单的查询也会消耗过多的token,导致资源浪费和用户延迟增加。为了解决这一挑战,我们提出了SelfBudgeter——一种自适应的推理策略,用于高效且可控的推理。具体而言,我们首先训练模型根据查询自行估计所需的推理预算。然后,我们引入了预算引导的GRPO用于强化学习,这有效保持了准确性同时减少了输出长度。实验结果表明,SelfBudgeter根据问题复杂性动态分配预算,在数学推理任务中实现了平均响应长度压缩61%的同时保持准确性。此外,SelfBudgeter允许用户查看生成将持续多久,并决定是否继续或停止。此外,用户可以通过提前设置token预算直接控制推理长度。

英文摘要:

Recently, large reasoning models demonstrate exceptional performance on various tasks. However, reasoning models always consume excessive tokens even for simple queries, leading to resource waste and prolonged user latency. To address this challenge, we propose SelfBudgeter - a self-adaptive reasoning strategy for efficient and controllable reasoning. Specifically, we first train the model to self-estimate the required reasoning budget based on the query. We then introduce budget-guided GRPO for reinforcement learning, which effectively maintains accuracy while reducing output length. Experimental results demonstrate that SelfBudgeter dynamically allocates budgets according to problem complexity, achieving an average response length compression of 61% on math reasoning tasks while maintaining accuracy. Furthermore, SelfBudgeter allows users to see how long generation will take and decide whether to continue or stop. Additionally, users can directly control the reasoning length by setting token budgets upfront.

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

↑