GlossaryTraining

What Is DPO? Direct Preference Optimization Explained

Updated ·Also called: direct preference optimization

Direct preference optimization (DPO), introduced by Rafailov and colleagues in 2023, trains a model on pairs of responses to the same prompt: one chosen, one rejected. The model learns to increase the likelihood of chosen answers relative to rejected ones.

Versus RLHF

Classic RLHF trains a separate reward model and then optimises the chat model with reinforcement learning. DPO skips the reward model and reinforcement learning loop, making preference tuning simpler and cheaper.

Variants

ORPO, KTO, SimPO and others adjust the objective or data requirements.

In uncensored models

Preference pairs where the chosen answer helps and the rejected answer refuses push a model away from reflexive refusals. Many community fine-tunes combine SFT with DPO-style tuning.

See fine-tuning and how uncensored fine-tunes are trained.

Related

More terms: Abliteration · GGUF · Imatrix · Mixture of experts · Model card · Parameter count · Full glossary

Find your model in minutes.

Search the directory, check the licence and hardware, and start running uncensored AI models today.