The DPO family: DPO, IPO, SLiC, KTO, ORPO, SimPO and online DPO compared
TL;DR. DPO is offline preference optimisation without an online RL rollout loop or a separate reward model, derived from a KL-regularised RLHF objective. The methods people call its “family” change different things. IPO changes the objective so the target margin is bounded. SLiC-HF uses a hinge on raw log-probabilities plus an SFT term. KTO needs only thumbs-up or thumbs-down labels. ORPO merges SFT and preference learning and drops the reference model. SimPO uses length-normalised log-probability with a target margin and no reference. Separately, online or iterative DPO keeps a DPO-style loss but labels fresh samples from the current policy. That is a choice about data collection, not about the loss.
Why it matters for you. These losses are what most open models use for preference tuning, and they are cheap enough for an academic lab to run. They differ in what supervision they need: pairs vs single labels, and a reference model or not. That maps directly onto what IR evaluation can provide: pairwise judgements, graded relevance, or binary relevance from an LLM judge such as UMBRELA.
Two separate axes
Section titled “Two separate axes”- The loss. What function of the policy’s log-probabilities is optimised: logistic on a reference log-ratio, squared distance to a target, hinge, prospect-theory value, or odds ratio.
- The data loop. Is the dataset fixed and collected from other models (offline, off-policy), or are new responses sampled from the current policy and labelled by a human, an RM or an LLM judge between rounds (online or iterative)? OAIF samples two responses from the current model at each step and asks an LLM annotator to choose. It reports beating both offline direct-alignment methods and RLHF in human evaluation. Self-rewarding LMs iterate DPO with the model as its own judge.
Any loss on axis 1 can be used with either choice on axis 2. Most failure-mode comparisons mix the two up.
Comparison table
Section titled “Comparison table”| Method | Data needed | Explicit RM? | Critic? | Reference policy? | Online generation? | Length normalisation | Typical failure mode |
|---|---|---|---|---|---|---|---|
| PPO-RLHF (InstructGPT), for contrast | prefs → RM, then prompts | yes | yes | yes (KL) | yes | no | RM overoptimisation; four large models; tuning cost |
| RLOO, for contrast | prefs → RM, then prompts | yes | no | yes (KL in reward) | yes | no | k generations per prompt; RM hacking |
| DPO | pairs | no (implicit) | no | yes, frozen | no | no (sum of token log-probs) | off-policy drift; chosen likelihood can fall too; length exploitation; overfits deterministic labels |
| IPO | pairs | no | no | yes | no | no | needs τ tuned; evidence in the paper is only toy examples |
| SLiC-HF | pairs (or SFT samples ranked by a model) | optional (sample-rank variant) | no | no (SFT cross-entropy term instead) | no | no | hinge stops at margin δ; no KL anchor |
| KTO | single examples labelled good or bad | no | no | yes, plus batch KL z0 | no | no | may ignore hard examples; λ_D and λ_U must match the class ratio |
| ORPO | pairs; chosen is also the SFT target | no | no | no | no | yes (average log-prob) | no KL anchor; λ trade-off between SFT and preference |
| SimPO | pairs | no | no | no | no (its Instruct setup uses pairs sampled from the SFT model) | yes (β/|y|) | γ tuning; no KL anchor, so reward hacking possible; GSM8K drops |
| Online / iterative DPO | fresh pairs from current policy | judge or RM to label | no | yes | yes, between rounds | depends on loss | judge exploitation; labelling cost |
The losses, side by side
Section titled “The losses, side by side”Write for the log-ratio and for the length-normalised log-probability.
| Method | Loss for one pair (or one example) |
|---|---|
| DPO | |
| IPO | |
| SLiC-HF | |
| KTO (desirable / undesirable) | / |
| ORPO | , with , |
| SimPO |
Worked numbers
Section titled “Worked numbers”DPO vs IPO on one pair (; the IPO target gap is ):
| Gap | DPO loss | DPO weight | IPO loss | IPO gradient (w.r.t. gap) |
|---|---|---|---|---|
| 0 | 0.693 | 0.500 | 25 | −10 (push gap up) |
| 5 | 0.474 | 0.378 | 0 | 0 (at target) |
| 10 | 0.313 | 0.269 | 25 | +10 (pull gap down) |
| 30 | 0.049 | 0.047 | 625 | +50 (pull gap down) |
DPO always pushes the gap up, though more and more weakly. IPO has a target and pulls back beyond it.
SimPO and length. The chosen response has 40 tokens with log-prob −40, and the rejected one 100 tokens with −80. A summed score prefers the chosen one by 40 nats, mostly because it is short. Per token, −1.0 vs −0.8 prefers the rejected one. With β = 2 and γ = 1, SimPO’s margin is , so the loss is about 1.62 and the gradient raises the chosen response’s per-token likelihood.
KTO on single examples (, , ). A desirable example with has value and loss 0.463. An undesirable example with has value and loss 0.413. Neither needs a partner.
ORPO with length-averaged probabilities and : the odds are 1.5 and 0.667, and the log odds ratio is . The preference term is . With λ = 0.1, the total is , dominated by the SFT term.
Which one when?
Section titled “Which one when?”- You have pairs and a good SFT model, and want the standard choice: DPO, with its β tuned.
- Pairs are near-deterministic, or you see π(y_l) collapse and overfitting: IPO, or DPO with label smoothing or early stopping.
- You have only binary good or bad labels, or very imbalanced data: KTO. The KTO authors recommend DPO when pairwise preferences are clean and mostly transitive.
- You want one stage and no reference model in memory: ORPO, starting from the base model.
- Your judge rewards length, or you need speed: SimPO, with γ tuned and an eye on reasoning tasks.
- Your policy has moved far from the data distribution: go online or iterative, whichever loss you use.
Connections
Section titled “Connections”- Deep dives: DPO (full derivation), IPO, KTO, ORPO, SimPO.
- Where they come from: reward modelling hub (Bradley–Terry), InstructGPT.
- Online alternatives: RLOO, self-rewarding LMs, Tülu 3.
- Failure modes: DAA overoptimisation, length correlations, LLM-as-judge.
- Learn more: RLHF Book, especially Ch. 8 on direct alignment.
Questions to think through
These questions have no single right answer. Write or say your answer before you open the hints. Mark a question once you could defend your answer in a reading group.
- Derive / compute
Take one preference pair where the policy's log-ratio log(π/π_ref) is +2 on the chosen response and −3 on the rejected one, so the gap is 5. With β = τ = 0.1, compute the DPO loss and the IPO loss. Then recompute both at gaps of 10 and 30. Which loss ever pushes the gap back down, and why does that matter when the preference was deterministic?
What a strong answer covers
- DPO loss is −log σ(β·gap): 0.474 at gap 5, 0.313 at 10 and 0.049 at 30. Its gradient weight σ(−β·gap) shrinks but never changes sign, so DPO always pushes the gap up.
- IPO loss is (gap − 1/(2τ))² with target 1/(2τ) = 5: 0 at gap 5, 25 at gap 10 and 625 at gap 30. Above the target the gradient is positive, which pulls the gap back.
- If every label in the data says y_w beats y_l (empirical p = 1), the Bradley–Terry optimum needs an infinite reward gap, so DPO drives π(y_l) towards 0 whatever β is.
- IPO's bounded target keeps the regularisation towards π_ref effective, which is its main argument against DPO.
- Derive / compute
A chosen response has 40 tokens with total log-probability −40, and a rejected response has 100 tokens with total −80, under the current policy. Show which one a sum-of-log-probs score prefers and which one SimPO's length-normalised score prefers. Compute SimPO's loss with β = 2 and γ = 1, and say what this implies about length bias.
What a strong answer covers
- Sums: −40 vs −80, so the summed score already prefers the chosen response by 40 nats, mostly because it is shorter.
- Averages: −1.0 vs −0.8 per token, so the length-normalised score prefers the rejected response.
- SimPO margin = 2(−1.0) − 2(−0.8) − 1 = −1.4, giving loss −log σ(−1.4) ≈ 1.62. The gradient raises the chosen response's per-token likelihood.
- Summed log-probs systematically favour short sequences, and the DPO log-ratio inherits a length dependence from them. Averaging removes the raw count of tokens but not length effects in the labels.
- Mechanism
KTO and ORPO are often listed as "DPO variants", but neither is DPO with a different constant. For each, state what the loss looks at (pairs or single examples, reference or not), what plays the role of DPO's reference policy, and one property of DPO that it gives up.
What a strong answer covers
- KTO scores single examples labelled desirable or undesirable, with value σ(β(r_θ − z0)) for desirable and σ(β(z0 − r_θ)) for undesirable. r_θ is the log-ratio to π_ref and z0 is a batch KL estimate.
- KTO keeps π_ref but compares each example to the reference point z0, not to a paired alternative. It gives up the pairwise Bradley–Terry likelihood and needs λ_D and λ_U to balance classes.
- ORPO has no reference model. It adds −λ·log σ(log odds ratio) to the SFT loss, where odds use the length-averaged probability.
- ORPO gives up the KL-to-reference anchor: only the SFT term on chosen responses keeps the model in place, so it cannot start from an arbitrary policy and stay close to it.
- Neither is derived as the closed-form optimum of the KL-regularised RLHF objective, which is the property that defines DPO.
- Critique
Papers in this family each report beating DPO on AlpacaEval 2, Arena-Hard or MT-Bench. List the confounds that make such tables hard to compare across papers, and design a fair comparison of DPO, IPO, KTO, ORPO and SimPO.
What a strong answer covers
- Different SFT starting points, datasets (UltraFeedback vs HH vs OASST), and whether the preference data were generated by the policy itself (on-policy-ish) or by other models.
- Hyperparameters (β, τ, γ, λ, learning rate) are often tuned harder for the proposed method than for baselines. The SimPO authors note that the best learning rate differs by method and strongly changes benchmark scores, and KTO recommends a higher learning rate than DPO.
- LLM-judge metrics reward length and style. Use length-controlled win rate and report average output length; MT-Bench separated methods poorly in the SimPO paper.
- Fair design: same SFT model and data, equal tuning budget per method, several seeds, several judges plus a human check, and downstream tasks such as GSM8K where KTO and SimPO reported opposite effects.
- Design
You want to align a RAG answer generator using an LLM judge that labels answers. You can afford one judge call per answer, or one per pair, and you can re-sample from the model every few hundred steps. Choose the data format, the loss and whether to go online. Justify each choice with the comparison table.
What a strong answer covers
- One call per answer gives thumbs-up or thumbs-down labels, which fits KTO. One call per pair gives preferences, which fits DPO, IPO or SimPO.
- Re-sampling and re-labelling every few hundred steps makes it online or iterative DPO, which fixes the off-policy drift of a fixed dataset. That is a data-collection choice independent of the loss.
- If the judge prefers longer answers, use a length-normalised loss (SimPO, ORPO) or length-controlled judging, and monitor answer length and citation precision.
- Keep a reference model (DPO, IPO, KTO) if you need the policy to stay close to a trusted SFT model; drop it (SimPO, ORPO) only if memory or speed matters more.
- Online labels let the policy exploit the judge, so audit a held-out set with humans and watch for reward hacking.