Lune

ICML2025Top-tier venue

Theoretical guarantees on the best-of-n alignment policy

Ahmad Beirami, Alekh Agarwal, Jonathan Berant, Alexander Nicholas D'Amour, Jacob Eisenstein, Chirag Nagpal, Ananda Theertha Suresh

Abstract

A simple and effective method for the inferencetime alignment and scaling test-time compute of generative models is best-of-n sampling, where n samples are drawn from a reference policy, ranked based on a reward function, and the highest ranking one is selected. A commonly used analytical expression in the literature claims that the KL divergence between the best-of-n policy and the reference policy is equal to log(n) -(n -1)/n. We disprove the validity of this claim, and show that it is an upper bound on the actual KL divergence. We also explore the tightness of this upper bound in different regimes, and propose a new estimator for the KL divergence and empirically show that it provides a tight approximation. We also show that the win rate of the best-of-n policy against the reference policy is upper bounded by n/(n + 1) and derive bounds on the tightness of this characterization. We conclude with analyzing the tradeoffs between win rate and KL divergence of the best-of-n alignment policy, which demonstrate that very good tradeoffs are achievable with n < 1000.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

21 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Controlled Decoding from Language Models cites Scaling Laws for Reward Model Overoptimization
  • Controlled Decoding from Language Models cites Direct Preference Optimization: Your Language Model is Secretly a Reward Model
  • Controlled Decoding from Language Models cites Training language models to follow instructions with human feedback
  • Fast Best-of-N Decoding via Speculative Rejection cites Controlled Decoding from Language Models
  • Fast Best-of-N Decoding via Speculative Rejection cites Scaling Laws for Reward Model Overoptimization
  • Fast Best-of-N Decoding via Speculative Rejection cites Direct Preference Optimization: Your Language Model is Secretly a Reward Model
  • Fast Best-of-N Decoding via Speculative Rejection cites Reward Model Ensembles Help Mitigate Overoptimization
  • Fast Best-of-N Decoding via Speculative Rejection cites BoNBoN Alignment for Large Language Models and the Sweetness of Best-of-n Sampling
  • Fast Best-of-N Decoding via Speculative Rejection cites Training language models to follow instructions with human feedback
  • Scaling Laws for Reward Model Overoptimization cites Training language models to follow instructions with human feedback
  • Direct Preference Optimization: Your Language Model is Secretly a Reward Model cites Training language models to follow instructions with human feedback
  • Iterative Preference Learning from Human Feedback: Bridging Theory and Practice for RLHF under KL-constraint cites Scaling Laws for Reward Model Overoptimization
  • Iterative Preference Learning from Human Feedback: Bridging Theory and Practice for RLHF under KL-constraint cites Direct Preference Optimization: Your Language Model is Secretly a Reward Model
  • Iterative Preference Learning from Human Feedback: Bridging Theory and Practice for RLHF under KL-constraint cites Reward Model Ensembles Help Mitigate Overoptimization
  • Iterative Preference Learning from Human Feedback: Bridging Theory and Practice for RLHF under KL-constraint cites Training language models to follow instructions with human feedback
  • Reward Model Ensembles Help Mitigate Overoptimization cites Scaling Laws for Reward Model Overoptimization
  • Reward Model Ensembles Help Mitigate Overoptimization cites Direct Preference Optimization: Your Language Model is Secretly a Reward Model
  • Reward Model Ensembles Help Mitigate Overoptimization cites Training language models to follow instructions with human feedback
  • BoNBoN Alignment for Large Language Models and the Sweetness of Best-of-n Sampling cites Controlled Decoding from Language Models
  • BoNBoN Alignment for Large Language Models and the Sweetness of Best-of-n Sampling cites Scaling Laws for Reward Model Overoptimization
  • BoNBoN Alignment for Large Language Models and the Sweetness of Best-of-n Sampling cites Direct Preference Optimization: Your Language Model is Secretly a Reward Model
  • BoNBoN Alignment for Large Language Models and the Sweetness of Best-of-n Sampling cites Iterative Preference Learning from Human Feedback: Bridging Theory and Practice for RLHF under KL-constraint
  • BoNBoN Alignment for Large Language Models and the Sweetness of Best-of-n Sampling cites Training language models to follow instructions with human feedback
  • Inference-Time Reward Hacking in Large Language Models cites Controlled Decoding from Language Models
  • Inference-Time Reward Hacking in Large Language Models cites Scaling Laws for Reward Model Overoptimization
  • Inference-Time Reward Hacking in Large Language Models cites Direct Preference Optimization: Your Language Model is Secretly a Reward Model
  • Inference-Time Reward Hacking in Large Language Models cites Reward Model Ensembles Help Mitigate Overoptimization
  • Inference-Time Reward Hacking in Large Language Models cites BoNBoN Alignment for Large Language Models and the Sweetness of Best-of-n Sampling
  • How RLHF Amplifies Sycophancy cites Scaling Laws for Reward Model Overoptimization
  • How RLHF Amplifies Sycophancy cites BoNBoN Alignment for Large Language Models and the Sweetness of Best-of-n Sampling
  • How RLHF Amplifies Sycophancy cites Training language models to follow instructions with human feedback
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers21

  1. Iterative Preference Learning from Human Feedback: Bridging Theory and Practice for RLHF under KL-constraintWei Xiong, Hanze Dong, Chenlu Ye, Ziqi Wang et al.ICML 2024 · 346 citations
  2. BoNBoN Alignment for Large Language Models and the Sweetness of Best-of-n SamplingLin Gui, Cristina Garbacea, Victor VeitchNeurIPS 2024 · 138 citations
  3. Controlled Decoding from Language ModelsSidharth Mudgal, Jong Lee, Harish Ganapathy, YaGuang Li et al.ICML 2024 · 130 citations
  4. Inference-Time Reward Hacking in Large Language ModelsHadi Khalaf, Claudio Mayrink Verdun, Alex Oesterling, Himabindu Lakkaraju et al.NeurIPS 2025 · 38 citations
  5. How RLHF Amplifies SycophancyItai Shapira, Gerdus Benade, Ariel ProcacciaICML 2026 · 16 citations

