Paper Reading AI Learner

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

2025-02-03 18:50:50
Isha Puri, Shivchander Sudalairaj, Guangxuan Xu, Kai Xu, Akash Srivastava

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

PDF

https://arxiv.org/pdf/2502.01618.pdf


Tags
3D Action Action_Localization Action_Recognition Activity Adversarial Agent Attention Autonomous Bert Boundary_Detection Caption Chat Classification CNN Compressive_Sensing Contour Contrastive_Learning Deep_Learning Denoising Detection Dialog Diffusion Drone Dynamic_Memory_Network Edge_Detection Embedding Embodied Emotion Enhancement Face Face_Detection Face_Recognition Facial_Landmark Few-Shot Gait_Recognition GAN Gaze_Estimation Gesture Gradient_Descent Handwriting Human_Parsing Image_Caption Image_Classification Image_Compression Image_Enhancement Image_Generation Image_Matting Image_Retrieval Inference Inpainting Intelligent_Chip Knowledge Knowledge_Graph Language_Model LLM Matching Medical Memory_Networks Multi_Modal Multi_Task NAS NMT Object_Detection Object_Tracking OCR Ontology Optical_Character Optical_Flow Optimization Person_Re-identification Point_Cloud Portrait_Generation Pose Pose_Estimation Prediction QA Quantitative Quantitative_Finance Quantization Re-identification Recognition Recommendation Reconstruction Regularization Reinforcement_Learning Relation Relation_Extraction Represenation Represenation_Learning Restoration Review RNN Robot Salient Scene_Classification Scene_Generation Scene_Parsing Scene_Text Segmentation Self-Supervised Semantic_Instance_Segmentation Semantic_Segmentation Semi_Global Semi_Supervised Sence_graph Sentiment Sentiment_Classification Sketch SLAM Sparse Speech Speech_Recognition Style_Transfer Summarization Super_Resolution Surveillance Survey Text_Classification Text_Generation Time_Series Tracking Transfer_Learning Transformer Unsupervised Video_Caption Video_Classification Video_Indexing Video_Prediction Video_Retrieval Visual_Relation VQA Weakly_Supervised Zero-Shot