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

并非所有错误都同等重要:后果感知的推理计算分配

Not All Errors Are Equal: Consequence-Aware Reasoning Compute Allocation

The University of Sydney(悉尼大学);Shanghai Institute of Optics and Fine Mechanics(上海光学精密机械研究所)

Liang He, Jingbo Wen, Haoyu Wang, Ziqi He, Yixiong Chen, Kangning Cui, Xilu Wang

AI总结:

提出后果感知的测试时计算分配方法,通过轻量级预测器估计任务错误成本,在相同预算下将高后果任务路由到更多计算资源,在SWE-bench上降低22%-33%的成本加权损失。

摘要:

现代推理模型可以为不同任务分配不同量的测试时计算,例如思考令牌、模型调用或计算预算。现有方法通常通过预测难度来驱动这种分配,并在预期能提高准确率的地方投入更多计算。这隐含地假设所有失败的成本相同,因为准确率目标对每个任务一视同仁。然而,这种假设在部署中并不成立:日志消息中的拼写错误和导致生产数据库损坏的迁移都算作一次基准失败,但它们的实际成本根本不同。为填补这一空白,我们提出后果感知的测试时计算分配。我们不是仅根据预测难度来路由计算,而是使用轻量级预测器从问题文本中估计如果任务被错误解决会有多高的成本。然后,调度器在相同总预算下将更高后果的任务路由到更大的计算层级或更高的思考预算。我们在SWE-bench Lite上进行主要实验,并在Multi-SWE-bench mini上评估跨数据集行为,总共涵盖700个软件工程任务。我们的结果表明,在各种标注下,后果和难度大致正交,并且当前的思考模型并未根据后果充分分配计算。此外,我们的仅问题文本预测器在300个SWE-bench任务中从未将高后果任务误分类为低后果任务。在匹配的计算预算下,我们的后果感知调度器相对于难度感知路由将成本加权损失降低了22%至33%;特别是,优先级感知变体(根据边际效用信号缩放每个任务的成本进行路由)降低了超过30%,而其可部署的预测器驱动版本保留了超过90%的预言机增益。

英文摘要:

Test-time compute has emerged as an effective paradigm for improving large language model capability at inference time. Existing allocation strategies primarily prioritize tasks according to difficulty, uncertainty, or expected performance gain, implicitly treating prediction errors as equally costly. This assumption is often misaligned with real deployment, where failures can differ substantially in their downstream tasks. To address this limitation, this paper introduces consequence-aware test-time compute allocation by formulating a cost-weighted scheduling problem where the priority of a task is its failure consequence with the marginal gain of additional compute. In practice, however, marginal gain is difficult to predict before execution, so we propose a deployable scheduler that uses consequence as the routing signal. The scheduler predicts task consequence from pre-solution inputs and allocates the available premium compute to the corresponding top-ranked tasks. Experiments on the SWE bench Lite show that consequence provides information beyond task difficulty and can be predicted before solving. Under a fixed compute budget, consequence-aware routing achieves the best high-consequence task success, while overall accuracy remains competitive. A controlled within-model experiment further confirms the same advantage when only inference attempts are reallocated.

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

↑