Abstract
Large language models (LLMs) have achieved significant performance gains via scaling up model sizes and/or data. However, recent evidence suggests diminishing returns from such approaches, motivating scaling the computation spent at inference time. Existing inference-time scaling methods, usually with reward models, cast the task as a search problem, which tends to be vulnerable to reward hacking as a consequence of approximation errors in reward models. In this paper, we instead cast inference-time scaling as a probabilistic inference task and leverage sampling-based techniques to explore the typical set of the state distribution of a state-space model with an approximate likelihood, rather than optimize for its mode directly. We propose a novel inference-time scaling approach by adapting particle-based Monte Carlo methods to this task. Our empirical evaluation demonstrates that our methods have a 4-16x better scaling rate over our deterministic search counterparts on various challenging mathematical reasoning tasks. Using our approach, we show that Qwen2.5-Math-1.5B-Instruct can surpass GPT-4o accuracy in only 4 rollouts, while Qwen2.5-Math-7B-Instruct scales to o1 level accuracy in only 32 rollouts. Our work not only presents an effective method to inference-time scaling, but also connects the rich literature in probabilistic inference with inference-time scaling of LLMs to develop more robust algorithms in future work. Code and further information is available at this https URL.
Abstract (translated)
大型语言模型(LLMs)通过增加模型规模和/或数据量已经取得了显著的性能提升。然而,最近的研究表明,这种扩展方法带来的收益正在减少,因此有动机在推理时间上进行计算扩展。现有的推理时间扩展方法通常使用奖励模型,并将任务视为搜索问题来解决,这容易由于奖励模型中的近似误差而产生奖励操纵漏洞。 本文中,我们将推理时间的扩展看作一个概率推理任务,并利用基于采样的技术探索状态空间模型的状态分布的典型集(typical set),而不是直接优化其模式。为此,我们提出了一种新的推理时间扩展方法,通过将粒子基蒙特卡洛方法适应到这个任务上实现。 我们的实证评估表明,在各种具有挑战性的数学推理任务中,与确定性搜索相比,我们的方法的扩展率提高了4-16倍。使用这种方法,Qwen2.5-Math-1.5B-Instruct模型仅需四次迭代就能超越GPT-4o的精度水平,而更大的Qwen2.5-Math-7B-Instruct版本则只需32次迭代就达到了接近于o1级别的准确度。 我们的工作不仅为推理时间扩展提供了一种有效的方法,而且还把概率推理领域的丰富文献与LLMs的推理时间扩展联系起来,以促进未来开发更健壮的算法。更多代码和信息请访问此链接:[https URL](原文中的链接未给出具体地址,请根据实际需求补充)。
URL
https://arxiv.org/abs/2502.01618