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

无开销的适应性测试时间计算 introspection

Zero-Overhead Introspection for Adaptive Test-Time Compute

UC Berkeley(加州大学伯克利分校);MIT CSAIL(麻省理工学院计算机科学与人工智能实验室);Liquid AI

Rohin Manvi, Joey Hong, Tim Seyde, Maxime Labonne, Mathias Lechner, Sergey Levine

AI总结:

ZIP-RC通过无开销的实时自我反省预测奖励和成本,提升推理效率和准确性。

摘要:

大型语言模型在推理方面表现出色,但缺乏关键的自我反省能力,包括预测自身成功和实现所需计算的能力。人类利用实时自我反省来决定投入多少努力,何时多次尝试,何时停止,以及何时信号成功或失败。没有这种能力,LLMs在做出智能元认知决策时会遇到困难。测试时间扩展方法如Best-of-N通过使用固定的样本预算来增加成本和延迟,无论生成过程中的每个样本的边际收益如何,缺乏置信度信号可能会误导人们,防止适当升级到更好的工具,并损害可信度。学习验证器或奖励模型可以提供置信度估计,但无法实现自适应推理,并通过需要额外模型或前向传递而增加大量成本。我们提出了ZIP-RC,它使模型能够无开销地进行自我反省,预测奖励和成本。在每个token时,ZIP-RC重用已保留或未使用的logits,作为下一个token预测的同一前向传递中,输出最终奖励和剩余长度的联合分布——没有额外的模型、架构更改或推理开销。这个完整的联合分布用于计算采样效用,即一组样本如果生成完成时的预期最大奖励、总计算和延迟的线性组合。在推理过程中,我们通过元操作最大化此效用,以决定继续或发起采样从哪个token的前缀。在混合难度的数学基准上,ZIP-RC在等于或低于平均成本的情况下,将准确性提高了高达12%,并绘制了质量、计算和延迟之间的平滑帕累托前沿。通过提供实时奖励-成本自我反省,ZIP-RC实现了适应性、高效的推理。

英文摘要:

Large language models excel at reasoning but lack key aspects of introspection, including anticipating their own success and the computation required to achieve it. Humans use real-time introspection to decide how much effort to invest, when to make multiple attempts, when to stop, and when to signal success or failure. Without this, LLMs struggle to make intelligent meta-cognition decisions. Test-time scaling methods like Best-of-N drive up cost and latency by using a fixed budget of samples regardless of the marginal benefit of each one at any point in generation, and the absence of confidence signals can mislead people, prevent appropriate escalation to better tools, and undermine trustworthiness. Learned verifiers or reward models can provide confidence estimates, but do not enable adaptive inference and add substantial cost by requiring extra models or forward passes. We present ZIP-RC, which equips models with zero-overhead introspective predictions of reward and cost. At every token, ZIP-RC reuses reserved or unused logits in the same forward pass as next-token prediction to output a joint distribution over final reward and remaining length -- no extra models, architecture change, or inference overhead. This full joint distribution is used to compute a sampling utility which is the linear combination of the expected maximum reward, total compute, and latency of set of samples if generated to completion. During inference, we maximize this utility with meta-actions that determine which prefix of tokens to continue or initiate sampling from. On mixed-difficulty mathematical benchmarks, ZIP-RC improves accuracy by up to 12% over majority voting at equal or lower average cost, and traces smooth Pareto frontiers between quality, compute, and latency. By providing real-time reward-cost introspection, ZIP-RC enables adaptive, efficient reasoning.

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

↑