DPO (Direct Preference Optimization)
A fine-tuning method where the model learns from pairs of «good/bad» responses. Simpler and cheaper than classical RLHF.
What is DPO
DPO directly teaches the model to increase the probability of good responses and decrease the probability of bad ones — without a separate reward model.
Dataset Structure
| Request | Good Response | Bad Response |
|---|---|---|
| Explain the term «token» | Simple explanation | Too academic |
| Write a polite refusal | Polite and warm | Abrupt and dry |
Why DPO is Popular
- Simpler — no reward model needed;
- Cheaper — fewer computations;
- More stable — no unstable reinforcement learning;
- Works with LoRA and QLoRA.
DPO vs RLHF
| DPO | RLHF | |
|---|---|---|
| Reward model | Not needed | Needed |
| Complexity | Lower | Higher |
| Stability | Higher | Lower |