arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.30852cs.AIcs.CLcs.LG
收藏

何时学习停止有帮助?推理模型中早期退出的成本感知研究

When Does Learning to Stop Help? Configuring Risk-Controlled Early Exit for Reasoning-Model Services

University of Maine at Presque Isle(缅因大学普雷斯克岛分校);Stanford University(斯坦福大学);Independent Researcher(独立研究员)

Zhe Dong, Fang Qin, Manish Shah

AI总结:

研究推理语言模型中学习停止规则相对于简单置信度或收敛阈值的优势,提出LearnStop方法,发现其效果取决于任务类型,在自由形式数学任务中表现优于标量退出。

摘要:

推理模型在不同实例上花费不同数量的有用计算,但尚不清楚学习停止规则何时能优于简单的置信度或收敛阈值。我们通过LearnStop(一种无隐藏状态的检查点停止器)研究这一问题,该停止器用于推理语言模型。在固定预算检查点处,LearnStop从当前推理前缀中探测简短答案,并根据在线特征(如答案置信度、熵、前缀投票份额、答案稳定性和回溯标记密度)预测前缀正确性。在涵盖GSM8K、MATH-500、MMLU-Pro、AIME-90、GPQA、Qwen3和DeepSeek-R1蒸馏的18个任务-模型设置中,答案是任务相关的。在自由形式数学任务上,学习到的多特征停止改进了固定预算前沿,并且通常优于标量退出:在GSM8K与Qwen3-32B上,经验前沿达到事后峰值自适应增益+0.157,验证选择的工作点保持正增益,且相对于最强标量基线的配对增益为+0.028。在多项选择和非常困难的设置中,标量置信度、熵或稳定性规则具有竞争力或更强。因此,我们不将学习停止视为标量退出的通用替代品,而是将其作为一种工具,其价值取决于轨迹结构。我们进一步提供了验证选择的工作点、配对bootstrap检验、有限网格丢失正确风险校准、KV-fork、前缀缓存和黑盒模式下的成本核算、H100服务配置文件、检查点调度扫描、迁移分析和鲁棒性检查。主要实践发现是:当许多问题在完全预算之前变得正确,但并未表现出单一可靠的标量停止信号时,学习停止是有用的;当置信度或答案收敛已经解决停止问题时,其优势基本消失。

英文摘要:

Early exit lowers the cost of serving a reasoning model by stopping its reasoning once a provisional answer looks final. An operator must choose between a learned stopping rule and one static token budget, and savings against full reasoning do not settle the choice. We present a procedure that decides on calibration data from the workload. It certifies both families with Learn-then-Test to one bound on the fraction of all questions that full reasoning answers correctly but early exit does not, prices provisional answers as the serving stack does, and deploys the cheapest certified candidate. Across four models and five benchmarks neither family is better throughout. At a 5% risk target the learned rule saves 10.4-17.0 percentage points more tokens than the static budget on free-form mathematics with Qwen3, with accuracy 2.4-2.9 points below full reasoning, and less on MMLU-Pro on average. Which family costs less also changes with the risk target, in 8 of 15 settings, and with the price of a provisional answer. Across three prices, committing to one family in advance gives up as much as 27.4 points on some workload, whereas selecting on calibration data falls at most 11.6 points short of the better family, on a task with only 99 calibration questions. In a vLLM engine with Qwen3-8B, mean response time fell in proportion to generated tokens. Policies served on a task other than their calibration task exceeded the risk target in 18 of 44 task pairs; recalibration on the new task restored risk control.

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

↑