Direct preference optimization (DPO) is a post-training method that aligns a language model to human preference comparisons without training a separate reward model or running reinforcement learning. Introduced by Rafailov et al. in May 2023, it reparameterizes the RLHF objective so that the optimal policy can be trained with a simple classification-style loss directly on preference pairs.1

How it works

Standard RLHF fits a reward model to comparisons and then optimizes the policy against it under a KL penalty. DPO's derivation shows that this constrained optimum has a closed form in which the reward is implicit in the policy itself; the resulting loss raises the likelihood margin of preferred over rejected responses, scaled by a temperature parameter, relative to a frozen reference model. Training reduces to supervised learning on the same data RLHF would use, with far less infrastructure than PPO-style loops.1

Adoption

Hugging Face's Zephyr (2023) demonstrated DPO on a Mistral AI base and made the method the default of the open post-training ecosystem; Meta AI used preference optimization in the DPO family for Llama 3's post-training, per its published report, and countless open recipes built on SFT-plus-DPO pipelines.3 Closed labs report mixed usage: preference-based stages remain universal, but frontier reasoning training shifted toward verifiable-reward reinforcement learning, covered at Reinforcement learning with verifiable rewards.2

Variants and critiques

Successors adjust the objective (IPO), drop the reference model or pairwise requirement (ORPO, KTO), or target listwise data. Studies dispute whether DPO matches full RL at the frontier: it optimizes the offline dataset rather than exploring, can overfit preference artifacts, and interacts subtly with distribution shift, keeping the DPO-versus-PPO question live in the literature of the LLM era, alongside methods like Constitutional AI that change where the preferences come from.12

References


  1. Rafailov, R., Sharma, A., Mitchell, E., Ermon, S., Manning, C., Finn, C., "Direct Preference Optimization: Your Language Model is Secretly a Reward Model," arXiv:2305.18290, May 2023. ↩↩↩

  2. Tunstall, L., et al., "Zephyr: Direct Distillation of LM Alignment," arXiv:2310.16944, October 2023. ↩↩

  3. Grattafiori, A., et al., "The Llama 3 Herd of Models," arXiv:2407.21783, July 2024. ↩