Skip to content

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.

  1. 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.
  2. 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.

MethodData neededExplicit RM?Critic?Reference policy?Online generation?Length normalisationTypical failure mode
PPO-RLHF (InstructGPT), for contrastprefs → RM, then promptsyesyesyes (KL)yesnoRM overoptimisation; four large models; tuning cost
RLOO, for contrastprefs → RM, then promptsyesnoyes (KL in reward)yesnok generations per prompt; RM hacking
DPOpairsno (implicit)noyes, frozennono (sum of token log-probs)off-policy drift; chosen likelihood can fall too; length exploitation; overfits deterministic labels
IPOpairsnonoyesnononeeds τ tuned; evidence in the paper is only toy examples
SLiC-HFpairs (or SFT samples ranked by a model)optional (sample-rank variant)nono (SFT cross-entropy term instead)nonohinge stops at margin δ; no KL anchor
KTOsingle examples labelled good or badnonoyes, plus batch KL z0nonomay ignore hard examples; λ_D and λ_U must match the class ratio
ORPOpairs; chosen is also the SFT targetnonononoyes (average log-prob)no KL anchor; λ trade-off between SFT and preference
SimPOpairsnononono (its Instruct setup uses pairs sampled from the SFT model)yes (β/|y|)γ tuning; no KL anchor, so reward hacking possible; GSM8K drops
Online / iterative DPOfresh pairs from current policyjudge or RM to labelnoyesyes, between roundsdepends on lossjudge exploitation; labelling cost

Write h(y)=log⁡πθ(y∣x)πref(y∣x)h(y)=\log\frac{\pi_\theta(y\mid x)}{\pi_{\text{ref}}(y\mid x)} for the log-ratio and ℓˉ(y)=1∣y∣log⁡πθ(y∣x)\bar\ell(y)=\frac{1}{|y|}\log\pi_\theta(y\mid x) for the length-normalised log-probability.

MethodLoss for one pair (or one example)
DPO−log⁡σ(β [h(yw)−h(yl)])-\log\sigma\big(\beta\,[h(y_w)-h(y_l)]\big)
IPO(h(yw)−h(yl)−12τ)2\big(h(y_w)-h(y_l)-\tfrac{1}{2\tau}\big)^2
SLiC-HFmax⁡(0, δ−log⁡πθ(yw)+log⁡πθ(yl))−λlog⁡πθ(yref)\max\big(0,\ \delta-\log\pi_\theta(y_w)+\log\pi_\theta(y_l)\big)-\lambda\log\pi_\theta(y_{\text{ref}})
KTO (desirable / undesirable)λD(1−σ(β(h(y)−z0)))\lambda_D\big(1-\sigma(\beta(h(y)-z_0))\big) / λU(1−σ(β(z0−h(y))))\lambda_U\big(1-\sigma(\beta(z_0-h(y)))\big)
ORPO−log⁡Pθ(yw)  −  λlog⁡σ(log⁡odds(yw)odds(yl))-\log P_\theta(y_w)\;-\;\lambda\log\sigma\Big(\log\frac{\text{odds}(y_w)}{\text{odds}(y_l)}\Big), with Pθ=eℓˉP_\theta=e^{\bar\ell}, odds=P1−P\text{odds}=\frac{P}{1-P}
SimPO−log⁡σ(β ℓˉ(yw)−β ℓˉ(yl)−γ)-\log\sigma\big(\beta\,\bar\ell(y_w)-\beta\,\bar\ell(y_l)-\gamma\big)

DPO vs IPO on one pair (β=τ=0.1\beta=\tau=0.1; the IPO target gap is 1/(2τ)=51/(2\tau)=5):

Gap h(yw)−h(yl)h(y_w)-h(y_l)DPO lossDPO weight σ(−β⋅gap)\sigma(-\beta\cdot\text{gap})IPO lossIPO gradient (w.r.t. gap)
00.6930.50025−10 (push gap up)
50.4740.37800 (at target)
100.3130.26925+10 (pull gap down)
300.0490.047625+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 2(−1.0)−2(−0.8)−1=−1.42(-1.0)-2(-0.8)-1=-1.4, so the loss is about 1.62 and the gradient raises the chosen response’s per-token likelihood.

KTO on single examples (β=0.1\beta=0.1, z0=0.5z_0=0.5, λ=1\lambda=1). A desirable example with h=2h=2 has value σ(0.15)=0.537\sigma(0.15)=0.537 and loss 0.463. An undesirable example with h=−3h=-3 has value σ(0.35)=0.587\sigma(0.35)=0.587 and loss 0.413. Neither needs a partner.

ORPO with length-averaged probabilities Pw=0.6P_w=0.6 and Pl=0.4P_l=0.4: the odds are 1.5 and 0.667, and the log odds ratio is log⁡2.25=0.811\log 2.25=0.811. The preference term is −log⁡σ(0.811)=0.368-\log\sigma(0.811)=0.368. With λ = 0.1, the total is 0.511+0.037=0.5480.511+0.037=0.548, dominated by the SFT term.

Which ingredients each preference-optimisation method needs A grid with methods as rows and six ingredients as columns: pairs needed, explicit reward model, critic, reference policy, online sampling, and length normalisation. PPO-RLHF uses pairs, a reward model, a critic, a reference and online sampling. RLOO is the same without the critic. DPO and IPO use pairs and a reference only. SLiC-HF uses pairs, optionally a ranking or reward model, and no reference. KTO uses a reference but single labelled examples instead of pairs. ORPO and SimPO use pairs and length normalisation with no reference. A note says online or iterative DPO adds fresh on-policy samples labelled each round to any of the offline losses. What each method needs pairs needed explicit RM critic reference π_ref online sampling length normalised online RL with an RM PPO-RLHF RLOO offline, no RL loop DPO IPO SLiC-HF optional KTO ORPO SimPO KTO: single examples labelled good or bad, not pairs Online / iterative DPO = any offline loss above + fresh samples from the current policy, labelled each round
Original sketch. Methods (rows) against the comparison axes (columns): a filled dot means the method needs or uses it. Online collection is drawn as a separate axis that can be combined with any loss.
  • 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.

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.

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.