Introduction
Aligning Large Language Models (LLMs) with human preferences is a critical step in making them helpful and harmless. Currently, two dominant paradigms exist: Reinforcement Learning from Human Feedback (RLHF), typically implemented via Proximal Policy Optimization (PPO), and Direct Preference Optimization (DPO). While PPO is robust but computationally complex and sensitive to its reference model, DPO offers simplicity but suffers from distribution shift and extreme sensitivity to label noise in "hard" cases where completions are similar in quality.
The Mixed Preference Optimization (MPO) Framework
To address these limitations, we propose Mixed Preference Optimization (MPO), a two-stage alignment strategy that leverages the strengths of both DPO and PPO through a curriculum-based approach.
Stage 1: Data Partitioning and DPO Warm-up
The process begins by training a standard Reward Model on preference data. This model is then used to evaluate pairs of completions. We calculate the absolute difference in reward scores ($|r_i - r_j|$) for each pair.
- Easy Set ($D^e$): Pairs with a reward difference greater than a threshold $\gamma$. These represent clear preferences where one completion is significantly better than the other.
- Hard Set ($D^h$): Pairs with a reward difference less than or equal to $\gamma$. These are ambiguous cases where completions are of similar quality.
The model is first trained using DPO on the Easy Set. This "warm-up" phase allows the model to learn clear preference boundaries efficiently without being confused by the noise inherent in the Hard Set.
Stage 2: PPO Refinement with an Improved Reference
In the second stage, the model undergoes PPO training on the Hard Set. A key innovation of MPO is the choice of the reference model for the KL-divergence constraint. Instead of using the initial Supervised Fine-Tuning (SFT) model, MPO uses the DPO-aligned model from Stage 1 as the reference. This provides a more accurate "trust region," allowing the model to explore subtle differences in high-quality completions while remaining anchored to a partially aligned state.
Why DPO Struggles with Hard Data
Theoretical and empirical analysis reveals that DPO's performance degrades significantly when faced with "hard" examples. When reward differences are small, the gradients for preferred and dispreferred items often cancel out, leading to unstable learning or even performance regression.
As shown in the figure above, while DPO performs competitively on "Easy" data, its reward score plummets on "Hard" data (1.283) compared to PPO (1.903). MPO circumvents this by using PPO—which handles exploration and distribution shift better—specifically for these difficult cases.
Experimental Results
MPO was evaluated on the HH-RLHF and Reddit TL;DR datasets using a Llama-2-7B base model. Key results include:
- Superior Alignment: MPO achieved a reward score of 2.801 on HH-RLHF, outperforming both vanilla PPO (2.513) and DPO (1.499).
- Human and GPT-4 Preference: In GPT-4 evaluations on the TL;DR dataset, MPO secured a 64% win rate against PPO. Human expert evaluations mirrored this, with a 62% win rate for MPO on "Helpful" prompts.
- Efficiency: By focusing PPO only on the Hard Set and using a better reference model, MPO achieves higher peak performance with greater sample efficiency than standard RLHF.
Conclusion
Mixed Preference Optimization (MPO) successfully bridges the gap between contrastive learning and reinforcement learning. By using an "Easy-to-Hard" curriculum and a superior reference model, MPO provides a more stable, efficient, and effective path toward aligning LLMs with complex human values.
Summary updated