Abstract
BOND (Best-of-N Distillation) is a novel RLHF algorithm designed to train Large Language Models (LLMs) to match the performance of "Best-of-N" (BoN) sampling without its significant inference-time overhead. By framing alignment as a distribution matching problem using Jeffreys divergence and an iterative moving anchor policy, BOND achieves superior reward-KL trade-offs compared to standard reinforcement learning methods like PPO. BOND was instrumental in the development of the Gemma 1.1 model series, demonstrating its effectiveness in large-scale instruction following and safety alignment.
TL;DR
BOND (Best-of-N Distillation) is a novel RLHF algorithm that trains Large Language Models to mimic the high-quality outputs of "Best-of-N" sampling without the massive inference-time overhead. By combining a robust "Jeffreys divergence" objective with an iterative moving anchor, BOND achieves superior alignment and better reward-KL trade-offs than standard reinforcement learning methods.
What Problem Does This Paper Address?
Aligning LLMs with human preferences typically involves Reinforcement Learning from Human Feedback (RLHF). While effective, standard RLHF (like PPO or REINFORCE) is notoriously difficult to tune and prone to "reward hacking"—where the model finds loopholes in the reward model to get high scores without actually producing better text.
A much simpler, highly effective alternative is Best-of-N (BoN) sampling: you generate $N$ different responses and let a reward model pick the best one. This consistently yields high-quality results, but it’s computationally expensive—it makes inference $N$ times slower. The authors of BOND ask: Can we train a model so that its very first sample is as good as the best of $N$ samples?
Methods
The core idea is to treat alignment as a distribution matching problem. Instead of just maximizing reward, BOND forces the model's output distribution to get closer to the "ideal" Best-of-N distribution.
Key technical innovations include:
- Jeffreys Divergence: Most methods use either "Forward KL" (which can make models too "blurry" or mode-covering) or "Backward KL" (which can lead to "mode-seeking" behavior and model collapse). BOND uses Jeffreys divergence—a weighted combination of both—to get the stability of the former and the high performance of the latter.
- Iterative BOND & Moving Anchors: Rather than trying to reach a high-$N$ distribution in one giant leap, the authors propose an iterative approach. They use a moving "anchor" policy (updated via Exponential Moving Average) to continuously nudge the model toward better performance.
- J-BOND: This is the practical, efficient implementation. It uses a "crude" reward estimate based on just two anchor samples, making it computationally feasible for large-scale training while maintaining the theoretical benefits of the BOND framework.
Datasets
The researchers evaluated BOND across several challenging domains:
- Abstractive Summarization: Using the XSum dataset, where models must produce concise summaries of news articles.
- General Instruction Following: They applied J-BOND to the Gemma family of models (2B and 7B variants), as well as CodeGemma and RecurrentGemma.
- Benchmarks: Evaluation was performed on standard academic benchmarks and through side-by-side human/AI comparisons against models like Mixtral 7B.
Key Insights and Ideas
- BoN is the "Hidden" RLHF Solution: The paper provides a mathematical proof showing that Best-of-N sampling is actually the optimal solution to a specific KL-regularized RLHF problem. This bridges the gap between simple sampling heuristics and formal RL theory.
- Robustness to Hacking: Because the BOND reward is based on quantiles (how a response ranks compared to others) rather than absolute reward scores, it is naturally more robust to reward model glitches. It cares about being "better than average," not just "having a high number."
- The Power of the Anchor: Using an EMA (Exponential Moving Average) anchor proved critical. It provides a stable reference point that moves with the model, allowing for a smoother "climb" toward higher quality without the instability often seen in online RL.
Key Results
- Better Pareto Fronts: In summarization tasks, BOND achieved a significantly better trade-off between high reward and staying close to the base model (low KL) compared to standard REINFORCE.
- Gemma 1.1 Success: J-BOND was the primary algorithm used to create the Gemma 1.1 open-weight models. The Gemma 1.1 IT 7B model outperformed Mistral 7B v0.2 Instruct in both safety and instruction-following benchmarks.
- Efficiency: BOND allows a model to achieve the performance of a Best-of-16 (or higher) sampling strategy while only requiring a single sample at inference time.
Limitations and Future Work
- Training Complexity: While BOND saves time at inference, it still requires generating multiple samples during the training phase to estimate quantiles.
- Reward Model Dependency: Like all RLHF methods, BOND is still limited by the quality of the underlying Reward Model. If the RM has fundamental biases, BOND will distill those biases into the policy.
- Learned Quantiles: The authors suggest that instead of Monte-Carlo sampling during training, one could train a separate "quantile model" to predict how good a response is relative to the distribution, which could further speed up training.
Summary updated