arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2510.15674cs.LGcs.AI
收藏

CarBoN:校准的最佳N采样提升测试时推理

CarBoN: Calibrated Best-of-N Sampling Improves Test-time Reasoning

EPFL(瑞士联邦理工学院);Idiap Research Institute(Idiap研究所);IBM Research(IBM研究院)

Yung-Chen Tang, Pin-Yu Chen, Andrea Cavallaro

AI总结:

本文提出CarBoN,一种基于校准的最佳N采样测试时扩展方法,通过输入特定温度和偏移校准logits,在有限采样下提升推理效率与准确率,实验显示最多减少4倍rollout次数。

摘要:

在推理期间分配更多计算(测试时扩展)可提升语言模型性能,尤其是在推理任务中。然而,像Best-of-$N$采样这样的流行方法随着$N$增加往往表现出收益递减。为解决这一低效问题,我们引入了一个通用的测试时校准框架,该框架自适应地将模型调整为高奖励推理路径,在有限采样下具有改善期望奖励下界的理论保证,且无需大型语言模型(LLM)重新训练。在此框架内,我们提出了CarBoN(校准的最佳N),一种两阶段方法:首先探索解空间,然后通过输入特定的温度$T$和加性偏移向量$δ$学习对logits的校准,引导生成更可靠的推理。在MATH-500和AIME-2024上的实验表明,CarBoN提高了效率,达到相同准确率所需的rollout次数最多减少$4\times$,同时在固定预算下往往能实现更高准确率。我们还分析了$T$和$δ$在平衡输出多样性和正确性方面的互补作用,并证明该框架也适用于波束搜索等步骤级采样策略。更多信息请参阅我们的项目页面:huggingface.co/spaces/TrustSafeAI/Test-Time-Calibration。

英文摘要:

Allocating more computation during inference time (test-time scaling) improves language model performance, especially for reasoning tasks. However, popular methods like Best-of-$N$ sampling often show diminishing returns as $N$ increases. To address this inefficiency, we introduce a general test-time calibration framework that adaptively modifies the model toward high-reward reasoning paths, with theoretical guarantees of improving the lower bound of expected reward under finite sampling, all without large language model (LLM) retraining. Within this framework, we propose CarBoN (Calibrated Best-of-$N$), a two-phase method that first explores the solution space and then learns a calibration of the logits via an input-specific temperature $T$ and additive shift vector $δ$, guiding generation toward more reliable reasoning. Experiments on MATH-500 and AIME-2024 show that CarBoN improves efficiency, with up to $4\times$ fewer rollouts to reach the same accuracy, while often achieving higher accuracy under fixed budgets. We also analyze the complementary roles of $T$ and $δ$ in balancing output diversity and correctness, and demonstrate that the framework also generalizes to step-level sampling strategies such as beam search. For more information, please refer to our project page at huggingface.co/spaces/TrustSafeAI/Test-Time-Calibration.

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

↑