OptScale: 推断时间缩放的概率最优性
OptScale: Probabilistic Optimality for Inference-time Scaling
AI总结:
OptScale通过概率框架和动态样本决策,提升LLMs推理性能并减少采样开销。
摘要:
在推断时间进行缩放已成为增强大型语言模型(LLMs)推理性能的一种强大技术。然而,现有方法往往依赖于并行采样的启发式策略,缺乏理论基础。为解决这一差距,我们提出了一种概率框架,该框架在假设并行样本独立同分布(i.i.d.)且最佳的N选择策略遵循可估计的概率分布的前提下,形式化了推断时间缩放的最优性。在此框架中,我们推导出达到目标性能水平所需样本数的理论下界,为计算高效的缩放提供了首个理论指导。利用这一洞察,我们开发了OptScale,一种实用算法,能够动态确定所需的最优样本数。OptScale采用基于语言模型的预测器来估计概率先验参数,从而决定满足预设性能阈值和置信水平的最小样本数。在代表性推理基准(包括MATH-500、GSM8K、AIME和AMC)上的广泛实验表明,OptScale显著减少了采样开销,同时在推理性能上保持优于或与最先进的水平相当。我们的工作为推断时间缩放提供了理论基础和实用解决方案,填补了在复杂推理中高效部署LLMs的关键空白。
英文摘要:
Inference-time scaling has emerged as a powerful technique for enhancing the reasoning performance of Large Language Models (LLMs). However, existing approaches often rely on heuristic strategies for parallel sampling, lacking a principled foundation. To address this gap, we propose a probabilistic framework that formalizes the optimality of inference-time scaling under the assumption that parallel samples are independently and identically distributed (i.i.d.), and where the Best-of-$N$ selection strategy follows a probability distribution that can be estimated. Within this framework, we derive a theoretical lower bound on the required number of samples to achieve a target performance level, providing the first principled guidance for compute-efficient scaling. Leveraging this insight, we develop \textsc{OptScale}, a practical algorithm that dynamically determines the optimal number of sampled responses. \textsc{OptScale} employs a language model-based predictor to estimate probabilistic prior parameters, enabling the decision of the minimal number of samples needed that satisfy predefined performance thresholds and confidence levels. Extensive experiments on representative reasoning benchmarks (including MATH-500, GSM8K, AIME, and AMC) demonstrate that \textsc{OptScale} significantly reduces sampling overhead while remaining better or on par with state-of-the-art reasoning performance. Our work offers both a theoretical foundation and a practical solution for principled inference-time scaling, addressing a critical gap in the efficient deployment of LLMs for complex reasoning.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。