Stanford CS336 Lecture Explains Why DPO Compares Against a Reference, Not Two Current Probabilities

stanfordnlp · x · 2026-10-31

A writeup of Tatsunori Hashimoto's Stanford CS336 Lecture 15 (SFT & RLHF) walks through DPO's math: two answers with equal policy probability can still yield a positive preference margin (e.g., 0.3 vs 0.3 gives log 2 when the reference favors them differently), since DPO compares log-ratios against a reference model. A companion chart shows how reward reweights the reference distribution, with larger β restraining deviation (optimal P(A) of 0.8/0.5/0.333 at β=0.5/1/2). Key thread: preference labels can reward correctness, length, or formatting, and the optimizer can't separate them.

Original post →

More from Models

Models channel →