OptScale: Probabilistic Optimality for Inference-time Scaling

Youkang Wang, Jian Wang, Rubing Chen, Xiao-Yong Wei
6/27/2025
3 citations
cs.LGcs.AIcs.CL

No official code found. Best implementation: Albertwyk/OptScale (1 star, Jupyter Notebook, MIT, last commit 2026-01-29).

Abstract

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

Albertwyk/OptScaleCommunity67%
MIT

Official implementation for the Paper "OptScale: Probabilistic Optimality for Inference-time Scaling" (AAAI'2026)

10Jupyter Notebook, PythonAug 10, 202510 months agoMIT

Similar Papers

Cite this paper

@article{wang2025optscale,
  title  = {OptScale: Probabilistic Optimality for Inference-time Scaling},
  author = {Youkang Wang and Jian Wang and Rubing Chen and Xiao-Yong Wei},
  year   = {2025},
  eprint = {2506.22376},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.22376v4}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2506.22376.svg)](https://codeofpaper.com/paper/2506.22376)

Discussion