Best-of-Majority: Minimax-Optimal Strategy for Pass@ Inference Scaling
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@: the agent may submit up to responses, and only the best of them is used when computing regret. Motivated by this, we study inference scaling in the more general Pass@ inference setting, and prove that neither majority voting nor BoN exhibits the desirable scaling with and the sampling budget . 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 samples before selecting the top- rewards. We prove that when the sampling budget is , the regret of BoM is , where is the coverage coefficient, is the estimation error of the reward model, and 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 . Experimental results of inference on math problems show BoM outperforming both majority voting and BoN.
Figures & tables
| Algorithm | Worst-case regret | Scaling-monotonic | Optimal -scaling |
| Majority voting | (Theorem 4.1 ) | No | No |
| Best-of- | (Theorem 4.2 | No | Unknown |
| Best-of-Majority (Ours) | (Theorem 5.1 ) | Yes | Yes |
| Lower Bound | (Theorem 6.1 ) | - | - |
| Pass@ | 1 | 2 | 3 | 5 | 10 |
| (BoN) | 83.6 | 87.2 | 88.8 | 89.2 | 90 |
| 86 | 88.8 | 89 | 89.2 | 90 | |
| 86.8 | 89.2 | 89.6 | 89.8 | 90.2 | |
| 86.6 | 89 | 89.6 | 89.8 | 90.2 | |
| 86.6 | 88.8 | 89.4 | 89.4 | 89.6 | |
| 87.4 | 88.8 | 89.4 | 89.4 | 89.8 |
Appendix figures & tables4 assets
Supplementary material from the paper’s appendix.
Appendix
| Pass@ | 1 | 2 | 3 | 5 | 10 |
| (BoN) | 53.3 | 60 | 63.3 | 70 | 73.3 |
| 56.7 | 66.7 | 70 | 73.3 | 73.3 | |
| 53.3 | 66.7 | 70 | 70 | 70 | |
| 56.7 | 70 | 70 | 70 | 70 | |
| 50 | 63.3 | 63.3 | 63.3 | 63.3 | |
| 50 | 60 | 60 | 60 | 60 |
| Pass@ | 1 | 2 | 3 | 5 | 10 |
| (BoN) | 83.58 | 88.56 | 91.50 | 92.38 | 93.26 |
| 85.34 | 90.32 | 92.38 | 92.67 | 92.67 | |
| 85.34 | 90.03 | 92.08 | 92.38 | 92.38 | |
| 85.92 | 90.62 | 92.08 | 92.08 | 92.08 | |
| 86.22 | 90.32 | 91.50 | 91.50 | 91.50 | |
| 86.22 | 90.32 | 91.20 | 91.20 | 91.20 |
LLM Inference
Large language model inference studies how models generate outputs efficiently, reliably, and securely across hardware and workloads.
See all 285 papers