Abstract
Direct Preference Optimization (DPO) has emerged as a popular alternative to Reinforcement Learning from Human Feedback (RLHF) due to its simplicity and computational efficiency. However, empirical evidence suggests that RLHF via Proximal Policy Optimization (PPO) often maintains a performance edge. This paper investigates this gap through the lens of dataset coverage, demonstrating that DPO requires global coverage of the response space to guarantee optimality, whereas online RLHF only requires partial coverage. To address this, we introduce Hybrid Preference Optimization (HyPO), which incorporates online unlabeled sampling to stabilize training and improve performance.
Introduction
Aligning Large Language Models (LLMs) with human preferences typically follows one of two paradigms: the "classic" RLHF approach using PPO and the "modern" offline approach using DPO. While DPO simplifies the pipeline by treating fine-tuning as a classification task on static preference pairs, it often lacks the robustness of online methods. This research explores the fundamental mathematical reasons behind this discrepancy, focusing on how the distribution of training data—or "coverage"—impacts the model's ability to converge to an optimal policy.
Theoretical Analysis: The Coverage Gap
The core of the analysis rests on the concept of dataset coverage, which measures how comprehensively the training data represents the space of possible model outputs.
Global vs. Partial Coverage
The authors prove that DPO’s success is contingent on Global Coverage. Because DPO is an offline method, it can only learn from the specific pairs provided in the dataset. If the dataset does not cover the entire potential response space, the model may fail to find the true optimal policy. In contrast, online RLHF (PPO) only requires Partial Coverage. By sampling from its own current policy during training, PPO explores the space near its current state, allowing it to optimize effectively even with less diverse initial data.
Extrapolation and Function Approximation
A significant insight from the paper is how models can surpass the best examples in their training sets. Through function approximation, both DPO and RLHF can extrapolate underlying patterns to identify optimal actions not explicitly present in the data. However, for DPO, this extrapolation is only reliable if the global coverage condition is met; otherwise, the model is prone to "reward hacking" or drifting into regions of the state space where the reference model's behavior is undefined.
The KL Divergence Problem
A primary failure mode for DPO is the accumulation of "vacuously large" reverse KL divergence. Since DPO does not sample from its own policy during training, it can drift into "hallucination territory"—producing outputs that the original reference model would never generate. This drift often manifests as overfitting after only a few training epochs, leading to a degradation in model "sanity" and performance.
Hybrid Preference Optimization (HyPO)
To bridge the gap between the simplicity of DPO and the stability of online RL, the authors propose HyPO (Hybrid Preference Optimization). HyPO maintains the standard DPO loss on offline preference data but introduces an online KL regularization term.
During training, HyPO samples unlabeled data from the current model. This online sampling forces the model to stay anchored to the reference policy, effectively penalizing it for drifting too far into unexplored regions. This mechanism provides the benefits of online feedback without the complexity of training a separate critic or value network, as required by PPO.
Experimental Results
The researchers evaluated HyPO against standard DPO across several benchmarks, including TL;DR (summarization) and UltraFeedback (general chat).
Performance and Stability
- Summarization (TL;DR): Using a 2.8B parameter model, HyPO achieved a 50.50% win rate, significantly outperforming DPO’s 44.39%.
- KL Stability: HyPO demonstrated superior stability. In a 1.4B model, HyPO maintained a KL divergence of 27.07, compared to 44.90 for DPO, indicating that HyPO is much less prone to the "drift" that plagues pure offline methods.
- General Chat (Llama-3-8B): On AlpacaEval 2.0, HyPO achieved a 30.7% LC win rate, surpassing DPO’s 28.4%. It also showed improved performance on MT-Bench and the Open LLM Leaderboard.
Conclusion
The findings suggest a "No Free Lunch" theorem for preference optimization: bypassing the complexity of online rollouts requires a level of dataset diversity that is often unavailable in practice. HyPO offers a middle ground, using online unlabeled sampling to provide the necessary regularization to keep models stable. While PPO still holds a slight performance advantage—likely due to the superior generalization of reward models—HyPO represents a significant step forward in making robust, online-aware fine-tuning more accessible to the research community.
Summary updated