Skip to content

IPO: A General Theoretical Paradigm to Understand Learning from Human Preferences

optionalextendedfundamentalpaperrubric 8/122023 · ~35 min

Mohammad Gheshlaghi Azar, Mark Rowland, Bilal Piot, …, Rémi Munos

Status

TL;DR. Define ΨPO: maximise E[Ψ(p∗(y≻y′))]−τ KL(π ∥ πref)\mathbb E[\Psi(p^*(y\succ y'))]-\tau\,\mathrm{KL}(\pi\,\|\,\pi_{\text{ref}}) for a non-decreasing Ψ\Psi. With Ψ\Psi = log-odds and Bradley–Terry, ΨPO is exactly the objective that RLHF and DPO optimise. Because log-odds blows up as p→1p\to1, deterministic or finite-sample preferences make DPO ignore the KL term. IPO (Identity-PO) sets Ψ\Psi to the identity and gets a simple squared loss with a unique, finite optimum.

Let hπ(yw,yl)=log⁡π(yw) πref(yl)π(yl) πref(yw)h_\pi(y_w,y_l)=\log\frac{\pi(y_w)\,\pi_{\text{ref}}(y_l)}{\pi(y_l)\,\pi_{\text{ref}}(y_w)}, the same log-ratio gap that DPO puts inside a sigmoid. The sampled IPO loss is

LIPO=E(x,yw,yl)[(hπ(yw,yl)−12τ)2].\mathcal L_{\text{IPO}}=\mathbb E_{(x,y_w,y_l)}\Big[\Big(h_\pi(y_w,y_l)-\frac{1}{2\tau}\Big)^2\Big].

It regresses the gap to a fixed target instead of pushing it towards infinity. The population version has a unique optimum (Theorem 2), with target τ−1(p∗(y≻μ)−p∗(y′≻μ))\tau^{-1}\big(p^*(y\succ\mu)-p^*(y'\succ\mu)\big). Worked numbers against DPO are on the DPO family hub: with τ = 0.1 the target gap is 5, and gaps of 10 or 30 are pulled back.

Results. The experiments are illustrative only (§5.4): a three-action bandit with softmax parameters, Adam (lr 0.01), 18k steps, batch 9 and 10 seeds. With a total order on the actions (D1), DPO becomes greedy at every τ while IPO does not. With D3, where c is never observed, DPO drives π(c) to 0 regardless of τ, while IPO’s π(c) decreases gradually with τ. The paper has no LLM experiments. Later work and libraries have adopted IPO as a standard DPO alternative, but the size of its benefit for LLMs depends on the setting.

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

    Two responses, y1 always preferred to y2, uniform reference policy and uniform sampling. Using IPO's population target h* = τ⁻¹(p(y ≻ μ) − p(y′ ≻ μ)), derive the optimal π(y1) as a function of τ and evaluate it for τ = 0.1, 0.5 and 1. What does DPO give for the same data?

    What a strong answer covers
    • With μ uniform and p(y ≻ y) = 1/2: p(y1 ≻ μ) = 0.75 and p(y2 ≻ μ) = 0.25, so h* = 0.5/τ.
    • With a uniform reference, h = log(π(y1)/π(y2)), so π(y1) = σ(0.5/τ).
    • τ = 0.1 gives 0.993; τ = 0.5 gives 0.731; τ = 1 gives 0.622. The regularisation strength visibly controls how deterministic the policy becomes.
    • DPO: the Bradley–Terry fit to p = 1 needs an infinite reward gap, so π(y2) → 0 and π(y1) → 1 for every β.
  2. Mechanism

    Explain, using the ΨPO objective, why RLHF with an explicit reward model can be better regularised in practice than DPO on the same finite dataset, even though both target the same optimum under Bradley–Terry.

    What a strong answer covers
    • ΨPO maximises E[Ψ(p(y ≻ y′))] − τ·KL. With Ψ(q) = log(q/(1 − q)) and Bradley–Terry, this is the RLHF/DPO objective (Prop. 1).
    • log-odds is unbounded near q = 1. With few samples per pair, the empirical p̂ is often exactly 1 even if the true p is 0.8, so the target reward gap becomes infinite and KL cannot hold it back.
    • A separately trained RM is fitted with regularisation and early stopping, so it underfits and gives finite reward gaps. That acts as implicit regularisation which DPO, fitting the policy directly, loses.
    • IPO uses Ψ = identity, which is bounded, so the optimum stays finite and τ keeps working.
  3. Critique

    IPO's evidence is a bandit with three actions trained with Adam. Explain what the D3 experiment shows, then design the experiment that would show IPO's advantage, or its absence, for LLM preference tuning.

    What a strong answer covers
    • D3 = pairs (a, b) and (b, a) with action c never observed. DPO drives π(c) to 0 for every τ, while IPO lowers it gradually and depends on τ.
    • There are no LLM experiments, so the effect of function approximation, shared parameters and early stopping is untested in the paper.
    • LLM test: same SFT model and UltraFeedback-style pairs, sweep β = τ, and compare DPO and IPO on held-out preference accuracy, KL to the reference, likelihood of chosen and rejected responses, and length-controlled win rate.
    • Include a duplicated-pair or deterministic-label split to stress the overfitting regime IPO targets, and use several seeds.

Done with this page?

Status