Training language models to follow instructions with human feedback

Long Ouyang, Jeff Wu, Xu Jiang, Diogo Almeida, Carroll L. Wainwright, Pamela Mishkin and 14 more

Published
Lab
OpenAI
Code
GitHub
Citations
26,333

TL;DR

InstructGPT aligns GPT-3 with user intent in two stages: supervised fine-tuning on labeler demonstrations, then reinforcement learning from human rankings of model outputs.

Read this as a

Why builders care

Editor's note

Making the base model bigger does not, by itself, make it follow instructions. A 1.3B InstructGPT was preferred to 175B GPT-3 on the authors' prompt distribution, with 100x fewer parameters, and was more truthful and less toxic.

How to apply it

Editor's note
  1. 1If users say the model is unhelpful or off-intent, collect demonstrations and preference rankings and fine-tune, rather than only scaling the base model.
  2. 2Measure truthfulness and toxic output alongside quality. This paper reports gains on both, with only minimal regressions on public NLP datasets.
  3. 3Keep a human eval on your actual prompt distribution. That is where the 1.3B model was preferred to 175B GPT-3.

Practical notes

AI-generated
  • Collect labeler demonstrations of desired behavior to fine-tune the base model using supervised learning.
  • Collect rankings of model outputs to further fine-tune the supervised model using reinforcement learning.
  • Measure truthfulness and toxic output alongside quality, keeping a human evaluation on your actual prompt distribution.

Key results

From the abstract
  1. 1

    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.

  2. 2
    100x fewer parameters

    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.

  3. 3

    Moreover, InstructGPT models show improvements in truthfulness and reductions in toxic output generation while having minimal performance regressions on public NLP datasets.

  • 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.
  • 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.

  • 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.

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.

Everything on this page is written from this abstract. For methods and full results, read the paper PDF.

Ask the paper

Answers come from the paper summary and abstract.

Ask anything about “Training language models to follow instructions with human feedback”, or start with one of these:

Closest matches across the feed and every collection, by shared words in titles, topics and abstracts.