Training language models to follow instructions with human feedback
Ouyang et al. in Alignment
A 1.3B model tuned on human feedback beats 175B GPT-3
Training language models to follow instructions with human feedback
The three-step RLHF recipe

Collect demonstrations and fine-tune; collect rankings of model outputs and train a reward model; then optimize the policy against that reward with PPO.
Next-token prediction is not following instructions
Trained to continue internet text, it often ignores the request, invents facts or produces toxic output when asked to help.
Fine-tuned to do what labelers prefer: follow the instruction, stay truthful, avoid harm. The target is the user's intent, not plausible text.
Alignment is a training target, not a side effect of scale.
What each stage contributes
- 1
Supervised fine-tuning
About 13k prompts with labeler-written demonstrations teach the desired behavior directly.
- 2
Reward model
Labelers rank 4 to 9 outputs per prompt; a 6B model learns to predict which they prefer.
- 3
PPO with a KL penalty
Optimize against the reward while a KL term keeps the policy near SFT, with pretraining gradients mixed in.
Preferred at every size, by a wide margin

Win rate against the 175B SFT model. PPO-ptx at 1.3B beats both prompted and plain GPT-3 at 175B, and the gap holds as models grow.
Half the made-up facts
Closed-domain tasks: information not present in the input. Labelers preferred 175B InstructGPT 85 ± 3% of the time.
Aligned to whom, and how well?
A narrow group of labelers
Behavior reflects about 40 contractors, the researchers and API customers, not people broadly.
Still makes simple mistakes
It can accept false premises, hedge excessively and miss instructions with several constraints.
Follows harmful instructions
Trained to be helpful, it complies with many harmful requests when explicitly asked.
Why it matters
- Human preference fine-tuning made a 1.3B model more useful than 175B GPT-3.
- Mixing pretraining gradients into PPO limited the alignment tax on public NLP benchmarks.
- Its recipe of SFT, then a reward model, then PPO became the blueprint for ChatGPT.
26 upvotes on Hugging Face 8 slides, 2 min
4 Mar 2022