Majority of the Bests: Improving Best-of-N via Bootstrapping
Amin Rakhsha, Kanika Madan, Tianyu Zhang, Amir-massoud Farahmand, Amir Khasahmadi
TL;DR
This paper tackles the unpredictability of Best-of-N under imperfect reward models by analyzing BoN's output distribution and identifying that the correct answer, while not highly probable, often corresponds to the mode. It introduces Majority-of-the-Bests (MoB), a bootstrapping-based method that estimates BoN's output distribution and selects the mode, with an adaptive mechanism for the subsample size $m$. The authors provide theoretical consistency results and demonstrate substantial empirical gains across five benchmarks, three base LLMs, and two reward models, improving BoN performance in 25 of 30 setups. MoB serves as a lightweight, robust alternative to BoN and Self-consistency, with potential extensions to other sampling-based strategies and practical deployment considerations.
Abstract
Sampling multiple outputs from a Large Language Model (LLM) and selecting the most frequent (Self-consistency) or highest-scoring (Best-of-N) candidate is a popular approach to achieve higher accuracy in tasks with discrete final answers. Best-of-N (BoN) selects the output with the highest reward, and with perfect rewards, it often achieves near-perfect accuracy. With imperfect rewards from reward models, however, BoN fails to reliably find the correct answer and its performance degrades drastically. We consider the distribution of BoN's outputs and highlight that, although the correct answer does not usually have a probability close to one under imperfect rewards, it is often the most likely outcome. This suggests that the mode of this distribution can be more reliably correct than a sample from it. Based on this idea, we propose Majority-of-the-Bests (MoB), a novel selection mechanism that estimates the output distribution of BoN via bootstrapping and selects its mode. Experimental results across five benchmarks, three different base LLMs, and two reward models demonstrate consistent improvements over BoN in 25 out of 30 setups. We also provide theoretical results for the consistency of the bootstrapping. MoB serves as a simple, yet strong alternative to BoN and self-consistency, and more broadly, motivates further research in more nuanced selection mechanisms.
