Aligning Large Language Models (LLMs) with human preferences is a critical step in modern AI development. While Direct Preference Optimization (DPO) has become a popular, streamlined alternative to traditional Reinforcement Learning from Human Feedback (RLHF), it suffers from a hidden flaw: probability displacement.
During extended training, DPO often causes models to paradoxically lose confidence in both good and bad answers, leading to degraded performance over time. Recent research addresses this "confidence crash" by generalizing the math behind DPO, proving that we can use non-convex functions to create a more stable alignment process. The result is a novel loss function called SquaredPO.
The Problem: DPO's Probability Displacement
Traditionally, RLHF required a complex two-stage process involving a separate reward model and reinforcement learning (like PPO). DPO simplified this by using a mathematical trick to optimize the LLM directly from human preference data, using a KL-divergence penalty as a "guardrail" to keep the model from deviating too far from its base behavior.
However, researchers identified that DPO is prone to probability displacement. As optimization progresses, the model decreases the probability of both the preferred (winner) and dispreferred (loser) responses. The model essentially becomes less confident in the training data over time. If trained for too many iterations, this leads to "over-optimization," where the model's actual performance on benchmarks drops significantly.
Rethinking the Math: Beyond Convexity
To solve this, the authors generalized the DPO framework by moving beyond standard KL-divergence to a broader family of $f$-divergences. Previously, it was assumed that these generating functions ($f$) needed to be convex for the optimization to work. This paper proves that convexity is actually unnecessary, opening the door to new, more effective loss functions.
The researchers identified two critical properties required for a successful alignment function:
- DPO-inducing: The math must remain "tractable," allowing for the simple, one-step classification loss that made DPO popular in the first place.
- Displacement-resistant: The function must satisfy a specific condition ($\arg \min f(t) \ge 1$) to prevent the model from losing confidence in winning responses. If the minimum occurs at a value less than 1 (as in standard DPO), the model is mathematically incentivized to decrease the probability of training samples.
The Solution: SquaredPO
Based on these insights, the authors propose SquaredPO, which utilizes the non-convex function $f(t) = \frac{1}{2}(\log t)^2$.
Because its minimum is at 1, the incentive to decrease sample probabilities disappears. In practice, SquaredPO acts like DPO with an adaptive penalty ($\beta$). If the model starts to "forget" a winning response (i.e., the probability ratio drops), SquaredPO automatically increases the regularization strength, forcing the model to self-correct and pay more attention to that sample.
Empirical Results and Robustness
The researchers evaluated SquaredPO using models like Meta-Llama-3-8B-Instruct and Qwen2-0.5B-Instruct across datasets including TL;DR, AlpacaEval 2, and MT-Bench.
The most striking result is SquaredPO's robustness to over-optimization. In tests on the TL;DR dataset, standard DPO's win rate against the base model crashed from ~52% to ~35% after four epochs. In stark contrast, SquaredPO remained completely stable at ~51%, demonstrating that it doesn't break the model during extended training.
Histograms of the "chosen log-ratios" clearly illustrate this mitigation. While DPO's distribution shifts heavily into negative territory—indicating massive confidence loss—SquaredPO's distribution remains centered and stable. Furthermore, on standard benchmarks like AlpacaEval 2 and MT-Bench, SquaredPO performed on par with or slightly better than standard DPO, even without extensive hyperparameter tuning.
Looking Ahead
While the study primarily utilized Low-Rank Adaptation (LoRA) and focused on a specific set of models, it provides a strong theoretical and empirical foundation for improving LLM alignment. By proving that displacement-resistant conditions are necessary to stop probability displacement, this work paves the way for exploring other non-convex functions and scaling these robust alignment techniques to larger production environments.
Summary updated