Abstract
Direct Preference Optimization (DPO) has simplified the alignment of Large Language Models (LLMs) with human preferences by removing the need for explicit reward modeling. However, DPO often suffers from unbalanced gradient flow, where the optimization signal for preferred responses vanishes as the probability of rejected responses approaches zero. We present Self-Guided Direct Preference Optimization (SGDPO), which introduces a "pilot term" based on response subsequences to stabilize training. SGDPO achieves up to a 9.19% performance improvement over standard DPO across multiple benchmarks with minimal computational overhead.
Introduction
Aligning LLMs with human preferences typically involves Reinforcement Learning from Human Feedback (RLHF). While DPO simplified this process, it remains sensitive to initial Supervised Fine-Tuning (SFT) quality and often produces "safe" but mediocre responses due to gradient imbalance. During training, the model may become overly proficient at identifying "bad" responses, causing the mathematical signal for "good" responses to vanish. This leads to instability and stalled learning.
Methods
SGDPO addresses gradient imbalance by adding a pilot term to the DPO objective function. This term utilizes shorter subsequences of the chosen ($y_w$) and rejected ($y_l$) responses to steer the optimization.
The pilot term allows for fine-grained control over gradient updates. By adjusting subsequence lengths (controlled by hyperparameters $r_1$ and $r_2$), SGDPO can "boost" the gradient for the chosen reward even when the rejected reward has significantly decreased. This mechanism prevents the optimization from becoming trapped in saddle points or local optima, ensuring continuous improvement throughout the training process. The computational overhead is negligible, adding only approximately 0.4% to training time.
Experimental Evaluation
We evaluated SGDPO using Llama-3.1 (8B) and Qwen-2 (7B) models. For base models, we utilized UltraChat-200k for the initial SFT phase, followed by training on the UltraFeedback preference dataset. Performance was assessed on MT-Bench, AlpacaEval-2, and various reasoning benchmarks including MMLU and GSM8K.
Results and Discussion
A primary advantage of SGDPO is its superior training stability. Standard DPO reward curves often exhibit erratic behavior or "crashes" where the chosen reward declines after an initial peak. In contrast, SGDPO maintains consistent and stable reward growth across diverse model architectures.
SGDPO consistently outperformed DPO on MT-Bench, with improvements ranging from 1.83% to 8.61%. On AlpacaEval-2, SGDPO achieved a 28.22% LC win rate with Llama-3.1 Instruct 8B, outperforming both DPO (27.53%) and the SFT baseline (26.84%). Furthermore, the method maintained or improved performance on complex reasoning tasks, demonstrating that alignment does not necessitate a trade-off in general intelligence.
Conclusion
SGDPO provides a stable and efficient framework for LLM alignment. By leveraging self-guided subsequences, it overcomes the gradient vanishing issues inherent in standard DPO. Future research will investigate its efficacy in federated learning, long-context modeling, and dynamic recommendation systems.
Summary updated