Every powerful language model you interact with has been steered to behave helpfully. The classic approach is Reinforcement Learning from Human Feedback (RLHF): human annotators compare pairs of model responses, those preferences train a reward model, and then reinforcement learning nudges the language model to score higher on that reward — all while staying close to the original pretrained weights via a KL-divergence penalty.
It works, but it is expensive and finicky. Training a separate reward model adds parameters, memory, and a second optimization loop. The RL step is notoriously unstable.
In 2023, Rafailov, Sharma, Mitchell, Manning, Ermon and Finn published Direct Preference Optimization (DPO). The key insight: for any RLHF objective with a KL penalty, the optimal policy can be written in closed form as a simple re-weighting of the reference model. That means you can re-express the reward model implicitly inside the language model itself — and then derive a single cross-entropy-like loss that trains directly on preference pairs, with no RL and no separate reward model.
DPO is now one of the most widely used alignment techniques. Understanding it means understanding a beautiful reduction: what looked like a two-stage RL problem turns out to be secretly just a supervised loss.
Comments
Loading comments...