All essays

Paper Notes

Skipping the Middleman in Preference Learning

DPO collapses the whole RLHF pipeline into a single classification loss — no reward model, no PPO — and asks what the RL step was ever doing.

5 min readBy Caden Chuang

The DPO paper opens with a complaint that anyone who has run RLHF will recognize: the standard pipeline is a Rube Goldberg machine. Fit a reward model to human preferences. Then fine-tune the language model with reinforcement learning to maximize that estimated reward, while carefully not drifting too far from the original model. Two big models, an unstable RL loop, endless hyperparameter tuning. DPO's provocation is that most of this machinery is unnecessary — that the whole thing collapses into a single classification loss.

The mathematical sleight of hand

The key move is a reparameterization. In standard RLHF, you first learn a reward model from preference data, then solve for the policy that maximizes expected reward subject to a KL constraint against a reference model. That constrained optimization has a known closed-form solution: the optimal policy is proportional to the reference policy weighted by the exponentiated reward.

DPO inverts this relationship. If the optimal policy has that form, then you can read the reward off the policy: the reward is implicitly defined by how the policy's likelihoods differ from the reference model's. Plug that implicit reward into the Bradley–Terry preference model, and the entire RLHF objective reduces to a binary classification loss over preference pairs. In plain language: increase the relative likelihood of the preferred response, decrease it for the dispreferred one, with a temperature parameter controlling how far you're willing to drift from the reference.

No reward model. No PPO. No sampling from the language model during training. Just gradient descent on a loss that looks like logistic regression.

The paper's title is doing real work here: "your language model is secretly a reward model." Any policy implicitly defines a reward function via its deviation from the reference. DPO just optimizes the preference objective directly in policy space instead of detouring through an explicit reward model.

What it actually achieved

The empirical claims are strong and specific. DPO fine-tuning exceeded PPO-based RLHF at controlling the sentiment of generations, and matched or improved response quality on summarization and single-turn dialogue — while being, in the authors' words, "stable, performant, and computationally lightweight." The stability claim matters: PPO runs in RLHF were notoriously finicky, and a method that replaces them with supervised-style training removed the biggest operational headache in the pipeline.

The paper also landed at exactly the right moment. By mid-2023, open-source labs were desperate for RLHF without the infrastructure tax — few groups outside the big labs could comfortably run PPO on large models. DPO (and its cousins IPO, KTO, and the alphabet soup of preference optimizers that followed) democratized preference fine-tuning. If you fine-tuned an open model on preferences in 2024, you almost certainly used DPO or a variant.

The paper also unintentionally launched a subfield. Within a year came IPO (which argued DPO overfits and proposed different regularization), KTO (which dropped the need for paired preferences entirely, learning from binary good/bad signals inspired by prospect theory), SimPO, ORPO, and a dozen more. Each tweaked the loss; collectively they mapped the design space of preference learning without RL. The Cambrian explosion is itself evidence for the paper's core claim: once you see RLHF as classification, the space of possible objectives opens up, and most of them train in hours on a single GPU.

Where the simplification costs something

The elegance comes with tradeoffs the paper doesn't hide, though later work made them sharper. By eliminating the reward model, DPO also eliminates the ability to inspect the reward — you can no longer ask "what did the model learn to value?" separately from the policy. The method is fundamentally offline: it learns from a fixed preference dataset, so unlike online RLHF it can't explore beyond the data or correct for distribution shift as the policy improves. Follow-ups showed DPO can overfit to preference data in ways online methods avoid, and its implicit reward can develop quirks — like length bias, where longer responses become a cheap proxy for quality that the loss can't distinguish from genuine preference — that an explicit reward model would at least make measurable.

There's a deeper point too. DPO solves the standard RLHF problem more simply, but the standard problem might be the wrong problem. It still assumes preferences are the right signal and that a static dataset captures them. The reasoning-RL wave — DeepSeek-R1 and its descendants — would later argue that for many tasks, verifiable rewards beat preferences entirely, sidestepping DPO's whole framing.

DPO's lesson cuts both ways: the RL step in RLHF was doing less work than anyone thought — but the things it was doing, like online exploration, turn out to be hard to replace.

Where it sits in the arc

DPO marks the moment preference learning split into two philosophies. One camp — the DPO lineage — treats alignment as a supervised problem: collect preferences, run a classification loss, done. The other — the RLVR lineage — treats it as a reinforcement learning problem worth doing properly, with exploration and verifiable rewards. Both descend from InstructGPT; they just disagree about which of its three stages was load-bearing. The current frontier, somewhat ironically, uses both: DPO-style methods for cheap preference shaping, real RL for reasoning. There's an irony in DPO's success worth sitting with: it made preference learning accessible by removing RL, just as the field was discovering that real RL — with exploration and verifiable rewards — could do things preference learning couldn't. Both revolutions were right; they were just about different problems.

Paper: Direct Preference Optimization: Your Language Model is Secretly a Reward Model — Rafailov et al., 2023.