NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Best-of-N through the Smoothing Lens: KL Divergence and Regret Analysis

Gholamali Aminian, Idan Shenfeld, Amir R. Asadi, Ahmad Beirami, Youssef Mroueh · DOI

Introduction

Aligning Large Language Models (LLMs) with human values is a critical challenge in AI safety. A popular inference-time technique is Best-of-N (BoN) sampling, where $N$ responses are generated, scored by a proxy reward model, and the highest-scoring one is selected. However, BoN is notoriously susceptible to Goodhart’s Law: as $N$ increases, the model may select "hacks"—outputs that achieve high proxy scores but are actually low-quality or harmful. This paper introduces Soft Best-of-N (SBoN), a smoothed selection framework that provides theoretical insights and a practical defense against such overoptimization.

Theoretical Framework: The Smoothing Lens

The authors propose studying BoN through the lens of SBoN. Instead of a hard maximum, SBoN uses a softmax distribution over the $N$ candidates, controlled by a temperature parameter $\beta$. As $\beta \to \infty$, SBoN converges to standard BoN. This relationship allows for a rigorous analysis of model drift (KL divergence) and performance (regret gap).

Theoretical relationship between SBoN, BoN, and optimal policies as N and β approach infinity.

The framework derives finite-sample bounds for KL divergence, showing how the "cost" of alignment scales with $N$ and $\beta$. Crucially, it demonstrates that smoothing acts as a defense mechanism: by avoiding the extreme outliers where reward hacking typically occurs, SBoN can maintain performance even when the proxy reward model is imperfect.

Empirical Validation

To test these theoretical insights, the researchers used the Olmo-2 1B generator on the Attaq safety dataset. They compared a "strong" reward model (ArmoRM 8B) against a "weak" one (Beaver 7B RM), using GPT-4o as the ground-truth evaluator for harmlessness.

Key Results: Mitigating Reward Hacking

The experiments confirmed that SBoN effectively mitigates reward hacking. With the weak reward model, standard BoN's performance significantly degraded as $N$ increased beyond a certain point—a clear instance of overoptimization. In contrast, SBoN with an appropriately tuned temperature $\beta$ maintained stable or improving performance as $N$ grew.

Harmlessness scores vs. N for various β. Left: With a strong reward model, performance generally scales. Right: With a weak reward model, standard BoN (brown) collapses due to reward hacking, while SBoN remains robust.

The study proves that for any scenario involving a low-quality proxy reward model, there exists a version of SBoN that provides a superior reward-vs-KL tradeoff compared to standard BoN. This suggests that "smoothing" is not just a mathematical convenience but a vital tool for robust alignment.

Conclusion and Future Work

By viewing Best-of-N through the lens of smoothing, this work provides both a theoretical foundation for understanding alignment drift and a practical method for robust inference-time alignment. While the current theory assumes bounded rewards, future work may explore extending these bounds to unbounded distributions and developing adaptive smoothing techniques to further optimize the reward-safety tradeoff.

Summary updated

BibTeX
@inproceedings{aminian2026best,
  author = {Gholamali Aminian and Idan Shenfeld and Amir R. Asadi and Ahmad Beirami and Youssef Mroueh},
  title = {{Best-of-N through the Smoothing Lens: KL Divergence and Regret Analysis}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=tCv1D3M7Lb},
}
Figure