Builds on13

  1. Training language models to follow instructions with human feedbackLong Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida et al.NeurIPS 2022 · 24,707 citations
  2. Direct Preference Optimization: Your Language Model is Secretly a Reward ModelRafael Rafailov, Archit Sharma, Eric Mitchell, Christopher D. Manning et al.NeurIPS 2023 · 10,924 citations
  3. Scaling Laws for Reward Model OveroptimizationLeo Gao, John Schulman, Jacob HiltonICML 2023 · 963 citations
  4. Reward Model Ensembles Help Mitigate OveroptimizationThomas Coste, Usman Anwar, Robert Kirk, David KruegerICLR 2024 · 208 citations
  5. Fast Best-of-N Decoding via Speculative RejectionHanshi Sun, Momin Haider, Ruiqi Zhang, Huitao Yang et al.NeurIPS 2024 · 144 citations

Related papers

  1. Best-of-N through the Smoothing Lens: KL Divergence and Regret AnalysisGholamali Aminian, Idan Shenfeld, Amir R. Asadi, Ahmad Beirami et al.ICLR 2026 · 16 citations
  2. InfAlign: Inference-aware language model alignmentAnanth Balashankar, Ziteng Sun, Jonathan Berant, Jacob Eisenstein et al.ICML 2025
  3. Variational Best-of-N AlignmentAfra Amini, Tim Vieira, Elliott Ash, Ryan CotterellICLR 2025 · 1 citation
  4. Is Best-of-N the Best of Them? Coverage, Scaling, and Optimality in Inference-Time AlignmentAudrey Huang, Adam Block, Qinghua Liu, Nan Jiang et al.ICML 2025
  5. ETS: Energy-Guided Test-Time Scaling for Training-Free RL AlignmentXiuyu Li, Jinkai Zhang, Mingyang Yi, Yu Li et al.ICML 2026 · 4 citations
Dusk over the sea between two cliffs drawn in fine vertical lines