DPO derivation — the key mathematical insight.
hardAnswer
- The optimal policy under KL-constrained reward max is ∝ .
- Invert: r(x, y) = β .
- Substitute into Bradley-Terry preference model → loss depends only on π_θ, not r: L(θ) = -.
- Skips reward model + PPO entirely; direct MLE on preference data.
Check yourself — multiple choice
- Random
- Optimal KL-constrained policy has closed-form ∝ ; invert to r = β ; substitute in Bradley-Terry → direct loss on π_θ; skips RM + PPO
- Same as PPO
- Not real
DPO: closed-form KL-optimal π ∝ ; invert r; direct preference loss.
#llm#alignment#theory
Practise Reinforcement Learning
214 interview questions in this topic.