TL;DR
Direct Alignment Algorithms (DAAs) like DPO are popular for fine-tuning LLMs, but they often suffer from "likelihood displacement"—a phenomenon where the model’s confidence in even its preferred answers drops during training. This paper introduces a simple regularization term that enforces reward normalization, effectively "fixing" the model's confidence levels. The resulting methods, N-DPO and N-SimPO, significantly improve both generation quality and general reasoning capabilities across multiple model families.
What Problem Does This Paper Address?
When we align Large Language Models (LLMs) with human preferences, we often use Direct Alignment Algorithms (DAAs) like Direct Preference Optimization (DPO). These methods are efficient because they don't require a separate reward model. However, researchers have noticed a disturbing side effect: over-optimization.
Specifically, DPO often causes "likelihood displacement," where the probability of both the preferred (chosen) and rejected responses decreases simultaneously. While the model still learns to prefer the "good" answer over the "bad" one, its overall confidence in the training data collapses. This happens because DPO only cares about the difference between rewards, ignoring the "partition function"—the mathematical constant that ensures all possible response probabilities sum to 1. When this is ignored, the model might spuriously assign high probability to "unseen" responses, which can lead to degraded reasoning and unpredictable behavior.
Methods
The authors propose a new regularization term designed to keep the model's total probability mass stable.
- Normalization Regularizer: They add a penalty term (Equation 12 in the paper) that encourages the sum of the probabilities for the chosen and rejected responses to remain close to their original values in the reference model.
- Length-Normalization: Because LLM response probabilities naturally decay exponentially with length, the authors use length-normalized probabilities to ensure the penalty is stable and doesn't unfairly punish longer, high-quality responses.
- N-DPO and N-SimPO: They apply this regularizer to two major frameworks: DPO (which uses a reference model) and SimPO (a reference-free alternative).
By forcing the model to maintain its "likelihood budget" for the responses it sees during training, they prevent the model from "dumping" probability mass into the void of unseen responses.
Datasets
The researchers evaluated their methods using a robust suite of models and benchmarks:
- Training: Models (Mistral-7B-Instruct, Llama-3.1-8B-Instruct, and OLMo-7B-SFT) were trained on the UltraFeedback dataset.
- Instruction Following: Evaluated using AlpacaEval 1 and AlpacaEval 2 (both raw and length-controlled win rates).
- General Reasoning: A "Common Sense and Reasoning" battery including MMLU, ARC (Challenge/Easy), HellaSwag, PiQA, SciQ, and WinoGrande.
- Reward Modeling: Tested on HH-RLHF and HelpSteer2 to see how well the implicit reward generalizes to new data.
Key Insights and Ideas
- The "Outlier Token" Discovery: Perhaps the most fascinating finding is that likelihood displacement isn't spread evenly across a sentence. Instead, it is highly concentrated in a small set of "outlier tokens"—often low-probability tokens where the gradient is most explosive.
- Mechanistic Fix: The proposed regularizer works by specifically targeting these outlier tokens. By preventing these specific tokens from tanking the total likelihood, the model maintains its general knowledge while still learning human preferences.
- The Partition Function Matters: The paper provides a strong theoretical and empirical argument that ignoring the partition function (the $Z(x)$ term in softmax) is a primary cause of DAA instability.
- Better Trade-offs: Usually, increasing a model's "chat" quality (AlpacaEval) comes at the cost of its "brain" (MMLU/reasoning). This normalization allows for gains in both simultaneously.
Key Results
The "Normalized" versions of these algorithms consistently outperformed the originals:
- Llama-3.1-8B-Instruct: N-DPO achieved a >20% relative increase in AlpacaEval 2 (LC) scores and a >9% relative gain on general reasoning benchmarks compared to standard DPO.
- OLMo-7B-SFT: N-SimPO saw a massive 75% increase in AlpacaEval 2 (WR) over the base model, showing that normalization is particularly effective for weaker base models that are prone to collapsing during alignment.
- Stability: Unlike other methods (like DPO+SFT), the normalized rewards remained stable across different datasets, showing better generalization in reward modeling.
Limitations and Future Work
- Hyperparameter Tuning: The method introduces a new hyperparameter, $\lambda$ (the strength of the regularization). While the authors found N-DPO to be relatively robust to different $\lambda$ values, it still requires an extra step of tuning.
- Offline Only: This study focused on offline preference optimization. The authors note that it remains to be seen how these normalization constraints would perform in "online" settings (where the model generates its own training data) or with other objectives like KTO (Kahneman-Tversky Optimization).
- Scope of Outliers: While they identified that outliers drive displacement, a deeper linguistic analysis of why certain tokens become outliers (e.g., are they specific parts of speech or formatting tokens?) could be a fruitful area for future research.
Summary updated