Abstract
Direct Preference Optimization (DPO) has emerged as a popular alternative to RLHF for aligning Large Language Models (LLMs) with human preferences. However, researchers have identified a phenomenon termed "likelihood displacement," where the model's probability of generating both preferred and rejected responses decreases significantly during training. We introduce C2-DPO (Constrained Controlled DPO), a refined algorithm that incorporates simple mathematical constraints to stabilize the probability mass of training samples. By enforcing a "budget" on the probability drift of response pairs, C2-DPO prevents distribution collapse without requiring extra sampling or significant computational overhead. Empirical results on benchmarks like MT-Bench and UltraFeedback demonstrate that C2-DPO leads to more stable alignment and superior performance compared to vanilla DPO and its variants.
Introduction
Reinforcement Learning from Human Feedback (RLHF) is the standard paradigm for aligning LLMs with human values. DPO simplified this process by removing the need for a separate reward model, instead optimizing the policy directly on preference pairs. Despite its efficiency, practitioners have noticed that as DPO training progresses, the model's likelihood of generating the "winning" response often drops alongside the "losing" one. This paper identifies the root cause as the "in-sample" nature of DPO's implicit KL regularization and proposes a constrained approach to mitigate this "likelihood displacement."
The Likelihood Displacement Problem
The authors prove that DPO is mathematically equivalent to a classification problem that focuses solely on the training samples. Because the implicit KL guardrail only applies to these specific samples, probability mass can "leak" away from the training data into unknown regions of the model's output space. Essentially, the model learns what not to say so well that it forgets to maintain the probability of the "good" responses it already knew.
Methods: C2-DPO
To address probability collapse, C2-DPO introduces a new family of constraints. Instead of letting the probabilities of the winner and loser responses drift freely, C2-DPO enforces a "budget" on their movement. Two main variants are proposed:
- Logarithmic Constraint: Ensures the sum of the log-probabilities of the winner and loser remains close to the reference model, acting as a hedge against simultaneous sinking.
- Identity Constraint: Ensures the raw probability mass of the pair remains constant.
These are implemented as simple $\ell_1$ or $\ell_2$ penalty terms added to the standard DPO loss. Consequently, C2-DPO requires zero extra sampling and negligible computational overhead compared to vanilla DPO.
Key Results and Discussion
C2-DPO was evaluated across several models (Zephyr-7B, Olmo-13B, and GPT-J) using datasets like UltraFeedback Binarized and Reddit TL;DR. Performance was measured via MT-Bench and head-to-head battles judged by Claude 3.5 Sonnet.
Key findings include:
- Win Rate Improvements: C2-DPO consistently outperformed vanilla DPO in automated head-to-head evaluations.
- MT-Bench Superiority: On the Zephyr-7B model, C2-DPO achieved higher scores across almost all categories, including Reasoning, Math, and Coding, compared to DPO and other recent variants like Cal-DPO.
- Probability Stability: While vanilla DPO's probabilities for preferred responses tend to collapse over time, C2-DPO maintains stability, leading to more robust alignment.
Conclusion
C2-DPO provides an elegant solution to the likelihood displacement issue inherent in standard DPO. By adding simple constraints to the optimization objective, the method prevents the model from "forgetting" high-quality responses while still effectively learning human preferences. The approach is computationally efficient, scales well with model size, and delivers superior performance on standard alignment benchmarks.
Summary updated