[Paper Review] Training language models to follow instructions with human feedback
The paper shows that fine-tuning GPT-3 with human demonstrations and preferences (RLHF) yields InstructGPT, which outperforms GPT-3 baselines with far fewer parameters and improves truthfulness and reduces toxicity across a broad task set.
Making language models bigger does not inherently make them better at following a user's intent. For example, large language models can generate outputs that are untruthful, toxic, or simply not helpful to the user. In other words, these models are not aligned with their users. In this paper, we show an avenue for aligning language models with user intent on a wide range of tasks by fine-tuning with human feedback. Starting with a set of labeler-written prompts and prompts submitted through the OpenAI API, we collect a dataset of labeler demonstrations of the desired model behavior, which we use to fine-tune GPT-3 using supervised learning. We then collect a dataset of rankings of model outputs, which we use to further fine-tune this supervised model using reinforcement learning from human feedback. We call the resulting models InstructGPT. In human evaluations on our prompt distribution, outputs from the 1.3B parameter InstructGPT model are preferred to outputs from the 175B GPT-3, despite having 100x fewer parameters. Moreover, InstructGPT models show improvements in truthfulness and reductions in toxic output generation while having minimal performance regressions on public NLP datasets. Even though InstructGPT still makes simple mistakes, our results show that fine-tuning with human feedback is a promising direction for aligning language models with human intent.
Motivation & Objective
- Demonstrate that fine-tuning large language models with human feedback can align them to user instructions across diverse tasks.
- Show that smaller, instruction-tuned models can outperform much larger baselines on instruction-following prompts.
- Evaluate changes in truthfulness, toxicity, and adherence to explicit constraints when using RLHF.
- Assess generalization to held-out labelers and to real API prompts beyond training data.
Proposed method
- Collect demonstrated outputs from labelers to train a supervised fine-tuning (SFT) model.
- Collect pairwise human preferences over model outputs to train a reward model (RM).
- Use RM as reward to fine-tune the policy with Proximal Policy Optimization (PPO).
- Mix PPO updates with pretraining gradients (PPO-ptx) to reduce performance regressions on public NLP datasets.
- Evaluate using human labeler preferences on held-out API prompts and on public NLP datasets; compare to GPT-3 and FLAN/T0 baselines.
Experimental results
Research questions
- RQ1Can RLHF fine-tuning align a language model to follow user instructions across a broad task distribution?
- RQ2Do smaller InstructGPT models outperform the much larger GPT-3 baselines on instruction-following prompts?
- RQ3How does RLHF affect truthfulness, toxicity, and adherence to explicit constraints compared to baseline models?
- RQ4Do InstructGPT models generalize to held-out labelers and prompts outside the training distribution?
- RQ5What trade-offs (alignment tax) arise between alignment gains and performance on standard NLP benchmarks?
Key findings
- InstructGPT outputs are preferred to GPT-3 outputs; the 1.3B InstructGPT is preferred over 175B GPT-3 in the API prompt distribution.
- InstructGPT models exhibit about twice the truthfulness on TruthfulQA compared with GPT-3 and show roughly half the hallucination rate on open-domain tasks (21% vs 41%).
- InstructGPT reduces toxic outputs by about 25% compared with GPT-3 when prompted to be respectful.
- There are small but measurable performance regressions on some public NLP datasets (SQuAD, DROP, HellaSwag, WMT 2015 FR→EN) after alignment, which can be mitigated by mixing PPO with pretraining gradients (PPO-ptx).
- Even with a 1.3B parameter model, InstructGPT can outperform the 175B GPT-3 on instruction-following tasks, indicating the value of alignment over sheer scale.
Better researchstarts right now
From reading papers to final review, dramatically reduce your research time.
No credit card · Free plan available
This review was created by AI and reviewed by human editors.