Same topic, related formats. Practice these next.
Same topic, related formats. Practice these next.
PPO runs an RL loop against a trained reward model with a KL leash; DPO collapses that into one supervised loss over preference pairs, no reward model, no RL.
Imagine teaching a chef to cook the way customers like. The PPO way: hire a food critic (a reward model), train them up, then put the chef in a kitchen where the critic scores every dish and the chef adjusts, dish after dish, in a feedback loop. It's powerful but expensive: you need the critic, the kitchen, and lots of iterations. The DPO way: skip the critic entirely. Show the chef pairs of dishes, here's a winner, here's a loser, and use a single math trick that nudges the chef toward winners and away from losers without any feedback loop. Both end up with a chef who pleases customers. DPO is cheaper and simpler; PPO can sometimes get a slightly better chef if you're patient.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
4 min: PPO three model stack + DPO loss derivation + beta and the KL leash + when PPO still wins + DPO family variants (IPO, KTO, ORPO).
| Concern | PPO | DPO |
|---|---|---|
| Reward model needed | Yes, trained separately | No, derived analytically |
| Training loop | RL with rollouts + advantages | Supervised over preference pairs |
| Memory footprint | 3 models (policy, reference, reward) | 2 models (policy, reference) |
| Hyperparameter sensitivity | High (beta, clip, lr, KL target) | Moderate (mainly beta) |
| Wall clock cost | Days to weeks | Hours to days |
| Quality ceiling | Higher with tuning | Comparable in most cases |
Real products, models, and research that use this idea.
What an interviewer would ask next. Try answering before peeking at the approach.
Red flags and common mistakes that signal junior thinking. Click to expand.
Calling DPO 'just SFT on chosen responses'. DPO uses both chosen and rejected; the contrastive loss is the whole point.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.