Papers / LLMs
DPO (2023)
Direct Preference Optimization: Your Language Model is Secretly a Reward Model
RLHF without the reinforcement learning, as one simple loss on pairs of preferred and rejected answers.
Why it matters
PPO-based RLHF needs several models in memory and is notoriously hard to tune. DPO made preference tuning something any lab could do on a modest budget, and most open models since have been aligned with it or one of its many variants.
- Year
- 2023
- Authors
- Rafael Rafailov, Archit Sharma, Eric Mitchell, Stefano Ermon, Christopher D. Manning, Chelsea Finn
- Venue
- NeurIPS 2023
- Data
- Anthropic HH-RLHF, IMDB Large Movie Review
The idea
The RLHF objective has a closed-form optimal policy, which means the reward can be written in terms of the model itself. Substituting it gives a classification-style loss on preference pairs: raise the likelihood of the chosen answer relative to the rejected one, compared with a frozen reference model. No reward model, no sampling during training.
The result
Matched or beat PPO-based RLHF on sentiment control with IMDb reviews, summarization, and single-turn dialogue on Anthropic's HH data, while being much simpler and more stable to train.
The data
Anthropic HH-RLHF
2022170k pairs of assistant replies to the same conversation, and which one a person preferred. (1 year earlier)
How long does it take to learn Excel? Assistant: There’s no one-size-fits-all answer for this question, it depends on the person and the eff…
IMDB Large Movie Review
201150,000 movie reviews from IMDb, labeled positive or negative. (12 years earlier)
“"The Student Nurses" is an excellent film that deals with four women bonded by friendship and career. For the first time, one is able to see…”
Builds on
- InstructGPT (2022): The recipe that turned a raw language model into an assistant, a few months before ChatGPT.
