mlsanityData to 7 Oct 2026

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

arXiv 2510.01394 ↗First posted 1 Oct 2025cs.LG cs.CLcited by 6

On the map: LLM alignment / RLHF / preference optimisation → LLM preference optimization methods

Abstract (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.

Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). Placed in LLM preference optimization methods, one of 10 directions in LLM alignment / RLHF / preference optimisation. Builds on 37 of its 46 references that are in the map. First posted on arXiv 1 Oct 2025.

Builds on

37 of 46 references.

Closest ancestors · 4

Same direction, newest first

  1. 2025Sampling-Efficient Test-Time Scaling: Self-Estimating the Best-of-N Sampling in Early Decoding3 Mar
  2. 2024Adaptive Inference-Time Compute: LLMs Can Predict if They Can Do Better, Even Mid-Generation3 Oct
  3. 2024Asymptotics of Language Model Alignment2 Apr
  4. 2022Training language models to follow instructions with human feedback4 Mar

Other references · 33

  1. 2023GPT-4 Technical Reportcited by 18,132
  2. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  3. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
  4. 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,601
  5. 2017Deep reinforcement learning from human preferencescited by 3,846
  6. 2022Training a Helpful and Harmless Assistant with Reinforcement Learning from Human Feedbackcited by 3,634
  7. 2023Tree of Thoughts: Deliberate Problem Solving with Large Language Modelscited by 3,155
  8. 2022Training Compute-Optimal Large Language Modelscited by 2,927
  9. 2021WebGPT: Browser-assisted question-answering with human feedbackcited by 1,722
  10. 2022Fast Inference from Transformers via Speculative Decodingcited by 1,615
  11. 2023Accelerating Large Language Model Decoding with Speculative Samplingcited by 975
  12. 2023RAFT: Reward rAnked FineTuning for Generative Foundation Model Alignmentcited by 672
21 more
  1. 2016Adaptive Computation Time for Recurrent Neural Networkscited by 479
  2. 2023Iterative Preference Learning from Human Feedback: Bridging Theory and Practice for RLHF under KL-Constraintcited by 346
  3. 2022Confident Adaptive Language Modelingcited by 297
  4. 2023Alphazero-like Tree-Search can Guide Large Language Model Decoding and Trainingcited by 291
  5. 2023Large Language Model Cascades with Mixture of Thoughts Representations for Cost-efficient Reasoningcited by 140
  6. 2024From Decoding to Meta-Generation: Inference-time Algorithms for Large Language Modelscited by 136
  7. 2024Theoretical guarantees on the best-of-n alignment policycited by 116
  8. 2024Fast Best-of-N Decoding via Speculative Rejectioncited by 112
  9. 2024Escape Sky-high Cost: Early-stopping Self-Consistency for Multi-step Reasoningcited by 105
  10. 2025Efficient Test-Time Scaling via Self-Calibrationcited by 74
  11. 2024Routoo: Learning to Route to Large Language Models Effectivelycited by 34
  12. 2024AdaEDL: Early Draft Stopping for Speculative Decoding of Large Language Models via an Entropy-based Lower Bound on Token Acceptance Probabilitycited by 24
  13. 2024Cost-aware Bayesian Optimization via the Pandora's Box Gittins Indexcited by 16
  14. 2025The Energy Cost of Reasoning: Analyzing Energy Usage in LLMs with Test-time Computecited by 14
  15. 2022Bandit Algorithms for Prophet Inequality and Pandora's Boxcited by 13
  16. 2022Online Learning for Min Sum Set Cover and Pandora's Boxcited by 11
  17. 2023Lightweight reranking for language model generationscited by 10
  18. 2019Online Pandora's Boxes and Banditscited by 7
  19. 2025AdaDecode: Accelerating LLM Decoding with Adaptive Layer Parallelismcited by 7
  20. 2022Contextual Pandora's Boxcited by 5
  21. 2024Model Cascading for Code: A Cascaded Black-Box Multi-Model Framework for Cost-Efficient Code Completion with Self-Testingcited by 5

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 6.

6 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025On the Limits of Test-Time Compute: Sequential Reward Filtering for Better Inference
  2. 2025Wider or Deeper? Scaling LLM Inference-Time Compute with Adaptive Branching Tree Search
  3. 2025Demystifying LLM-as-a-Judge: Analytically Tractable Model for Inference-Time Scaling
  4. 2025When Life Gives You Samples: The Benefits of Scaling up Inference Compute for Multilingual LLMs
  5. 2026Adaptive Decoding via Test-Time Policy Learning for Self-Improving Generation
  6. 2026Recipes for Steering and Scaling LLMs via Sampling
  7. 2026Predicting and improving test-time scaling laws via reward tail-guided search
  8. 2024Scaling LLM Test-Time Compute Optimally can be More Effective than Scaling Model Parameters