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

过度思考者的节食:用难度感知训练削减令牌卡路里

The Overthinker's DIET: Cutting Token Calories with DIfficulty-AwarE Training

Tsinghua University(清华大学)

Weize Chen, Jiarui Yuan, Tailin Jin, Ning Ding, Huimin Chen, Zhiyuan Liu, Maosong Sun

AI总结:

本文提出DIET框架,通过将问题难度融入强化学习动态调整令牌压缩,减少LLM过度思考的冗长输出,同时提升推理性能与扩展性。

摘要:

近期的大语言模型(LLMs)展现出令人印象深刻的推理能力,但往往过度思考,生成过长的响应,阻碍了效率。我们引入了DIET(难度感知训练),一个通过在强化学习(RL)过程中整合实时问题难度来系统性地削减这些“令牌卡路里”的框架。DIET通过调节令牌惩罚强度并将目标长度条件化为估计的任务难度,动态调整令牌压缩策略,以优化性能与效率的权衡。我们还从理论上分析了在如GRPO等组归一化RL算法中朴素奖励加权的缺陷,并提出了优势加权技术,使得这些难度感知目标的稳定有效实现成为可能。实验结果表明,DIET显著减少了令牌数量,同时提升了推理性能。除了原始令牌减少之外,我们展示了先前工作大多忽视的两个关键好处:(1)DIET带来了优越的推理扩展。通过用更少的令牌保持高样本质量,它在固定计算预算下通过多数投票实现更好的扩展性能,而其他方法在此方面表现不佳。(2)DIET增强了响应长度与问题难度之间的自然正相关,确保冗长性得到适当分配,不像许多现有压缩方法破坏这种关系。我们的分析为开发更高效、实用和高性能的LLMs提供了一个有原则且有效的框架。

英文摘要:

Recent large language models (LLMs) exhibit impressive reasoning but often over-think, generating excessively long responses that hinder efficiency. We introduce DIET ( DIfficulty-AwarE Training), a framework that systematically cuts these "token calories" by integrating on-the-fly problem difficulty into the reinforcement learning (RL) process. DIET dynamically adapts token compression strategies by modulating token penalty strength and conditioning target lengths on estimated task difficulty, to optimize the performance-efficiency trade-off. We also theoretically analyze the pitfalls of naive reward weighting in group-normalized RL algorithms like GRPO, and propose Advantage Weighting technique, which enables stable and effective implementation of these difficulty-aware objectives. Experimental results demonstrate that DIET significantly reduces token counts while simultaneously improving reasoning performance. Beyond raw token reduction, we show two crucial benefits largely overlooked by prior work: (1) DIET leads to superior inference scaling. By maintaining high per-sample quality with fewer tokens, it enables better scaling performance via majority voting with more samples under fixed computational budgets, an area where other methods falter. (2) DIET enhances the natural positive correlation between response length and problem difficulty, ensuring verbosity is appropriately allocated, unlike many existing compression methods that disrupt this relationship. Our analyses provide a principled and effective framework for developing more efficient, practical, and high-performing LLMs.

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

↑