Abstract
Direct Alignment Algorithms (DAAs), such as Direct Preference Optimization (DPO), have become the standard for fine-tuning Large Language Models (LLMs) due to their simplicity and efficiency. However, these offline methods frequently suffer from "reward over-optimization," a phenomenon where the model exploits local approximations in the reward space, leading to performance degradation as it drifts from the reference policy. This paper introduces Importance Sampling DAAs (IS-DAAs), a framework that utilizes importance weighting and gradient clipping to bridge the gap between offline training and stable online reinforcement learning. Our results show that IS-DAAs effectively prevent performance collapse and achieve superior win rates on benchmarks like TL;DR Summarization and Anthropic-HH.
Introduction
Aligning LLMs with human values typically involves Reinforcement Learning from Human Feedback (RLHF). While effective, standard RLHF is a complex process requiring multiple stages, including reward model training and PPO optimization. DAAs simplified this by training directly on preference data. Despite their popularity, DAAs face a significant "drift" problem: because they are trained on static datasets, the implicit regularization keeping the model near the reference policy is only a local approximation. As training continues, the model often finds "hacks" that yield high scores but poor actual utility, a state known as over-optimization.
The Drift Problem and Importance Sampling
The core issue in offline alignment is that the training objective diverges from the true online distribution as the policy updates. Online methods like PPO avoid this by constant resampling, but at a high computational cost.
To address this, we propose Importance Sampling DAAs (IS-DAAs). By re-weighting the DAA loss function using an importance ratio—the probability of a response under the current policy divided by its probability under the reference policy—the offline objective becomes an unbiased estimator of the online objective. This allows the model to mathematically account for its distance from the reference distribution during the update process.
Methodology
The IS-DAA framework consists of three primary components:
- Importance Weighting: The objective is multiplied by the importance ratio to align offline gradients with the online target.
- Truncated Importance Weighting: To manage the high variance and potential for "exploding gradients" typical of importance sampling, we implement a clipping mechanism. The importance ratio is capped at a maximum value ((\epsilon)), ensuring training stability.
- Algorithmic Integration: We apply this framework to existing popular algorithms, resulting in IS-DPO and IS-IPO.
Key Insights: The Support Constraint
A critical finding of this work is the "Support Constraint" provided by importance sampling. IS-DAAs act as an implicit early stopping mechanism. When a model begins generating responses that have near-zero probability in the reference policy (moving "out of distribution"), the importance weight drops toward zero. This prevents the model from making updates in regions where the data is unreliable, effectively solving the extrapolation issues that plague standard DPO.
Experimental Results
We evaluated IS-DAAs across several standard benchmarks, including TL;DR Summarization, Anthropic Helpful and Harmless (HH), and UltraFeedback, using Llama-3.2-3B as the base model.
- Mitigating Performance Collapse: In summarization tasks, standard DPO win rates often peak early and then crash. IS-DPO performance remains stable or continues to improve throughout training.
- Win Rates: On the Anthropic-HH dataset, IS-DPO achieved a 74.0% win rate (judged by GPT-4), significantly outperforming standard DPO (71.1%) and other variants like RPO.
- KL Efficiency: IS-DPO is more "KL efficient," achieving higher performance while staying closer to the reference model's distribution compared to standard methods.
- Robustness: Standard DPO is highly sensitive to the regularization weight ((\beta)), often failing when (\beta) is low. IS-DPO remains robust even under aggressive training conditions with low regularization.
Conclusion
IS-DAAs provide a computationally efficient way to bring the stability of online reinforcement learning to offline direct alignment. By incorporating importance sampling and clipping, we mitigate the drift and over-optimization issues that have historically limited the performance of algorithms like DPO. Future work will focus on scaling these methods to 70B+ parameter models and exploring preference models beyond the Bradley-Terry assumption.
Summary updated