Fine-tuning, RLHF & Alignment·Question 50 of 61Advanced

Your DPO run improves win rate against the SFT model, but outputs are longer, waffly and hedge constantly. Debug it.

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

You optimised the preference proxy, not quality. The two usual causes are length bias in the data and beta set too low. Diagnose before you touch anything.

Full worked answer

You optimised the preference proxy, not quality. The two usual causes are length bias in the data and beta set too low. Diagnose before you touch anything.

1. Measure the data. Compute the fraction of pairs where the chosen response is longer than the rejected. Above ~65% and your dataset literally encodes "longer is better"; DPO is faithfully learning what you gave it. Also measure output length before and after: a 1.5-2x jump is the smoking gun.

2. Distrust the win rate. If you measured it with an LLM judge, judges carry their own verbosity and formatting bias, so your "improvement" may be measurement error. Re-score with a length-controlled win rate, or bucket by length. If the gain evaporates under length control, there was no gain.

3. Look at the log probabilities. In DPO both chosen and rejected logps typically fall, since the loss only cares about the margin. If the chosen logp is dropping hard, you are in likelihood displacement: the model is suppressing everything and the probability mass flows to unrelated tokens, which surfaces exactly as generic hedging. Fixes: raise beta, run SFT on the chosen responses first, or add an SFT auxiliary term (this is essentially what ORPO and RPO-style variants build in). And confirm the reference model is the same checkpoint you initialised the policy from. A reference that is not the SFT checkpoint is a classic and completely silent bug.

4. Sweep beta at ~0.05, 0.1, 0.3, plotting KL to the reference alongside win rate. Pick the point before KL takes off. Low beta means an unconstrained policy that drifts into degeneracy.

5. Fix the data rather than the loss where you can: rebalance so chosen and rejected have similar length distributions, or use a length-normalised objective (SimPO-style).

6. Epochs. DPO overfits fast. One epoch is usually right; three is usually a mistake.

Then re-evaluate on the actual production task, not the preference proxy that got you here.

What a good answer covers

  • You optimised the preference proxy, not quality
  • The two usual causes are length bias in the data and beta set too low
  • Diagnose before you touch anything
  • Compute the fraction of pairs where the chosen response is longer than the rejected
  • Above ~65% and your dataset literally encodes "longer is better"; DPO is faithfully learning what you gave it

Key terms: 1. Measure the data · 2. Distrust the win rate · 4. Sweep beta · 5. Fix the data · 6. Epochs

Interviewer follow-ups to expect

  1. Why do both chosen and rejected log probabilities decrease during DPO, and when is that actually fine?

  2. How would you construct a length-controlled evaluation that a reviewer would trust?

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