cs.LGOct 3, 2025

Best-of-Majority: Minimax-Optimal Strategy for Pass@kk Inference Scaling

Authors: Qiwei Di, Kaixuan Ji, Xuheng Li, Heyang Zhao, Quanquan Gu

Organizations: Department of Computer Science, University of California, Los Angeles, CA 90095, USA

Abstract

LLM inference often generates a batch of candidates for a prompt and selects one via strategies like majority voting or Best-of- N (BoN). For difficult tasks, this single-shot selection often underperforms. Consequently, evaluations commonly report Pass@kk: the agent may submit up to kk responses, and only the best of them is used when computing regret. Motivated by this, we study inference scaling in the more general Pass@kk inference setting, and prove that neither majority voting nor BoN exhibits the desirable scaling with kk and the sampling budget NN. Combining the advantages of majority voting and BoN, we propose a new inference strategy called Best-of-Majority (BoM), with a pivotal step that restricts the candidates to the responses with high frequency in the NN samples before selecting the top-kk rewards. We prove that when the sampling budget is N=Ω~(C∗)N=\tildeΩ(C^*), the regret of BoM is O(εopt+εRM2C∗/k)O(ε_{\mathrm{opt}}+\sqrt{ε_{\mathrm{RM}}^2C^*/k}), where C∗C^* is the coverage coefficient, εRMε_{\mathrm{RM}} is the estimation error of the reward model, and εoptε_{\mathrm{opt}} is the estimation error of reward at the optimal response. We further establish a matching lower bound, certifying that our algorithm is minimax optimal. Beyond optimality, BoM has a key advantage: unlike majority voting and BoN, its performance does not degrade when increasing NN. Experimental results of inference on math problems show BoM outperforming both majority voting and BoN.

Figures & tables

Appendix figures & tables4 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. BOSS: Token-Budgeted Online Sampling and Selection for LLM Reasoning

    Oct 19, 2026Yupeng Chang, Yahan Li, Chenlu Guo +3Efficient Language Model ReasoningInference-Time Compute Allocation

  2. Predicting Inference-Time Scaling Gains from Labeled Validation-Set Output Statistics

    Jun 2, 2026Luyang Zhang, Jingyan LiLLM EvaluationLanguage Model Performance Prediction