Secure Systems Group
Menu×

Wiki Home

Direct preference optimization (DPO)

Definition

Direct preference optimization aligns a language model to pairwise human preferences, a preferred response versus a dispreferred one, without training a separate reward model or running a reinforcement-learning loop (Rafailov et al., 2023). It rewrites the KL-regularized reward-maximization objective behind RLHF so that the optimal policy can be fit directly with a binary classification loss over preference pairs. The model’s own log-probabilities, measured relative to a frozen reference model, stand in for an implicit reward, and a KL term keeps the policy close to that reference.

DPO targets the same goal as RLHF, a policy that favors human-preferred outputs while staying near a reference model, but reaches it with ordinary supervised optimization rather than online sampling and reward estimation. RLHF and DPO are the two dominant preference-optimization recipes behind instruction following and safety behavior in deployed models.

Papers that use this concept

See also

References

  • Rafailov, R., Sharma, A., Mitchell, E., Manning, C. D., Ermon, S., and Finn, C. “Direct Preference Optimization: Your Language Model is Secretly a Reward Model.” Advances in Neural Information Processing Systems (NeurIPS), 36, 2023.