Fine-tuning, RLHF & Alignment·Question 21 of 61Intermediate

DPO vs PPO-style RLHF - when would you choose each?

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

The fundamental difference is offline vs online. DPO fits a fixed dataset of preference pairs; PPO generates fresh samples from the current policy every step and scores them. Everything else follows from that.

Full worked answer

The fundamental difference is offline vs online. DPO fits a fixed dataset of preference pairs; PPO generates fresh samples from the current policy every step and scores them. Everything else follows from that.

Choose DPO when: you have a good static preference dataset; you want SFT-grade simplicity (one model to train plus a frozen reference - no RM, no critic, no generation loop, ~2 models in memory vs ~4 for PPO: policy, reference, RM, value net); your team lacks RL infrastructure and debugging experience; or you're doing routine preference alignment (tone, helpfulness, format preferences) where offline data is representative. DPO is also far more reproducible - it's deterministic supervised learning, while PPO runs are notoriously sensitive to implementation details and seeds.

Choose PPO/online RL when: reward can be computed on new samples - a strong RM, or better, verifiable rewards (tests, checkers) - because online methods explore beyond the support of your dataset. The policy discovers behaviours no annotator demonstrated, gets graded, and improves; DPO can only reweight behaviours present in its pairs. This matters most for reasoning/agentic training, which is why R1-style reasoning RL is online (GRPO), not DPO. Online methods also handle distribution shift: as the policy improves, DPO's frozen dataset (typically sampled from the SFT model) becomes increasingly off-policy, which caps how far it can push quality.

Practical middle grounds worth naming: iterative DPO (sample from the current policy, label with an RM or judge, DPO on the fresh pairs, repeat) recovers much of the online benefit at a fraction of the complexity; and best-of-n sampling against an RM at inference is a no-training baseline.

Honest summary: frontier labs run online RL for their main post-training because ceilings matter at that scale; for most applied teams fine-tuning a product model, DPO (or iterative DPO) hits a better cost/benefit point.

What a good answer covers

  • The fundamental difference is offline vs online
  • DPO fits a fixed dataset of preference pairs; PPO generates fresh samples from the current policy every…
  • Choose DPO when: you have a good static preference dataset; you want SFT-grade simplicity (one model to…
  • DPO is also far more reproducible - it's deterministic supervised learning, while PPO runs are…
  • Choose PPO/online RL when

Key terms: offline vs online · Choose DPO when · Choose PPO/online RL when · iterative DPO

Interviewer follow-ups to expect

  1. Why does off-policy data limit DPO's ceiling?

  2. Design an iterative DPO loop - where does its extra signal come from?

  3. When would best-of-n with an RM beat both?

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