Direct Preference Optimization: Your Language Model is Secretly a Reward Model
Rafael Rafailov, Archit Sharma, Eric Mitchell, Stefano Ermon, Christopher D. Manning, Chelsea Finn
- Published
- Lab
- Stanford
- arXiv
- 2305.18290
- Topic
- Human-AI UX
- Citations
- 11,866
TL;DR
Direct Preference Optimization aligns a language model to human preference data with a classification loss, instead of training a separate reward model and running reinforcement learning.
The problem
- While large-scale unsupervised language models (LMs) learn broad world knowledge and some reasoning skills, achieving precise control of their behavior is difficult due to the completely unsupervised nature of their training.
- Existing methods for gaining such steerability collect human labels of the relative quality of model generations and fine-tune the unsupervised LM to align with these preferences, often with reinforcement learning from human feedback (RLHF).
- However, RLHF is a complex and often unstable procedure, first fitting a reward model that reflects the human preferences, and then fine-tuning the large unsupervised LM using reinforcement learning to maximize this estimated reward without drifting too far from the original model.
Method
- In this paper we introduce a new parameterization of the reward model in RLHF that enables extraction of the corresponding optimal policy in closed form, allowing us to solve the standard RLHF problem with only a simple classification loss.
- The resulting algorithm, which we call Direct Preference Optimization (DPO), is stable, performant, and computationally lightweight, eliminating the need for sampling from the LM during fine-tuning or performing significant hyperparameter tuning.
Limitations
The abstract doesn't state limitations. Look for them in the paper's discussion section.
Evidence and citations
2 key results quoted from the abstract (see Results). Cited 11,866 times (Semantic Scholar).
BibTeX and APA for the original paper are in the Cite box.
Why builders care
RLHF works but is complex and often unstable. DPO matched or beat PPO-based RLHF on sentiment control, summarization and single-turn dialogue, and is substantially simpler to implement and train.
How to apply it
- 1If you already have pairwise preference labels, try DPO before standing up a reward model and an RL loop.
- 2Use it when you want preference alignment without sampling from the language model during fine-tuning or heavy hyperparameter work.
- 3Compare against PPO-based RLHF on your actual task. The paper's gains are on sentiment of generations, summarization and single-turn dialogue.
Code
No verified code link yet. We checked the abstract, arXiv comments and Hugging Face; if the authors release code later it will show up here.
Practical notes
- Try Direct Preference Optimization before standing up a separate reward model and an reinforcement learning loop if you have pairwise preference labels.
- Use this method when you want preference alignment without needing to sample from the language model during fine-tuning.
- Compare your results against reinforcement learning from human feedback on your actual task for sentiment, summarization, or single-turn dialogue.
What it unlocks
Direct Preference Optimization allows founders to align language models with human preferences using a simple classification loss, removing the complexity and instability of traditional reinforcement learning from human feedback loops.
Use cases
- Fine-tune language models to align with human preferences for summarization tasks.
- Control the sentiment of model generations using pairwise preference data.
- Improve response quality for single-turn dialogue applications without complex reinforcement learning.
Watch out for
The abstract doesn't state limitations. Check the paper before you build a product on it.
AI-generated notes are written by gemini-3.5-flash-lite from this paper's abstract and Readout summary only, and checked so they add no numbers that aren't in the source. They can still be wrong: read the paper before you rely on them.
Key results
- 1
Our experiments show that DPO can fine-tune LMs to align with human preferences as well as or better than existing methods.
- 2
Notably, fine-tuning with DPO exceeds PPO-based RLHF in ability to control sentiment of generations, and matches or improves response quality in summarization and single-turn dialogue while being substantially simpler to implement and train.
- While large-scale unsupervised language models (LMs) learn broad world knowledge and some reasoning skills, achieving precise control of their behavior is difficult due to the completely unsupervised nature of their training.
- Existing methods for gaining such steerability collect human labels of the relative quality of model generations and fine-tune the unsupervised LM to align with these preferences, often with reinforcement learning from human feedback (RLHF).
- However, RLHF is a complex and often unstable procedure, first fitting a reward model that reflects the human preferences, and then fine-tuning the large unsupervised LM using reinforcement learning to maximize this estimated reward without drifting too far from the original model.
- In this paper we introduce a new parameterization of the reward model in RLHF that enables extraction of the corresponding optimal policy in closed form, allowing us to solve the standard RLHF problem with only a simple classification loss.
- The resulting algorithm, which we call Direct Preference Optimization (DPO), is stable, performant, and computationally lightweight, eliminating the need for sampling from the LM during fine-tuning or performing significant hyperparameter tuning.
While large-scale unsupervised language models (LMs) learn broad world knowledge and some reasoning skills, achieving precise control of their behavior is difficult due to the completely unsupervised nature of their training. Existing methods for gaining such steerability collect human labels of the relative quality of model generations and fine-tune the unsupervised LM to align with these preferences, often with reinforcement learning from human feedback (RLHF). However, RLHF is a complex and often unstable procedure, first fitting a reward model that reflects the human preferences, and then fine-tuning the large unsupervised LM using reinforcement learning to maximize this estimated reward without drifting too far from the original model. In this paper we introduce a new parameterization of the reward model in RLHF that enables extraction of the corresponding optimal policy in closed form, allowing us to solve the standard RLHF problem with only a simple classification loss. The resulting algorithm, which we call Direct Preference Optimization (DPO), is stable, performant, and computationally lightweight, eliminating the need for sampling from the LM during fine-tuning or performing significant hyperparameter tuning. Our experiments show that DPO can fine-tune LMs to align with human preferences as well as or better than existing methods. Notably, fine-tuning with DPO exceeds PPO-based RLHF in ability to control sentiment of generations, and matches or improves response quality in summarization and single-turn dialogue while being substantially simpler to implement and train.
Everything on this page is written from this abstract. For methods and full results, read the paper PDF.
Ask the paper
Ask anything about “Direct Preference Optimization: Your Language Model is Secretly a Reward Model”, or start with one of these:
Related papers
Closest matches across the feed and every collection, by shared words in titles, topics and abstracts.
- FoundationsSummary
Deep reinforcement learning from human preferences
Paul Christiano et al. · 2017
Shares: preference, feedback, human
- FoundationsSummaryCode
Training language models to follow instructions with human feedback
Long Ouyang et al. · 2022
Shares: tune, feedback, collect
- AI AgentsCode
RewardHarness: Self-Evolving Agentic Post-Training
Yuxuan Zhang et al. · 2026
Shares: preference, rlhf, human
- Readout feedSummaryCode
SkillOpt: Executive Strategy for Self-Evolving Agent Skills
Yifan Yang et al. · 2026
Shares: direct, skill, optimization
- Readout feedSummaryCode
Self-RAG: Learning to Retrieve, Generate, and Critique through Self-Reflection
Akari Asai et al. · 2023
Shares: lms, feedback, loop
- Readout feedSummary
Reflexion: Language Agents with Verbal Reinforcement Learning
Noah Shinn et al. · 2023
Shares: feedback, reinforcement, loop