Context. RLHF fits a reward to human comparisons and runs PPO against it with a KL penalty to the supervised model, which means several large models in memory, sampling inside the training loop and a hard-to-train value function. Korbak et al. (2022), a short position paper with no experiments, show that the optimum of that objective is a fixed target, the base model tilted by . DPO (Rafailov et al., 2023) solves the tilt for the reward and fits the policy with a logistic loss on preference pairs, with no reward model and no RL. IPO (Azar et al., 2024) shows where that loss stops enforcing the KL penalty and fixes it with a squared loss on the same margin. A policy defines its own reward, , up to a prompt-only term that cancels in a comparison. The penalty keeps the policy near the reference only if the tilting function is bounded, and the logit of a near-deterministic preference is unbounded.
Setting. Prompts , responses , a reference policy (usually the SFT model, which is also the initialization), and comparisons with preferred. Bradley-Terry models them with a latent reward, , and RLHF solves, for each prompt, Write for the reward a policy implicitly defines, and for the log-ratio margin, the quantity both DPO and IPO act on; .
Main results. (a) The optimum is a tilt (Korbak et al.): with , every satisfies so is the unique maximizer. (b) DPO is the Bradley-Terry negative log-likelihood with as the reward, and Theorem 1 (with Proposition 1) says the restriction loses no generality: if and , each class of rewards that differ by a function of alone (same preferences, same optimal policy) contains exactly one reward of the form , namely . (c) IPO maximizes the win rate against the pair-generating policy under the same penalty, ( has the role of ); if , its optimum is the unique local minimum of a squared loss whose sampled form is
The KL penalty turns reward maximization into fitting a fixed target. Without it, is linear in , so its maximum over the simplex is a vertex, all mass on the best sequence; even a reward that ranks every sequence correctly asks for a model that emits one string. Folding the penalty into the reward, as PPO does per token, gives , a reward that moves with the policy and whose part penalizes concentrating mass, so this is no longer reward maximization in the usual sense. Instead combine the two terms under one logarithm, , and insert : that is (a), the Gibbs variational principle, so the regularized problem is minimizing a reverse KL to a target that does not depend on . The target puts mass exactly where does; it returns as and concentrates on the best sequences in that support as , so collapse is the end of the same family.
The tilt is a posterior, which splits alignment into choosing a target and approximating it. If (shifting changes and not ), introduce an event with and absorb into ; Bayes' rule gives with , and Jensen gives with gap , so KL-regularized RL is variational inference with as the family and as the temperature of the tilt. The posterior is formal, since "this sample is optimal" is a modelling device. The split separates failure modes: a wrong target (the exponential tilt is one choice; a hard constraint gives renormalized on the allowed set) is a modelling error, a poor fit is an inference error, and decoding-time methods are the sampling-based alternative to fine-tuning. Korbak et al. then argue, without a theorem, that the divergence is responsible for the success: RL without the KL term degenerates, while divergence minimization without an RL form (forward KL to the same target, or maximum likelihood) works.
DPO solves the tilt for the reward, and the normalizer cancels in a comparison. Take logs of the closed form: sums over all responses, which is why RLHF approximates with PPO. But Bradley-Terry compares two responses to the same prompt, both carry the same , and it cancels, so the preference likelihood is a function of the policy; parametrize the policy in place of the reward and maximize it, and that is (Plackett-Luce rankings cancel the same way). The fitted policy is KL-optimal for its implicit reward by construction, so reward fitting and policy optimization are one step, needing only log-probabilities of two responses under and the frozen .
Restricting to implicit rewards loses no generality. Classes are the right notion because both ends of the pipeline ignore prompt-only terms: a shift cancels in every Bradley-Terry or Plackett-Luce factor and in the tilt's normalizer. For existence, the projection stays in the class and, by Step 3, equals . For uniqueness, if two implicit rewards differ by , then , and summing over forces ; positivity of keeps every log ratio finite. So the implicit reward is an identifiability constraint, the representative whose partition function is 1 for every prompt. The same normalizer is the soft value of ; left in the reward, it is a prompt-dependent offset that inflates the variance of the policy gradient, which PPO's learned value function estimates as a baseline, and the implicit reward has it removed, so DPO needs none (the paper's argument, not a measurement).
The gradient is a weighted likelihood-ratio update, and the weight prevents degeneration. The update raises and lowers , weighted by the probability the implicit reward model assigns to the wrong ordering, so pairs already ordered with a wide margin stop contributing. Drop the weight and the update is unlikelihood training, maximize , which is unbounded because can be pushed to ; on summarization it produces strings like "when when when", the degeneration the weighting prevents.
DPO optimizes the shared objective better than PPO and does at least as well on real tasks. On IMDb, with a sentiment classifier as the true reward, DPO's reward-KL frontier dominates PPO's, even PPO trained on the true reward. On Reddit TL;DR with a 6B model, GPT-4 prefers DPO's summaries to the reference about 61% of the time, against 57% for PPO at its best temperature, and DPO degrades less as temperature rises; on HH dialogue it roughly matches best-of-128. The caveats are mostly the paper's own: models up to 6B, barely tuned (0.1, and 0.5 for TL;DR), GPT-4 as the main judge, and PPO baselines whose quality depends on implementation.
On near-deterministic preferences DPO's loss ignores . If , Bradley-Terry needs , and the tilt sets for every . The finite-sample version matters in practice: a pair seen once has empirical preference 1 even when . There the DPO loss of the margin is , strictly decreasing with no finite minimizer, and only rescales , so the optimum is and whatever is. This is logistic regression on separable data (Soudry et al., 2018): the margin grows slowly without bound, and only early stopping limits it. The loss also sees the policy only through log-ratio differences on observed pairs, so the probability of responses outside the data is unconstrained. Neither gap is discussed in the DPO paper. Azar et al. argue, without testing it, that RLHF suffers less because its underfit reward model keeps rewards finite on {0,1} data.
IPO bounds the tilt by using the win rate itself, and its optimum solves linear equations. Azar et al. write all three methods as one objective, ΨPO: maximize for a non-decreasing , with nothing tying to a reward. By the same Gibbs argument the optimum is normalized, with , so moves exactly as far as . With the logit, and is the RLHF reward up to a constant, which proves that RLHF and DPO are instances of ΨPO; the logit is unbounded, which is the problem of Step 7. With the identity, , so log ratios span at most however deterministic the preferences are. Log ratios of the tilt remove the normalizer and leave equations linear in the logits , and the IPO loss is their mean squared residual under , so . In the logits it is a convex quadratic whose second-order part vanishes only along the all-ones direction, which leaves the softmax unchanged, so the minimizer is unique as a policy and every local minimum is it. Without the support condition the quadratic does not see actions never samples, and their mass is left free.
The sampled loss is unbiased, and it regresses the margin to . The Bernoulli label can replace the win-rate difference although the two targets differ pointwise, because the loss sees the target only through a cross term with the margin, and with , so that term needs only the label's one-sided means, and . On a dataset each comparison enters as and , and with antisymmetric it contributes DPO and IPO act on the same margin and differ only in the loss: the logistic loss always decreases as the margin grows, while the square has a finite target, and that target provides the regularization.
In small bandits DPO goes greedy or drops actions for every , while IPO stays a -controlled tilt. With two actions, uniform and , IPO gives and DPO gives 1 for every . With three actions and a total order seen once per pair, DPO converges to the top action for , while IPO gives equal log gaps of (my computation), at . The commoner failure in a large action space with little data is an action that never wins: when and each beat the other once and loses once, DPO sends to 0, and IPO leaves it 0.16 and 0.23 at and 1.
Consequences and limits. DPO turned preference fine-tuning into supervised learning on a fixed dataset. DPO, IPO and RLHF share one target, the tilt , and differ in the tilting function and in what stops the fit from running to the boundary: early stopping for DPO, an underfit reward model for RLHF, a finite target margin for IPO. A drawback of IPO is that its target is a win rate against the sampling policy , so its optimum depends on how the pairs were generated, whereas under Bradley-Terry the logit turns into a constant shift of ; and its evidence comes only from toy bandits, with no language-model experiments. The tilt also says how reward errors enter (not discussed by Korbak et al.): with a learned the target gains a factor , so errors are amplified without bound as shrinks, one mechanism for the over-optimization Gao et al. measure.
Terms
- KL-regularized optimum, a tilt of the reference; sums over all responses
- Gibbs variational principle; the objective is affine in the reverse KL to a fixed target
- Distribution collapse
- is linear in , so its maximizer is a point mass on the best sequence
- Implicit reward
- , the reward for which is optimal
- Bradley-Terry log loss with as reward; cancels in the difference
- Gradient weight
- : probability the implicit reward misorders the pair
- Theorem 1
- each class of rewards differing by a function of has exactly one of the form , namely
- ΨPO
- ; logit gives RLHF/DPO under Bradley-Terry, identity gives IPO
- log-ratio margin , the quantity DPO and IPO fit
- IPO loss
- per comparison; a finite target margin, so log ratios span at most
Quiz
- Why does maximizing collapse the model even with perfect exploration and a reward that ranks every sequence correctly?A linear function on the simplex is maximized at a vertex, here , whatever the sampling scheme. The failure is in the objective, so neither better sampling nor a correct reward removes it.
- Which sequences can the KL-regularized optimum put mass on, for any finite reward and any ?is zero exactly where is zero and positive elsewhere, for every . Concentration on the best sequences happens only in the limit .
- Suppose the learned reward is . What does the tilt formula say about small ?, so the error multiplies the target exponentially in . A constant error is absorbed by , but variation in across sequences is amplified, one mechanism for reward over-optimization.
- What keeps the KL penalty effective in IPO even when preferences are deterministic?The optimum is normalized, and with the identity is bounded in , so no action's log ratio can move more than relative to another. The logit of a probability near 1 is unbounded, which is what DPO lacks.
Sources
- Tomasz Korbak, Ethan Perez, and Christopher L Buckley. RL with KL penalties is better viewed as Bayesian inference. Findings of EMNLP, 2022.
- Rafael Rafailov, Archit Sharma, Eric Mitchell, Stefano Ermon, Christopher D. Manning, and Chelsea Finn. Direct Preference Optimization: Your Language Model is Secretly a Reward Model. NeurIPS, 2023.
- Mohammad Gheshlaghi Azar et al. A General Theoretical Paradigm to Understand Learning from Human Preferences. AISTATS, 2024.
- Daniel Soudry, Elad Hoffer, Mor Shpigel Nacson, Suriya Gunasekar, and Nathan Srebro. The Implicit Bias of Gradient Descent on Separable Data. Journal of Machine Learning Research, 2018.
- Leo Gao, John Schulman, and Jacob Hilton. Scaling Laws for Reward Model Overoptimization. ICML, 2023.