Skip to content
AI & Machine Learning

Direct Preference Optimization (DPO)

Definition

Direct preference optimization is a way to train a model on human preferences, pairs of answers where people marked the better one, without the separate reward model and reinforcement learning step that RLHF uses. It is simpler and cheaper to run, so it is widely used to fine-tune open models.

Case study

Worked example