Direct Preference Optimization (DPO)
What is Direct Preference Optimization (DPO)?
In one sentence: DPO is a simpler way to do preference tuning that trains directly on "better vs worse" answer pairs, without a separate reward model.
RLHF needs to train a reward model and then run reinforcement learning, which is complicated. DPO skips those steps and uses a clever formula to push the model toward preferred answers and away from rejected ones, all in one training process.
What does Direct Preference Optimization (DPO) look like?
Given a prompt with a "chosen" polite answer and a "rejected" rude one, DPO increases the chance of the polite one.
Why does Direct Preference Optimization (DPO) matter?
DPO made preference tuning cheaper and easier, so many open models use it.
Direct Preference Optimization (DPO) vs. Reinforcement Learning from Human Feedback (RLHF)
Both align models to human preferences using 'chosen vs. rejected' answer pairs, but RLHF trains a separate reward model plus RL loop while DPO optimizes the language model directly.
| Dimension | Direct Preference Optimization (DPO) | Reinforcement Learning from Human Feedback (RLHF) |
|---|---|---|
| Separate reward model? | No, folded directly into the loss math | Yes, trained first then used with PPO/GRPO |
| Engineering complexity | Simpler, stable supervised-style loop | High (multiple models in memory at once) |
| Strength | Fast, cheap offline preference tuning | Can explore new high-reward behaviors online |
Last updated · Fact-checked by The AI Math
Linking to this page from a lesson or article? <a href="https://getaimath.com/dictionary/direct-preference-optimization-dpo/">Direct Preference Optimization (DPO), explained simply</a> (The AI Math Dictionary)