paper-with-me

홈 › Papers

Optimal Stopping vs Best-of-$N$ for Inference Time Optimization

2025-10-01 · Yusuf Kalayci, Vinod Raman, Shaddin Dughmi arxiv

Large language model (LLM) generation often requires balancing output quality against inference cost, especially when using multiple generations. We introduce a new framework for inference-time optimization based on the classical Pandora's Box problem. Viewing each generation as opening a costly "box" with random reward, we develop algorithms that decide when to stop generating without knowing the underlying reward distribution. Our first contribution is a UCB-style Pandora's Box algorithm, which achieves performance that is provably close to Weitzman's algorithm, the optimal strategy when the distribution is known. We further adapt this method to practical LLM settings by addressing reward scaling across prompts via a Bradley-Terry inspired transformation. This leads to an adaptive inference-time optimization method that normalizes rewards and learns stopping thresholds on the fly. Experiments on the AlpacaFarm and HH-RLHF datasets, using multiple LLM-reward model pairs, show that our adaptive strategy can obtain the same performance as non-adaptive Best-of-N sampling while requiring 15-35 percent fewer generations on average. Our results establish a principled bridge between optimal stopping theory and inference-time scaling, providing both theoretical performance bounds and practical efficiency gains for LLM deployment.

📄 PDF Abstract BibTeX arXiv:2510.01394

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Gradient-Flow Optimization as Dynamic Random-Effects Inference: Testing and Early Stopping with Applications to Deep Learning

2026-05-27 · Minhao Yao, Ruoyu Wang, Xihong Lin, Lin Liu 외 arxiv

Gradient-flow optimization is usually viewed as an algorithmic procedure for minimizing empirical loss, with training duration selected by validation or heuristic early stopping rules. We develop a statistical inference …

Learning to Stop: Deep Learning for Mean Field Optimal Stopping

2024-10-11 · Lorenzo Magnino, Yuchen Zhu, Mathieu Laurière

Optimal stopping is a fundamental problem in optimization with applications in risk management, finance, robotics, and machine learning. We extend the standard framework to a multi-agent setting, named multi-agent optima…

Deep Learning

Fast and Regret Optimal Best Arm Identification: Fundamental Limits and Low-Complexity Algorithms

2023-09-01 · NeurIPS 2023 11 · Qining Zhang, Lei Ying

This paper considers a stochastic Multi-Armed Bandit (MAB) problem with dual objectives: (i) quick identification and commitment to the optimal arm, and (ii) reward maximization throughout a sequence of $T$ consecutive r…

Anytime-valid Optimal Policy Identification

2026-06-16 · Daniel Molitor arxiv

We develop an anytime-valid framework for optimal policy identification from logged contextual bandit data. In many applied settings, the analyst wants to select the optimal policy from a candidate policy class $Π$, but …

Optimization, fast and slow: optimally switching between local and Bayesian optimization

2018-05-22 · ICML 2018 7 · Mark McLeod, Michael A. Osborne, Stephen J. Roberts

We develop the first Bayesian Optimization algorithm, BLOSSOM, which selects between multiple alternative acquisition functions and traditional local optimization at each step. This is combined with a novel stopping cond…

Bayesian Optimization