TL;DR
The paper gives one general objective, called ΨPO, for learning a policy from pairwise human preferences. Standard RLHF and DPO are special cases of it, and the paper shows that both can overfit when the preferences are close to deterministic. It then sets the free function to the identity. The result is IPO, a simple squared loss that learns directly from preference pairs and keeps the policy close to its reference.
Builds on: DPO, Reward Model, Bradley–Terry Model, Kullback–Leibler Divergence · Leads to: SimPO, a later reference-free preference method
Why it mattered
DPO became a common way to tune language models on preference pairs without a reinforcement-learning loop (see Direct Preference Optimization). It was attractive because it was simpler than RLHF, but its theory was thin. This paper supplied the missing analysis. It showed that DPO and RLHF are two special cases of one objective, and it identified a concrete failure of DPO: when one answer always wins, DPO drives the policy to a deterministic answer whatever the strength of the regularisation. The paper proposes IPO as a fix and tests it on small bandit problems. The authors state that scaling these experiments to training language models on human preference data is future work, so this lesson does not claim that IPO has been shown to work at that scale.
The problem
Preferences come from people. Given a prompt, a person sees two answers and says which one is better. The model should then prefer the better answers, while staying close to a trusted reference model so that it does not drift into strange text. The paper names two approximations that practical methods rely on:
- Pairwise preferences can be replaced by pointwise scores, called rewards, through the Bradley-Terry model.
- A reward model fitted to those scores generalises to answers that the policy itself produces.
RLHF uses both approximations. DPO removes the second by training the policy directly, but it keeps the first. The paper's concern is the first one. When the labels are always 0 or 1, the Bradley-Terry model can only fit them by pushing the score gap to infinity. The regularisation term then stops mattering, and the policy overfits the labels.
Notation used below follows the DPO paper. A prompt is , an answer is , is the reference policy, and is the regularisation strength. The DPO lesson calls the same strength .
How it works
Take one prompt with two answers, and . People always prefer , so the true preference is . The reference policy and the data-generating policy are both uniform, so each answer has probability 0.5. Use .
-
Score each answer against the data. An answer's score is its average win probability against answers drawn from . An answer compared with itself counts as a coin toss, 0.5. So , and . Check: the two scores average to 0.5, as they must for two answers with equal chances under .
-
Find the best policy for the regularised objective. The optimum multiplies the reference probability of each answer by and renormalises. The weights are and , which sum to . So and . Check: the two add to 1.
-
Turn the optimum into a target gap. At the optimum, the log ratio of the two answers equals . Here that is . Check: .
-
Write a loss that can be trained from labelled pairs. Let be the log ratio of the chosen answer to the rejected one, measured against the reference. For one observed pair, the IPO loss is . Here . The loss is zero when , which means . Check: that ratio gives , the same answer as step 2.
-
Compare with DPO on the same pair. DPO's loss, , decreases as grows and never reaches a minimum at a finite . So DPO keeps pushing toward 1, for any . IPO stops at a finite gap that depends on .
The plot shows how the optimal probability of depends on the regularisation strength in this example.
- optimal pi(y1) under IPO
flowchart LR D[Labelled pairs of answers] --> P[Preference scores against the data distribution] P --> T[Target log-ratio gap, scaled by 1 over tau] T --> L[Squared loss on the observed pairs] L --> U[Update the policy toward the target]
The math
Write for the probability that answer is preferred to given the prompt , and for the data-generating policy.
Step 1 in symbols: total preference
The expected preference of an answer over the distribution is
In step 1 this was for the two-answer example, with . It replaces the reward with a quantity that comes straight from pairwise labels.
Step 2 in symbols: the ΨPO objective and its optimum
The paper's general objective is
where is any non-decreasing function. Define . Its optimum is
Two choices matter. With and the Bradley-Terry model true, the optimum matches RLHF and DPO. With the identity, , which is the IPO case. Since lies in , this is bounded, and the regularisation keeps its effect.
Step 3 in symbols: the root-finding form
Let . Taking logs of the optimum gives
For IPO this is . The paper turns these equations into one loss:
The optimum makes zero. The paper's Theorem 2 shows that, when the support of equals the support of , is the unique minimiser among policies with that same support, and the loss is convex in the logits.
Step 4 in symbols: the sampled loss
The true is unknown, but each observed label is a sample: if won, else 0, with mean . The paper shows that replacing with these labels changes the loss only by a constant that does not depend on . Each labelled pair then contributes two terms, one with label 1 for and one with label 0 for . Because , averaging the two terms gives the final form:
The loss is a squared difference of log ratios, and training pulls that difference to . Weaker regularisation (small ) raises the target, but the target stays finite.
Step 5 in symbols: why DPO overfits
The DPO loss is
Here is the unbounded log-odds function. If , the loss keeps decreasing as the gap grows, so the optimal policy puts zero probability on whatever is. The paper also shows that a policy's support can grow beyond that of and then uniqueness fails (its Appendix A.2), so the support assumption matters.
Results
The paper has no benchmark table for language models. Its results are learning curves on small bandit problems, plus a theorem and proofs.
- Deterministic preference, two answers. Under DPO the optimal policy is the deterministic one for any . Under IPO it is , which goes to uniform as grows and to the deterministic answer as shrinks. This is the example in the walkthrough above.
- Total ordering, three actions (dataset ). The paper reports that DPO always converges to a deterministic policy, whatever , so it ignores the reference. IPO avoids the greedy policy when regularisation is strong.
- One unobserved pair (dataset ). One action pair is never compared. DPO ignores the reference prior however strong the regularisation. IPO gradually lowers the probability of the unobserved action as changes.
- Setup. Policies are softmax over three logits, optimised with Adam for 18000 steps, learning rate 0.01, mini-batches of 9, over 10 seeds with 95 percent confidence intervals.
Limits. These are toy settings with a finite action set and no context in the main experiments. The uniqueness result depends on the support assumption, and Appendix A.2 shows that without it there can be many minimisers. The paper's claim is that IPO is better suited to learn from sampled preferences than DPO in these examples. It does not measure text quality or safety.
Common misreadings. RLHF and DPO have the same optimal policy only under the Bradley-Terry assumption and a perfectly fitted reward (Proposition 4 in Appendix B gives the general statement). In practice RLHF's reward model is underfit when labels are 0 or 1, and that underfitting keeps RLHF regularised. DPO has no reward model to underfit, so it loses that regularisation. Bounded Psi fixes the specific failure the paper describes, under its assumptions; it does not remove overfitting in general. The paper does not show IPO beating DPO on language models.
Reading guide
- Section 1 (Introduction). Read with Reinforcement Learning from Human Feedback (RLHF) and Direct Preference Optimization in mind. The contextual bandit framing is in Multi-Armed Bandit.
- Section 2 (Notation). Probabilities of preference, and the empirical expectation over a dataset, which is the same idea as Expected Value.
- Section 3.1 (RLHF). Needs Reward Model, Bradley–Terry Model, Kullback–Leibler Divergence, Maximum Likelihood Estimation, and the policy optimisation view in Policy Gradient and PPO.
- Section 3.2 (DPO). Needs Sigmoid Function and Cross-Entropy Loss. Read it alongside Direct Preference Optimization: Your Language Model is Secretly a Reward Model.
- Section 4 (ΨPO and the overfitting analysis). Needs the closed-form optimum of a KL-regularised objective, from Kullback–Leibler Divergence and Softmax.
- Section 5 (IPO). Needs Gradient Descent, Stochastic Gradient Descent, and Adam Optimizer for Section 5.4. The uniqueness proof in Section 5.1 uses convexity.
- Appendices A and B. The proofs are standard once Section 4 is clear. Appendix B gives the equivalence of DPO and RLHF more generally.
Check yourself
QuestionWhat role does the function Psi play in the general objective, and which choices give RLHF/DPO and IPO?Show answer
Psi is applied to the pairwise preference probability inside the objective. It is any non-decreasing function. The log-odds choice Psi(q) = log(q/(1-q)) gives RLHF and DPO, under the Bradley-Terry model. The identity choice gives IPO.
QuestionTwo answers, reference and mu uniform, p*(y1 beats y2) = 1, and tau = 0.5. Under IPO, what is the optimal probability of y1?Show answer
Compute the preference scores: g(y1) = 0.75 and g(y2) = 0.25, so the gap is 0.5. The weights are exp(0.75 / 0.5) = exp(1.5) ≈ 4.482 and exp(0.25 / 0.5) = exp(0.5) ≈ 1.649. Their sum is 6.131, so the probability is 4.482 / 6.131 ≈ 0.731. This equals sigma(1), as the closed form sigma(0.5 / tau) predicts.
QuestionWhy does DPO push the probability of an always-winning answer to 1, whatever the regularisation strength?Show answer
DPO's loss is minus the log of a sigmoid of the scaled log-ratio gap. That gap can grow without bound, and the loss keeps falling as it grows, so it has no minimum at a finite gap. The bounded identity choice of Psi in IPO gives a finite target instead, 1 over 2 tau, and that target is what keeps the policy near the reference.
QuestionA team has 20 comparisons where answer A beats answer B every time, and a strong reference model. Which method is the paper predicting will keep the policy closer to the reference, and why?Show answer
IPO. DPO's loss has no finite minimiser when labels are deterministic, so it drives A's probability toward 1 regardless of the regularisation. IPO's loss pulls the log-ratio gap to 1 over 2 tau, so a strong regularisation keeps the policy near the reference. The paper's evidence is toy bandit experiments, not a test on real language-model data.
Sources
- Azar et al. (2023), "A General Theoretical Paradigm to Understand Learning from Human Preferences", arXiv: https://arxiv.org/abs/2310.12036
- Rafailov et al. (2023), "Direct Preference Optimization: Your Language Model is Secretly a Reward Model", arXiv: https://arxiv.org/abs/2305.18290
- Christiano et al. (2017), "Deep Reinforcement Learning from Human Preferences", arXiv: https://arxiv.org/abs/1706.03741
- Bradley–Terry model, Wikipedia: https://en.wikipedia.org/wiki/Bradley%E2%80%93Terry_model