TL;DR
BOND (Best-of-N Distillation) is a new RLHF algorithm that distills the high performance of "Best-of-N" sampling into a standard, single-sample LLM policy. By using a balanced "Jeffreys divergence" objective and an iterative moving anchor, BOND achieves superior alignment and reward-KL trade-offs compared to standard RLHF methods like PPO or REINFORCE, all while maintaining inference-time efficiency.
The Inference-Time Cheat Code
In the world of Large Language Models (LLMs), there is a well-known "inference-time cheat code" called Best-of-N (BoN) sampling. Instead of taking the first thing the model says, you generate $N$ different responses, score them with a Reward Model (RM), and pick the winner. It works incredibly well for boosting quality and safety, but it comes with a massive catch: it is expensive. Running inference $N$ times is often a non-starter for real-time, user-facing applications.
The challenge this paper addresses is how to get that "Best-of-N" quality into a model that only needs to sample once. Standard Reinforcement Learning from Human Feedback (RLHF) tries to do this by maximizing rewards, but it often suffers from "reward hacking" (exploiting the RM) or "forgetting" (losing general capabilities). The authors of BOND argue that instead of just chasing high rewards, we should train the model to match the actual distribution of the Best-of-N strategy.
Methods: Alignment as Distribution Matching
The authors propose BOND (Best-of-N Distillation), which treats alignment as a distribution-matching problem. Key components of their approach include:
- Distribution Matching via Jeffreys Divergence: Most RLHF uses "backward KL" (which seeks modes and high rewards but can cause the model to collapse into repetitive outputs). Supervised Fine-Tuning (SFT) uses "forward KL" (which covers all modes but can be mediocre). BOND uses the Jeffreys divergence—a linear combination of both—to find a "Goldilocks" zone that is both high-performing and diverse.
- The BOND Reward: They derive an analytical expression for the BoN distribution, revealing a "BOND reward" that is rank-based (quantile-based). Because it only cares about how a response ranks compared to others, it is naturally robust to reward hacking, where an RM might give an absurdly high score to a nonsensical but "correct-looking" string.
- Iterative BOND & J-BOND: To avoid the computational cost of large $N$ during training, they use an iterative approach.
As shown above, by distilling a Best-of-2 version of a model, then updating the "anchor" and repeating, the model eventually emulates a much larger $N$. The practical version, J-BOND, uses an Exponential Moving Average (EMA) anchor to keep training stable.
Key Insights and Ideas
- BoN is a Regularized Solution: The paper proves that Best-of-N sampling is actually the optimal solution to a specific KL-regularized RL problem. This provides a solid theoretical bridge between simple sampling tricks and formal RL.
- Rank Over Absolute Score: The BOND reward depends on the quantile (how many samples are worse than this one) rather than the raw reward score. This makes the algorithm invariant to monotone transformations of the reward, providing a layer of protection against RM instability.
- The Power of the Moving Anchor: By using an EMA of the model weights as the "anchor" for distillation, BOND can continuously improve without needing to commit to a specific regularization strength upfront.
- Mode Seeking vs. Mode Covering: By tuning the Jeffreys divergence, researchers can explicitly balance between a model that "plays it safe" (covering all valid answers) and one that "goes for the win" (seeking the highest reward).
Experimental Results
The researchers evaluated BOND across abstractive summarization (XSum) and general alignment (fine-tuning Gemma 2B and 7B models).
- Superior Trade-offs: In Gemma 7B experiments, J-BOND achieved a better reward-to-KL trade-off than standard REINFORCE. It reached higher rewards with less "drift" from the base model.
- Benchmark Gains: J-BOND significantly outperformed standard RLHF on reasoning tasks. For example, on the GPQA science benchmark, J-BOND hit 31.2% accuracy compared to 26.6% for the REINFORCE baseline.
- Human-Level Preference: Using Gemini 1.5 as a judge for side-by-side comparisons, J-BOND generations were consistently preferred over standard RLHF across multiple model architectures.
- Stability: Unlike standard RL, which can be very sensitive to the regularization coefficient, J-BOND showed a stable, linear increase in reward and KL throughout training.
Limitations and Future Work
Like all RLHF methods, BOND is still tethered to the quality of the Reward Model; if the RM has fundamental biases, BOND will distill those biases. Furthermore, while more stable than PPO, J-BOND introduces new hyperparameters like the EMA mixing rate and the Jeffreys balance. Finally, the current practical version uses a basic estimate of quantiles based on only two samples. The authors suggest that using more sophisticated learned quantile models could further improve performance in future iterations.
Summary updated