Compare PPO-based RLHF with Direct Preference Optimisation. Write down the DPO objective, then propose and justify one modification aimed at a specific failure mode.
Answer
Model answer, written in a candidate's voice
In short
- PPO-RLHF: Bradley-Terry reward model, on-policy PPO with clipped surrogate, KL-to-reference penalty, and a value/critic for advantage estimation.
- DPO: from closed-form KL-optimal policy pi* ∝ pi_ref exp(r/beta); substitute reward into the preference model; offline loss L = -E log sigma(beta[(log pi_theta - log pi_ref)(chosen) - (log pi_theta - log pi_ref)(rejected)]); no reward model; beta is the KL-constraint strength, not a learning rate.
- Failures: chosen-answer likelihood can fall while the margin rises; length/style exploitation; noisy or inconsistent preferences.
- Modification: add an SFT/NLL term on chosen responses to DPO to anchor chosen likelihood and reduce collapse; length normalisation or IPO-style losses are alternatives if length dominates.
- Evaluation: held-out preference accuracy, chosen/rejected log-likelihood and margins, KL to reference, length distribution, win rate vs PPO/SFT, human/task quality, and robustness to label noise.
In full
PPO-based RLHF trains a reward model from pairwise preferences, then optimises the policy on-policy with a clipped PPO surrogate, a KL penalty to the reference model, and a value function/critic to estimate advantages; DPO instead starts from the closed-form KL-optimal policy pi*(y|x) ∝ pi_ref(y|x) exp(r(x,y)/beta), substitutes r = beta log(pi*/pi_ref) plus a partition term that cancels in preference differences, and optimises the offline loss L_DPO = -E_(x,y_w,y_l) log sigma(beta[(log pi_theta(y_w|x) - log pi_ref(y_w|x)) - (log pi_theta(y_l|x) - log pi_ref(y_l|x))]), so it needs no reward model; beta sets how strongly the policy is held to pi_ref (the strength of the implicit KL constraint), not a step size. The main failure I target is chosen-likelihood collapse: DPO can increase the chosen-vs-rejected margin while the absolute likelihood of the chosen answer drops, which can hurt fluency and downstream task performance; related issues are length/style exploitation and noisy preferences. My modification is DPO plus an SFT term, L = L_DPO + lambda * E_(x,y_w)[-log pi_theta(y_w|x)], which stops the chosen response’s likelihood from falling while the DPO term still separates chosen from rejected; if length is the dominant confound, I would instead length-normalise the log-ratio or use an IPO-style margin loss, but the SFT anchor is the cleanest fix for the chosen-likelihood failure. I would evaluate on held-out preference accuracy, chosen and rejected log-likelihoods and margins, KL to the reference policy, output-length distribution, win rate against SFT and PPO-RLHF, human/task quality, and sensitivity to label noise by injecting or down-weighting noisy pairs.
What a strong answer covers
- PPO: a reward model, KL-regularised on-policy RL with clipping, and a value function.
- DPO: derived from the closed-form KL-optimal policy. The loss is −log σ(β[(log π − log π_ref)(chosen) − (log π − log π_ref)(rejected)]); it is offline and needs no reward model.
- Known failures: the likelihood of the chosen answer also falling, length exploitation, noisy preferences.
- Variants: adding an SFT term, length normalisation, IPO-style losses.
- Says how the modification would be evaluated.
Common mistakes
- Dropping the reference policy.
- Treating β as a learning rate.