Abstract
As Large Language Models (LLMs) approach the limits of pre-training, inference-time scaling has emerged as a critical frontier for performance gains. Traditional strategies such as Majority Voting and Best-of-N (BoN) often struggle in the "Pass@k" evaluation setting, where models provide multiple candidate solutions. Specifically, BoN is susceptible to reward overoptimization, where increasing the sample size can paradoxically lead to performance degradation. This paper introduces Best-of-Majority (BoM), a minimax-optimal and scaling-monotonic inference strategy. By integrating frequency-based filtering with reward model ranking, BoM ensures that performance consistently improves with increased compute. Empirical evaluations on math reasoning benchmarks like GSM8K and MATH-500 demonstrate BoM's superiority and robustness compared to existing baselines.
Introduction
The current paradigm of LLM development is shifting towards inference scaling—leveraging additional computation at test time to refine model outputs. In many practical applications, such as competitive programming or mathematical problem-solving, performance is measured by the Pass@k metric: the probability that at least one of $k$ submitted answers is correct.
Existing strategies for selecting these $k$ answers generally fall into two categories:
- Majority Voting: Selecting the most frequent answers from a generated batch.
- Best-of-N (BoN): Using a reward model (RM) to score $N$ samples and selecting the top-scoring candidates.
However, these methods face significant challenges. Majority Voting ignores the nuanced signals from reward models, while Best-of-N is prone to "reward hacking." As the number of samples $N$ grows, BoN is increasingly likely to pick a "hallucinated" response that happens to trigger a high score from the reward model, leading to a performance plateau or even a decline.
The Best-of-Majority (BoM) Strategy
To address these limitations, researchers from UCLA proposed Best-of-Majority (BoM). The core philosophy of BoM is pessimism: it assumes that reward models are only reliable when evaluating responses that the generator (the LLM) produces with high frequency.
The BoM algorithm operates in three distinct phases:
- Sampling: Generate a large batch of $N$ responses from the base LLM.
- Filtering (The "Majority" Component): Calculate the frequency of each unique response. Any response appearing less frequently than a predefined threshold ($\alpha$) is discarded. This step acts as a safety filter, removing rare, "weird" outputs where the reward model's uncertainty is likely high.
- Ranking (The "Best-of" Component): From the remaining high-frequency candidates, the reward model selects the top $k$ responses to be submitted.
Theoretical Foundations
The primary innovation of BoM lies in its theoretical guarantees. The authors identify two critical properties for an ideal inference strategy:
- Scaling-Monotonicity: Performance should never decrease as the computational budget (number of samples $N$) increases. The authors prove that while Majority Voting and BoN lack this property, BoM is inherently scaling-monotonic.
- Minimax Optimality: BoM's "regret"—the performance gap between the chosen answers and the perfect answer—matches the theoretical lower bound. This makes it mathematically optimal for the Pass@k setting.
The frequency filter in BoM serves as a robust defense against reward overoptimization. By only trusting the reward model on "familiar" outputs, BoM avoids the traps of high-reward failures that plague standard Best-of-N.
Experimental Results
The researchers evaluated BoM using Qwen3-4B-Instruct and Qwen2.5-Math-1.5B as base models, paired with the AceMath-7B-RM reward model. Testing was conducted on three rigorous mathematical benchmarks: GSM8K, MATH-500, and AIME24.
Key Findings:
- Superior Accuracy: On MATH-500, BoM consistently outperformed both Majority Voting and BoN across various values of $k$.
- Robustness to Budget: In AIME24 experiments, as the sampling budget $N$ increased from 100 to 2,000, the performance of Best-of-N eventually declined due to overoptimization. BoM, however, maintained stable or improving performance, validating its scaling-monotonic design.
- Computational Efficiency: By filtering candidates before reward model evaluation, BoM can reduce the total number of expensive RM calls compared to standard BoN approaches.
Conclusion and Future Directions
Best-of-Majority establishes a new gold standard for inference-time scaling in the Pass@k setting. By grounding reward model signals in response frequency, it provides a mathematically sound and practically robust method for improving LLM performance.
Future research may focus on extending BoM to open-ended tasks like creative writing, where defining "frequency" is more complex due to linguistic diversity. Additionally, integrating the BoM strategy directly into the RLHF (Reinforcement Learning from Human Feedback) training loop could potentially lead to even more capable and reliable models.
Summary updated