Abstract
Direct Preference Optimization (DPO) has emerged as a stable alternative to traditional Reinforcement Learning from Human Feedback (RLHF) for aligning Large Language Models (LLMs). However, the theoretical underpinnings of why specific data selection strategies outperform others have been unclear. This paper identifies the "sampler"—the mechanism for selecting response pairs—as the primary determinant of convergence speed. We prove that while uniform sampling leads to linear convergence, optimized online samplers can achieve quadratic convergence. We further propose "logit mixing" to practically implement these samplers, demonstrating performance gains of up to 7.4% on key benchmarks.
Introduction
In the standard DPO paradigm, models are typically trained on static, offline datasets of preferred and rejected responses. Recent shifts toward "online" DPO, where the model generates its own training data, have shown empirical superiority. This research shifts the focus from sample complexity to the optimization perspective, investigating how the distribution of sampled pairs interacts with gradient descent. The central question is whether a mathematically optimal sampling strategy exists that fundamentally accelerates the training process.
Theoretical Framework and the Convergence Gap
The study analyzes DPO under a tabular softmax parametrization, comparing three distinct sampling regimes:
- DPO-Unif (Uniform): Random sampling of response pairs.
- DPO-Mix-R (Reward-guided): A theoretical sampler utilizing ground-truth rewards.
- DPO-Mix-P (Policy-guided): A practical variant using the divergence between the current and reference policies.
The core discovery is a theoretical "separation" in performance. Uniform sampling is limited by a linear error term in the gradient update. In contrast, the "Mix" samplers utilize Taylor expansion to cancel this linear term, resulting in a quadratic error and significantly faster convergence.
From Theory to Practice: Logit Mixing
To bridge the gap between theory and large-scale LLM training, the authors introduce Logit Mixing. Instead of computationally expensive rejection sampling, this method generates responses by mixing the raw output scores (logits) of the current and reference policies. This approach allows standard greedy decoding to approximate the theoretically ideal sampling distributions.
Empirical Results
The proposed framework was validated across multiple benchmarks including Safe-RLHF and Iterative-Prompt. Key findings include:
- Safe-RLHF: The logit-mixing approach outperformed vanilla DPO by over 7.4%, also surpassing strong baselines like On-policy DPO and Hybrid GSHF.
- Iterative-Prompt: The method achieved a 5.4% improvement in complex instruction-following tasks.
- Stability: Models trained with logit mixing maintained a robust balance between maximizing reward and minimizing KL-divergence, preventing the "model collapse" often seen when models over-optimize for specific reward signals.
Conclusion and Future Directions
This work establishes that the sampler in DPO acts as a preconditioner for the gradient, fundamentally altering the math of convergence. While the current proofs rely on tabular assumptions and finite action spaces, they provide a unified framework explaining why many successful online DPO variants work. Future research will focus on extending these quadratic convergence proofs to the complex function approximations and near-infinite action spaces characteristic of modern Transformer architectures.
Summary updated