Explain DPO. What's the key insight that lets it skip the reward model and the RL loop?
Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.
Model answer: the part to lead with
DPO (Direct Preference Optimization) trains directly on preference pairs with a simple classification-style loss - no reward model, no sampling, no RL.
Full worked answer with diagram
DPO (Direct Preference Optimization) trains directly on preference pairs with a simple classification-style loss - no reward model, no sampling, no RL.
The key insight: the KL-constrained RLHF objective has a closed-form optimal policy, $\pi^*(y|x) \propto \pi_{ref}(y|x),e^{r(x,y)/\beta}$. Inverting this, any reward function can be rewritten (up to a prompt-dependent constant) in terms of its own optimal policy:
$$r(x,y) = \beta \log \frac{\pi(y|x)}{\pi_{ref}(y|x)} + \text{const}(x)$$
So instead of learning an explicit RM and then finding its optimal policy with PPO, you substitute this implicit reward into the Bradley-Terry preference likelihood. The constant cancels in the pairwise difference, giving the DPO loss:
$$\mathcal{L} = -\log\sigma\Big(\beta\big[\log\tfrac{\pi_\theta(y_w|x)}{\pi_{ref}(y_w|x)} - \log\tfrac{\pi_\theta(y_l|x)}{\pi_{ref}(y_l|x)}\big]\Big)$$
Hence the paper's title: your language model is secretly a reward model. The policy itself parameterizes the reward, and reward-model fitting and policy optimisation collapse into one supervised step.
Reading the objective: increase the log-probability of the chosen response relative to the reference model, decrease it for the rejected one, with the sigmoid weighting gradients most heavily where the implicit reward currently ranks the pair wrong. β plays the same role as the RLHF KL coefficient - how far from the reference the policy is allowed to move to fit preferences.
Mechanics: you need the frozen reference model (usually your SFT checkpoint) for the log-ratios - so two models in memory, or precomputed reference log-probs. Training is as stable and cheap as SFT: one forward/backward per pair member, no generation during training, standard supervised infrastructure. Known behaviours to mention: DPO can push down the absolute likelihood of both responses (only the margin is constrained), and it can overfit preference idiosyncrasies - motivating variants like IPO.
Worth sketching. it names exactly which three moving parts of PPO the reparameterisation deletes.
flowchart LR
A["Preference pair:<br/>chosen and rejected"] --> B["Policy log-probs"]
A --> C["Frozen reference log-probs"]
B --> D["Implicit reward:<br/>beta times the log ratio"]
C --> D
D --> E["Bradley-Terry loss<br/>on the margin"]
E --> B
F["Reward model, critic,<br/>generation loop"] -->|"all collapse away"| D
What a good answer covers
- DPO (Direct Preference Optimization) trains directly on preference pairs with a simple…
- The key insight: the KL-constrained RLHF objective has a closed-form optimal policy, $\pi^(y|x) \propto…
- $$r(x,y) = \beta \log \frac{\pi(y|x)}{\pi_{ref}(y|x)} + \text{const}(x)$$
- So instead of learning an explicit RM and then finding its optimal policy with PPO, you substitute this…
- $$\mathcal{L} = -\log\sigma\Big(\beta\big[\log\tfrac{\pi_\theta(y_w|x)}{\pi_{ref}(y_w|x)} -…
Key terms: The key insight · implicit reward · Reading the objective · Mechanics
In the glossary: DPO · Reward model · RLHF · PPO · Bradley-Terry · SFT
Interviewer follow-ups to expect
What role does β play and what happens at very small or large values?
Why does the const(x) term cancel, and why does that matter?
What's lost by never sampling from the policy during training?
Worked answer from AI-Engineer-Interview-Questions by Om (MIT), reformatted for LLM Prep · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep