Introduction
Fine-tuning Large Language Models (LLMs) to align with human preferences has become a cornerstone of modern AI development. Two primary methods dominate the field: Direct Preference Optimization (DPO), favored for its simplicity and stability, and Proximal Policy Optimization (PPO), known for its complex but powerful online reinforcement learning (RL) capabilities. Despite their widespread use, the internal mechanics of these algorithms—specifically how they balance positive learning, negative learning, and loss reweighting—have remained largely a "black box."
This paper introduces a novel Gradient Alignment ($\mathcal{G}$) framework to visualize and disentangle these optimization dynamics. By measuring the dot product between the training gradient and the gradient of the final, fully-trained response, the authors provide a clear window into whether a model is pursuing a stable target (supervised-like) or exploring new possibilities (RL-like).
Dissecting DPO: The "Switcheroo" and Regularization
DPO is often characterized as a supervised-like offline method. However, gradient alignment analysis reveals a more nuanced story. The optimization objective can be broken down into positive learning (increasing the likelihood of preferred responses), negative learning (decreasing the likelihood of rejected responses), and implicit loss reweighting.
A key discovery is the "Switcheroo" effect: while positive learning dominates the early stages of training, negative learning eventually takes over as the primary driver of the final target. This suggests that negative learning acts as a critical guardrail, preventing the model from overfitting to the "win" data. Furthermore, the study clarifies that DPO's implicit reward signal does not act as a traditional reward but rather as a regularizer, downweighting samples that are already well-learned to prevent model collapse.
PPO: The Exploratory Alternative
In contrast to DPO, PPO exhibits fundamentally different dynamics. Its gradient alignment consistently stays near zero or even dips into negative territory. This confirms that PPO is not merely converging toward a fixed target but is actively exploring "orthogonal" or conflicting directions.
In the PPO framework, negative learning serves a different purpose than in DPO. Rather than shaping a stable final target, it primarily functions to "push" the model away from local optima, fostering the exploration necessary to find responses that may surpass those present in the initial offline dataset.
Controlled Optimization: cDPO and hPPO
Building on these insights, the authors developed "controlled" variants of these algorithms to optimize performance:
- cDPO (Controlled DPO): By dynamically shifting the focus from positive learning to negative learning over time, cDPO achieved a significant jump in win rates. For instance, on the Qwen3-1.7B model, cDPO reached an 87.91% win rate, a substantial improvement over standard DPO's 72.14%.
- hPPO (Hybrid PPO): By introducing periodic "supervised" bursts—briefly weakening negative learning—the authors improved the efficiency and stability of PPO's exploratory process.
Conclusion and Future Directions
The gradient alignment framework provides a powerful tool for understanding and improving preference optimization. While the current analysis relies on first-order approximations and specific sampling intervals, it lays the groundwork for Coordinated Preference Optimization (CPO). Future systems could monitor these dynamics in real-time, automatically adjusting the balance of learning components to achieve peak performance across diverse model architectures and datasets.
Summary updated