DPO: the same target, from a fixed set of preferences

The same 64-completion model and the same objective, E[r] − β·KL(π‖πref), as in REINFORCE to GRPO. This time no one hands the learner a reward. A labeler compares pairs of completions sampled from the pretrained model and says which is better, preferring the higher-reward one with probability σ(r1 − r2). DPO trains on that fixed set of pairs. GRPO, for comparison, samples fresh completions and sees their rewards at every step. Both aim at the same dashed target.

reward:
β0.50 reward scale2
preference pairs
speed show:

1. The policy, and the pairs DPO learns from

The tiny language model as a treeThe next-token distribution at each prefix, the 64 completions with their rewards and probabilities, and under each completion how often it won and lost in the preference pairs.

2. The reward hidden in the policy: β log π(y)/πref(y)

Implicit rewardFor each completion, the policy's implicit reward beta times log of pi over pi-ref, as a bar, against the reward it should equal at the optimum, as a dashed tick.

3. DPO against GRPO

Training curvesExpected reward and distance from the optimum for DPO and GRPO, and DPO's loss on its own pairs and on fresh pairs.
Where DPO comes from. The objective E[r] − β·KL(π‖πref) is maximized by π*(y) = πref(y) exp(r(y)/β) / Z. Take logs and solve for the reward: r(y) = β log π*(y)/πref(y) + β log Z. So a policy is a reward model, up to the constant β log Z; panel 2 plots that reward for the current policy. Preferences follow Bradley–Terry, P(yw ≻ yl) = σ(rw − rl), which uses only reward differences, so the unknown constant cancels. Maximizing the likelihood of the labels gives DPO’s loss, −log σ(β log π(yw)/πref(yw) − β log π(yl)/πref(yl)): a logistic regression on pairs, with the policy as the classifier. No sampling, no reward model, no advantages.
What the pairs pin down. Each pair pushes up the winner’s log-probability and pushes down the loser’s, by an amount that shrinks once the pair is classified confidently. Completions that appear in many pairs end up with the right implicit reward: their bars in panel 2 reach their ticks. Completions that never appear are pinned by nothing. They move only because they share prefixes with completions that do, and in a real model because they share weights. With 64 pairs drawn from πref, a third of the completions appear at all.
What happens when the data runs out. Keep training on 64 pairs and the loss on those pairs keeps falling while the loss on fresh pairs from the same labeler turns up: DPO is overfitting. Lowering a loser’s probability is always another way to widen the margin, and the mass has to go somewhere, often to completions the data never mentions. The expected reward often peaks and then declines, and the distance from π* grows. More pairs push the problem back: at 1024 DPO lands close to π*. So does resampling the pairs from the current policy every 50 steps, which is “online” or iterative DPO: the data now covers whatever the policy has started to prefer, the way GRPO’s samples always do. Raise reward scale to make the labeler more certain, and nearly deterministic labels drive the fitted reward differences, and the margins, without bound, which IPO (Azar et al. 2023) was designed to fix.
The trade. GRPO needs a reward it can query on any new completion, such as a checked math answer or a passing unit test, and pays for samples at every step. DPO needs only a dataset of judgments made once, which is why it became the usual way to preference-tune open models after 2023. That is also its limit: it never sees its own new mistakes. When the reward became checkable, as in reasoning models trained on math and code, on-policy methods like GRPO came back.