Direct Preference Optimization: Your Language Model is Secretly a Reward Model
arXiv:2305.18290
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.
Cited by in corpus (17)
- A Comprehensive Survey of Large Language Models and Multimodal Large Language Models in Medicine
- Reinforcement Learning for Generative AI: State of the Art, Opportunities and Open Research Challenges
- Exploring the Roles of Large Language Models in Reshaping Transportation Systems: A Survey, Framework, and Roadmap
- Beyond Preferences in AI Alignment
- Reasoning Beyond Limits: Advances and Open Problems for LLMs
- A Reliable Knowledge Processing Framework for Combustion Science using Foundation Models
- Natural Language Processing with Commonsense Knowledge: A Survey
- Benchmarking Uncertainty Quantification Methods for Large Language Models with LM-Polygraph
- Large Language Models for Scholarly Ontology Generation: An Extensive Analysis in the Engineering Field
- Tucano: Advancing Neural Text Generation for Portuguese
- Web Archives Metadata Generation with GPT-4o: Challenges and Insights
- Optimizing LLMs with Direct Preferences: A Data Efficiency Perspective
- Bootstrapping LLM-based Task-Oriented Dialogue Agents via Self-Talk
- Lightweight and Direct Document Relevance Optimization for Generative Information Retrieval
- Influence of Solution Efficiency and Valence of Instruction on Additive and Subtractive Solution Strategies in Humans and GPT-4
- Large Language Models -- the Future of Fundamental Physics?
- Towards AI epidemiology: a measurement standardisation framework for prospective risk detection