LearnQuestion bank

How does Direct Preference Optimisation differ from PPO-based RLHF? What does β control, and when can DPO underperform?

Applied LLMTechnicalHard

Theme reported publicly: PolyAI

Answer it yourself first, out loud or on paper, then compare.

Answer

Model answer, written in a candidate's voice

In short

  • DPO uses the closed-form KL-regularised optimum to turn preference pairs into a direct loss on policy-vs-reference log-ratios
  • No separate reward model or online PPO sampling loop, so it is simpler and cheaper
  • β sets the strength of the implicit KL constraint; smaller β permits more drift from the reference
  • Weaknesses: off-policy/stale pairs, chosen-likelihood can fall, overfitting and label-noise sensitivity; online/iterative variants and IPO/KTO/ORPO/SimPO address gaps
  • Best when pairs are sampled from or close to the current policy

In full

DPO reframes RLHF by starting from the closed-form optimum of KL-regularised reward maximisation, pi*(y|x) proportional to pi_ref(y|x) exp(r(x,y)/beta), and substituting that into a Bradley-Terry preference model, so the loss is written directly on preference pairs as the negative log-sigmoid of beta times the difference between the chosen and rejected policy-vs-reference log-ratios: L = -log sigmoid(beta * [log(pi(y_w|x)/pi_ref(y_w|x)) - log(pi(y_l|x)/pi_ref(y_l|x))]). That removes the separate reward model and the online PPO sampling loop, making training simpler and cheaper than PPO-based RLHF. Beta controls the strength of the implicit KL constraint: larger beta keeps the policy closer to the reference and more conservative, while smaller beta allows more drift and higher implicit reward but increases the risk of degeneration. DPO can underperform when the preference data are off-policy or stale, noisy or biased, or not representative of the current policy; because only the relative log-ratio matters, it can also push down the likelihood of chosen answers, and it is sensitive to beta and overfitting. It works best with pairs sampled from or close to the current policy, which motivates online/iterative DPO and related methods such as IPO, KTO for unpaired data, ORPO and SimPO.

Corrected by an independent AI reviewer.

What a strong answer covers

  • Uses the closed-form optimum of KL-regularised reward maximisation to write a loss directly on preference pairs, comparing policy-vs-reference log-ratios of chosen and rejected responses
  • No separate reward model or online sampling loop → simpler and cheaper
  • β sets the strength of the implicit KL constraint (smaller β permits more drift from the reference)
  • Weaknesses: off-policy data, can push down likelihood of chosen answers too, overfitting, sensitivity to label noise; online/iterative variants; IPO, KTO (unpaired), ORPO, SimPO
  • Best with pairs sampled from the current policy

Common mistakes

  • Saying DPO has no reference model
  • claiming it always beats PPO