NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Reveal the Mystery of DPO: The Connection between DPO and RL Algorithms

Xuerui Su, Yue Wang, Jinhua Zhu, Mingyang Yi, Feng Xu, Zhiming Ma, Yuting Liu

TL;DR

This paper demystifies Direct Preference Optimization (DPO) by establishing a unified theoretical framework that connects it directly to traditional Reinforcement Learning (RL) algorithms like PPO and SAC. The authors mathematically prove that DPO is an offline variant of an online preference-based RL algorithm, revealing a fundamental distribution shift inherent to DPO's offline nature. Furthermore, they provide concrete guidelines on how hyperparameters and dataset design impact DPO's convergence speed.

What Problem Does This Paper Address?

Aligning Large Language Models (LLMs) with human preferences typically falls into two camps: actor-critic methods like Proximal Policy Optimization (PPO), which require training an explicit reward model, and Direct Preference Optimization (DPO), which bypasses the reward model entirely by optimizing a classification loss directly on preference data.

Because DPO discards the explicit reward function and operates on a static dataset, a fundamental question has divided researchers: Is DPO actually a Reinforcement Learning algorithm, and how does it theoretically relate to standard RL? This paper addresses this ambiguity by analyzing the mathematical connections between DPO, traditional RL, and other alignment variants regarding their loss functions, target convergence distributions, and optimization rates.

Methods

The authors introduce a unified framework called UDRRA (Unified Distribution Reward Relation Approximation) to bridge the gap between preference-based alignment and standard RL. The framework categorizes algorithms into four scenarios based on how progressively relaxed their requirements are for a reward function:

  1. Boltzmann Distribution Approximation (Scenario 1): Directly approximates the ideal policy distribution using exact reward values (e.g., Soft Actor-Critic (SAC), PPO-RL).
  2. Reward Approximation (Scenario 2): Uses an implicit reward function derived from the policy to approximate the true reward (e.g., Direct Reward Optimization (DRO)).
  3. Reward Difference Approximation (Scenario 3): Aligns the differences between rewards rather than absolute values, eliminating the need to calculate complex partition functions (e.g., Identity-PO (IPO)).
  4. Preference Reward Approximation (Scenario 4): Models the probability of human preference directly from data without observing explicit rewards (e.g., DPO).
Figure 1: The unified UDRRA framework to connect DPO and other RLHF algorithms with typical RL methods. The algorithms in our framework can construct loss functions for four different scenarios (from right to left): (1) between πθ(y|x) and πδ(y|x) (or πτ(y|x)); (2) between rθ(x, y) and r(x, y); (3) between ∆rθ(x, y1, y2) and ∆r(x, y1, y2); and (4) between pθ(z|y1, y2, x) and p∗(z|y1, y2, x). From scenario (1) to scenario (4), the requirements of the reward function r(x, y) are progressively relaxed. The notations in the figure will be elaborated in Section 2 and Section 3. Notably, we utilize Proposition 2.2 to illustrate the relationship between πδ and πτ.

By mapping these methods under one umbrella, the authors analyze their exact target distributions and derive their smoothness coefficients ($L$-smoothness) to evaluate convergence behavior under a standard softmax policy assumption.

Datasets

This is a purely theoretical paper, so no empirical experiments were conducted on standard training datasets (such as Anthropic HH-RLHF). Instead, the authors mathematically analyze the properties of an abstract offline preference dataset ($D_R$) to determine how data selection strategies (e.g., uniform sampling vs. margin-based sampling) theoretically alter DPO's convergence rate.

Key Insights and Ideas

  • DPO is Secretly an Offline Variant of Online RL: The authors introduce an online method called Preference Reward Approximation-Posterior (PRA-P). They mathematically prove that DPO's loss function matches the first term of PRA-P when transitioned to an offline setting.
  • The Hidden Distribution Shift Bias: Because DPO relies on a static offline dataset, it introduces a distribution shift term ($\eta_1$) and drops an information entropy regularization term ($\eta_2$) compared to its online counterpart. This means DPO's target distribution inherently deviates from the ideal Boltzmann distribution ($\bar{\pi}_\tau$).
  • The Temperature ($\tau$) Trade-off: The hyperparameter $\tau$ acts as an inverse temperature. The paper demonstrates that a larger $\tau$ mathematically accelerates DPO's convergence rate but forces the optimal solution further away from the safe reference policy ($\pi_{ref}$).

Key Results

  • Target Distribution Equivalence: The authors prove that despite having different loss functions and reward requirements, the posterior versions of BDA, RA, RDA, and PRA all share the exact same target distribution ($\bar{\pi}_\tau$) under online conditions.
  • Quantifying Convergence via Smoothness: The authors derive the smoothness coefficients ($L$) for each framework method to bound their convergence rates. Notably, DPO exhibits a smoothness coefficient inversely proportional to $\tau^2$ ($4/\tau^2$), proving that larger values of $\tau$ yield faster convergence.
Smoothness coefficients and policy distributions derived for the different framework methods.
  • Data Selection Strategy: Theorem 5.3 proves that sampling preference pairs where both the reward values and the current policy probabilities exhibit a large margin significantly accelerates DPO's optimization and helps mitigate the distribution shift bias.

Limitations and Future Work

The primary limitation is that this work is entirely theoretical and relies on specific mathematical assumptions, such as a softmax policy parametrization and the injectivity/symmetry of the preference modeling function ($\omega$). Additionally, the paper does not validate these theoretical bounds with empirical deep learning experiments on actual LLMs.

For future work, the authors suggest leveraging these insights to design advanced offline dataset selection algorithms that specifically target large-margin preference pairs to reduce DPO's distribution shift and boost training efficiency.

Summary updated

BibTeX
@inproceedings{su2025reveal,
  author = {Xuerui Su and Yue Wang and Jinhua Zhu and Mingyang Yi and Feng Xu and Zhiming Ma and Yuting Liu},
  title = {{Reveal the Mystery of DPO: The Connection between DPO and RL Algorithms}},
  booktitle = {LLM Reason and Plan @ ICLR},
  year = {2025},
  url = {https://openreview.net/forum?id=rkfdSNjO3U},
}
Figure