4.4.4 · D5Alignment, Prompting & RAG
Question bank — Direct Preference Optimization (DPO)
Quick symbol refresher so no notation is unearned:
- = the prompt; = the winner (human-chosen response); = the loser (rejected response). The subscripts and always mean "winner" and "loser".
- = the model we are training (starts as the SFT checkpoint).
- = a frozen copy of that same SFT checkpoint — never updated.
- = the implicit reward: DPO's reward is not a separate network, it is this ratio. Shorthand: and .
- = the scalar strength of the "leash" tying to .
- = the sigmoid, , which turns a score difference into a probability (see figure below).
- = the partition function: a normalizer that sums over every possible response to prompt . It is intractable (there are astronomically many sequences), and eliminating it is DPO's central trick (see the cancellation figure below).

The sigmoid above is the whole loss in one picture: the horizontal axis is the reward margin . When the winner already scores higher (margin positive, right side) and the loss shrinks toward ; when the model is wrong (margin negative, left side) the loss grows without bound. At margin the loss is exactly .

The second figure shows why disappears: both the winner's and loser's rewards carry the same block (because it depends only on the shared prompt ), so subtracting them (the Bradley-Terry difference) makes the blocks annihilate.
True or false — justify
TF1. DPO removes reinforcement learning entirely from the alignment pipeline.
True. DPO rewrites the RL objective as a single supervised classification loss on preference pairs — no policy rollouts, no PPO, no on-the-fly reward sampling.
TF2. Because DPO trains no reward model, there is no reward signal anywhere in it.
False. The reward is implicit: . The policy itself parameterizes the reward — that's the entire trick, not the absence of reward.
TF3. Increasing lets the model change more from its starting point.
False. scales the reward gap for a given deviation, so the sigmoid saturates sooner and gradients vanish → the model deviates less. Large = tighter leash.
TF4. The partition function cancels no matter what preference model you use.
False. It cancels because Bradley-Terry takes a difference of rewards for the same prompt , and depends only on . Change to a model without that same-prompt subtraction and can return.
TF5. At initialization () the per-example loss is exactly .
False. Both log-ratios are , the margin is , and the loss is — the coin-flip baseline, not zero.
TF6. The frozen reference model is redundant and can be dropped to save memory.
False. Without the ratio to the loss rewards raw likelihood, collapsing onto a few high-frequency sequences (degeneration), and no longer cancels.
TF7. DPO can learn from a single labeled response (not a pair).
False. The cancellation only happens when subtracting two rewards for the same . One response leaves intact and intractable — pairs are structurally required.
TF8. DPO needs to sample new responses from during training.
False. It uses the fixed preference dataset you already have. The removal of on-policy sampling is a major reason DPO is cheaper and more stable than PPO.
TF9. A large positive reward margin means the model still has a lot to learn on that pair.
False. A large positive margin means the model already prefers the winner, so the loss and gradient are small — DPO has essentially finished with that easy pair.
TF10. Raising the absolute log-probability of always lowers the DPO loss.
False. Only the ratio matters. If already assigns high probability, pushing raw likelihood up barely moves the ratio.
Spot the error
SE1. "DPO's loss is ."
The winner and loser rewards are subtracted, not added: . Adding them destroys the preference direction and the cancellation.
SE2. "The implicit reward is ."
It must be the ratio to the reference and scaled by : . Dropping turns it into raw likelihood and reintroduces degeneration.
SE3. "We can update alongside so the leash tightens over time."
must stay frozen. If it tracks , the ratio drifts toward , the reward signal collapses, and the KL anchor to the original SFT model is lost.
SE4. "DPO needs a value model like PPO does."
DPO needs no value/critic model. PPO-RLHF carries policy + reference + reward + value (four models); DPO keeps only policy + reference (two).
SE5. "The sigmoid in DPO is optional smoothing; you could use the raw margin as the loss."
The sigmoid comes directly from the Bradley-Terry preference probability. Replacing it changes what you're modeling and loses the bounded, well-behaved logistic gradient that weights hard examples.
SE6. "Since , we could ignore even before subtracting."
You may only discard it after forming the difference. Before that, is a sum over all sequences — intractable, not ignorable.
SE7. "DPO minimizes the KL divergence directly as a separate term in its loss."
There is no explicit KL term in the DPO loss. The KL constraint was absorbed analytically into the closed-form optimal policy back in the derivation; the ratio-form reward is what carries it.
Why questions
WHY1. Why does DPO focus learning on the model's current mistakes automatically?
The gradient weight is , which is large exactly when the model wrongly rates the loser above the winner — an automatic hard-example weighting with no reward model needed.
WHY2. Why is the difference of rewards, not each reward alone, what DPO can compute?
Each individual reward carries the intractable term; only in the difference (same ) does that term cancel, leaving a fully computable expression.
WHY3. Why does DPO start from an SFT checkpoint rather than a raw pretrained model?
must be a competent instruction-follower so the ratio measures preference improvement, not basic fluency; SFT provides that sane, on-distribution anchor.
WHY4. Why is PPO-RLHF unstable in a way DPO avoids?
PPO optimizes against a learned, noisy reward with on-policy rollouts (susceptible to reward hacking and high variance); DPO replaces this with a fixed, deterministic supervised loss.
WHY5. Why does the same policy shift produce a smaller loss when is larger?
A fixed log-ratio margin becomes reward margin ; larger makes closer to , so is smaller and the model is "satisfied" with less movement.
WHY6. Why can't we just supervise on alone (plain SFT) and skip ?
SFT on raises the winner's probability but never lowers the loser's; DPO's contrastive form explicitly pushes down, encoding the relative human preference.
WHY7. Why is the loss at initialization exactly and not something dataset-dependent?
At init makes every margin regardless of data, and for every example.
Edge cases
EC1. What is the loss when the model confidently prefers the loser (large negative margin)?
of a large negative number , so (grows without bound); the loss is large and the gradient strongly corrects it.
EC2. What happens to the gradient when the margin is very large and positive?
, so the gradient vanishes — that pair is already solved and contributes almost nothing to learning.
EC3. What if and are genuinely equally good (a mislabeled or tie pair)?
DPO still forces the winner up and loser down, injecting noise; ties or noisy labels degrade DPO because it assumes a real preference direction exists.
EC4. What if assigns zero probability to the chosen response ?
The log-ratio blows up (division by ~0), destabilizing training — one reason the reference should share support with the data (SFT ensures this).
EC5. As , what actually happens to learning?
The whole reward margin is scaled toward , so the sigmoid sits near and the gradient magnitude — the model stops learning (signal starved), it does not drift freely.
EC6. As , what is the asymptotic behavior?
It splits by pair: already-correct pairs saturate and their gradients vanish, but any misordered pair gets a reward margin scaled arbitrarily large and negative, producing unboundedly large gradients — so behavior is not simply "no movement" but a sharp, unstable push to fix wrong pairs.