DPO (Rafailov et al., 2023) trains directly on preference pairs without a separate reward model or RL loop.
Key insight: the KL-regularized RLHF objective has a closed-form optimum,
Rearranging to solve for the reward gives
The intractable partition function is the same for and , so it cancels in the Bradley-Terry preference probability — letting us reparameterize the reward in terms of the policy itself and drop the reward model entirely.
DPO loss:
where = preferred response, = dispreferred response.
Intuition: increase the relative probability of preferred responses over dispreferred ones, relative to the reference model.
DPO vs RLHF:
| RLHF | DPO | |
|---|---|---|
| Reward model | Required (separate training) | Implicit |
| RL loop | PPO (complex, unstable) | Supervised loss (simple) |
| Stability | Harder to tune | More stable |
| Performance | Potentially more powerful | Competitive, sometimes better |
DPO is simpler: one supervised training stage on preference data, no separate reward model, no RL. This has made it the default for many alignment setups.
See also: RLHF Pipeline, KL Penalty, Supervised Fine-Tuning