arXiv:2505.07961cs.LG2025-05被引 14

让小模型更高效推理,通过控制思考长度提升效率

Making Small Language Models Efficient Reasoners: Intervention, Supervision, Reinforcement

  • 用温度调节控制推理过程停止时机,减少冗余
  • 新方法使推理耗 token 减少约 50%,准确率几乎不变
  • 适合资源有限但需高效推理的场景,如移动端部署

近期研究通过延长思维链(chain-of-thought)来提升语言模型推理能力,但常导致输出冗长、计算开销大,尤其对经过监督微调(SFT)的小模型更为显著。本文发现,后 SFT 模型无法有效判断推理最优终止点,错误与正确回答的冗长度差异明显。为此提出两种方案:(1) 温度调节(TS),控制思考阶段停止点以调节推理长度;(2) TLDR,一种基于 GRPO 的长度正则化强化学习方法,支持短、中、长多层级推理长度控制。在 MATH500、AMC、AIME24 与 OlympiadBench 四个基准测试中,相比预算强制方法,TS 效果更优;TLDR 在仅损失轻微准确率的前提下,实现约 50% 的 token 节省。同时提供灵活的响应长度控制能力,为小模型高效推理提供了实用解决方案。

原文摘要 · Abstract (English)

Recent research enhances language model reasoning by scaling test-time compute via longer chain-of-thought traces. This often improves accuracy but also introduces redundancy and high computational cost, especially for small language models distilled with supervised fine-tuning (SFT). In this work, we propose new algorithms to improve token-efficient reasoning with small-scale models by effectively trading off accuracy and computation. We first show that the post-SFT model fails to determine the optimal stopping point of the reasoning process, resulting in verbose and repetitive outputs. Verbosity also significantly varies across wrong vs correct responses. To address these issues, we propose two solutions: (1) Temperature scaling (TS) to control the stopping point for the thinking phase and thereby trace length, and (2) TLDR: a length-regularized reinforcement learning method based on GRPO that facilitates multi-level trace length control (e.g. short, medium, long reasoning). Experiments on four reasoning benchmarks, MATH500, AMC, AIME24 and OlympiadBench, demonstrate that TS is highly effective compared to s1's budget forcing approach and TLDR significantly improves token efficiency by about 50% with minimal to no accuracy loss over the SFT baseline. Moreover, TLDR also facilitates flexible control over the response length, offering a practical and effective solution for token-efficient reasoning in small models. Ultimately, our work reveals the importance of stopping time control, highlights shortcomings of pure SFT, and provides effective algorithmic recipes.

小模型推理思维链优化推理效率强化学习

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。