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

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

Introduction

As Large Language Models (LLMs) approach the limits of training-time scaling, researchers are increasingly turning to inference scaling—allocating more compute at test time to improve response quality. Two dominant strategies for this are Majority Voting (selecting the most frequent answer) and Best-of-N (BoN) (sampling $N$ answers and selecting the one with the highest reward model score).

However, these methods exhibit significant flaws, particularly in the Pass@k setting. In Pass@k evaluation, a model is allowed to submit $k$ different candidate responses and is considered successful if any of them are correct.

  1. Majority Voting ignores the nuanced signals from reward models and often fails on highly complex tasks where the correct answer is rarely generated.
  2. Best-of-N is highly susceptible to "reward overoptimization." If the sampling budget $N$ is too large, the reward model may assign a spuriously high score to a rare, hallucinated response. Consequently, performance can actually degrade as more compute is spent.

Currently, no existing strategy scales optimally with both the number of submissions ($k$) and the total sampling budget ($N$).

The Best-of-Majority (BoM) Strategy

To bridge this gap, the authors propose Best-of-Majority (BoM), a hybrid inference strategy that combines the frequency-based robustness of majority voting with the reward-based precision of BoN. BoM operates in three primary steps:

  1. Sampling: Generate a large batch of $N$ candidate responses from the LLM policy.
  2. Frequency Filtering (Pessimism Step): Calculate the frequency of each unique response. Discard any response that appears less often than a specific threshold ($\alpha$). This step relies on the principle of pessimism: if a response is extremely rare, the reward model likely hasn't seen enough similar data to judge it accurately, making it a risky selection.
  3. Reward Selection: From the remaining "trusted" high-frequency candidates, use a reward model to select the top $k$ responses for final submission.
Theoretical comparison of inference strategies

As shown in the theoretical comparison above, BoM achieves a worst-case regret bound of $O(\epsilon_{\text{opt}} + \sqrt{\epsilon_{\text{RM}}^2 C^* / k})$, matching the theoretical lower bound and certifying the algorithm as minimax optimal.

Key Insights and Theoretical Guarantees

  • Scaling Monotonicity: A critical advantage of BoM is that it is scaling-monotonic. Unlike Best-of-N, which can peak and then decline as $N$ increases due to overoptimization, BoM filters out low-frequency outliers. This effectively shields the reward model from being tricked by rare hallucinations, ensuring that increasing the sample size $N$ consistently leads to stable or improved results.
  • Optimal $k$-Scaling: While most prior theoretical work focuses on $k=1$ (single-shot selection), this research explicitly characterizes the $1/\sqrt{k}$ scaling law. It demonstrates mathematically how the problem becomes easier as the agent is allowed more submissions, and proves that BoM optimally leverages this allowance.
  • Frequency as a Proxy for Uncertainty: The core intuition behind BoM is that sampling frequency is a reliable proxy for a reward model’s reliability. If the generator rarely produces an answer, the reward model’s score for that specific answer is inherently untrustworthy.

Empirical Results

The BoM strategy was evaluated on challenging mathematical reasoning benchmarks where correctness is objectively verifiable, including GSM8K, MATH-500, and AIME24. The experiments utilized policy models like Qwen3-4B-Instruct and Qwen2.5-Math-1.5B-Instruct, paired with reward models such as AceMath-7B-RM and InternLM2-reward.

  • Superiority on Hard Tasks: On the rigorous AIME24 and MATH-500 datasets, BoM consistently outperformed both Majority Voting and standard BoN.
  • Robustness to Budget: In experiments varying the sampling budget $N$ from 100 to 2000, BoM’s accuracy remained stable or improved. In contrast, BoN’s performance frequently degraded after a certain threshold due to reward overoptimization.

Limitations and Future Directions

While BoM offers strong theoretical and empirical advantages, it has a few limitations. The current theoretical proof assumes a unique correct answer, which is common in math and coding but may not apply to creative tasks (e.g., writing) where multiple optimal, diverse responses exist. Additionally, BoM relies on a frequency threshold hyperparameter ($\alpha$). While the authors provide a theoretical basis for this value, practical applications may require tuning based on specific model characteristics and task difficulty. Future work could also explore instance-dependent bounds that account for the specific difficulty of individual prompts, rather than relying solely on worst-case minimax bounds.

Summary updated

BibTeX
@inproceedings{di2026best,
  author = {Qiwei Di and Kaixuan Ji and Xuheng Li and Heyang Zhao and Quanquan Gu},
  title = {{Best-of-Majority: Minimax-Optimal Strategy for Pass@k Inference Scaling}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=a6CVQpjbXq},
}
Figure