[2305.18290] Direct Preference Optimization: Your Language Model is Secretly a Reward Model
Abstract: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.
# link_1m5xiry6uyc.pdf ## Metadata - PDFFormatVersion=1.5 - IsLinearized=false - IsAcroFormPresent=false - IsXFAPresent=false - IsCollectionPresent=false - IsSignaturesPresent=false - CreationDate=D:20240731001123Z - Creator=LaTeX with hyperref - ModDate=D:20240731001123Z - Custom.PTEX.Fullbanner=This is pdfTeX, Version 3.141592653-2.6-1.40.25 (TeX Live 2023) kpathsea version 6.3.5 - Producer=pdfTeX-1.40.25 - Trapped=False ## Contents ### Page 1 Direct Preference Optimization: Your Language Model is Secretly a Reward ModelRafael Rafailov∗† Archit Sharma∗† Eric Mitchell∗†Stefano Ermon†‡ Chri
saved by
- Varun Shenoy
- Claire Wang
- Niranjana Srinivasa Ragavan
- Atem Aguer
- Rishi Kothari
- Jirat C
- Julian H
- Jaisel Singh
related reading
- Illustrating Reinforcement Learning from Human Feedback (RLHF)huggingface.co
- [2510.13651] What is the objective of reasoning with reinforcement learning?arxiv.org
- [2305.18290] Direct Preference Optimization: Your Language Model is Secretly a Reward Modelarxiv.org
- From REINFORCE to Dr. GRPOlancelqf.github.io
- Fine-tune Llama 2 with DPOhuggingface.co
- [2302.08582] Pretraining Language Models with Human Preferencesarxiv.org
- RLHF | John Lambertjohnwlambert.github.io
- 2401.10020.pdfarxiv.org
- Direct Nash Optimization: Teaching Language Models to Self-Improve with General Preferencesarxiv.org
- Is DPO Superior to PPO for LLM Alignment? A Comprehensive Studyarxiv.org
- [2203.02155] Training language models to follow instructions with human feedbackarxiv.org
- [2605.11134] Spurious Correlation Learning in Preference Optimization: Mechanisms, Consequences, and Mitigation via Tie Trainingarxiv.org