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

Rollout Roulette:使用基于粒子的蒙特卡洛方法对LLM推理时间扩展的概率推断方法

Rollout Roulette: A Probabilistic Inference Approach to Inference-Time Scaling of LLMs using Particle-Based Monte Carlo Methods

MIT CSAIL(麻省理工学院计算机科学与人工智能实验室);RedHat AI Innovation(红帽人工智能创新)

Isha Puri, Shivchander Sudalairaj, Guangxuan Xu, Kai Xu, Akash Srivastava

AI总结:

本文将LLM推理时间扩展视为概率推断任务,利用基于粒子的蒙特卡洛方法探索状态分布典型集,有效避免了奖励欺骗,在数学推理任务上实现了4-16倍于确定性搜索的扩展率。

摘要:

大型语言模型(LLMs)通过扩大模型规模和/或数据规模取得了显著的性能提升。然而,近期证据表明此类方法的收益正在递减,这促使人们扩展在推理时投入的计算量。现有的推理时间扩展方法通常使用奖励模型,将任务视为搜索问题,但由于奖励模型中的近似误差,这往往容易受到奖励欺骗的影响。在本文中,我们将推理时间扩展视为一个概率推断任务,并利用基于采样的技术来探索具有近似似然的状态空间模型状态分布的典型集,而不是直接优化其模式。我们通过将基于粒子的蒙特卡洛方法应用于此任务,提出了一种新颖的推理时间扩展方法。我们的实证评估表明,在各种具有挑战性的数学推理任务上,我们的方法比确定性搜索的对应方法具有4-16倍更好的扩展率。使用我们的方法,我们展示了Qwen2.5-Math-1.5B-Instruct仅需4次展开即可超越GPT-4o的准确率,而Qwen2.5-Math-7B-Instruct仅需32次展开即可扩展至o1级别的准确率。我们的工作不仅提出了一种有效的推理时间扩展方法,还将概率推断的丰富文献与LLM的推理时间扩展联系起来,以便在未来的工作中开发更鲁棒的算法。代码、视频和更多信息请访问https://probabilistic-inference-scaling.github.io。

英文摘要:

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, videos, and further information available at https://probabilistic-inference-scaling.github.io.

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

↑