# InstructGPT (2022)

> The recipe that turned a raw language model into an assistant, a few months before ChatGPT.

Page: https://mralbu.github.io/ai-datasets/p/instructgpt

## Key facts

- Title: Training language models to follow instructions with human feedback
- Authors: Long Ouyang, Jeff Wu, Xu Jiang, Diogo Almeida, Carroll L. Wainwright, Pamela Mishkin, Chong Zhang, Sandhini Agarwal, Katarina Slama, Alex Ray, et al.
- Venue: NeurIPS 2022
- Category: LLMs
- Paper: https://www.alphaxiv.org/abs/2203.02155

## Why it matters

It showed that a small amount of human feedback matters more than a 100-fold increase in size for making a model useful. The same recipe trained ChatGPT, and preference data such as Anthropic's HH-RLHF became a dataset category of its own.

## The idea

Three steps: fine-tune GPT-3 on demonstrations written by people, train a reward model on human rankings of the model's answers, then optimize the model against that reward with reinforcement learning (PPO). This is reinforcement learning from human feedback, RLHF.

## The result

People preferred answers from the 1.3-billion-parameter InstructGPT over those of the 175-billion-parameter GPT-3, and it gave truthful and informative answers on TruthfulQA about twice as often.

## The data

- [TruthfulQA (2021)](https://mralbu.github.io/ai-datasets/d/truthfulqa.md): 817 questions written so that the popular answer is false.

## Builds on

- [GPT-3 (2020)](https://mralbu.github.io/ai-datasets/p/gpt-3.md)

## Led to

- [DPO (2023)](https://mralbu.github.io/ai-datasets/p/dpo.md)
- [LLaVA (2023)](https://mralbu.github.io/ai-datasets/p/llava.md)
- [DeepSeek-R1 (2025)](https://mralbu.github.io/ai-datasets/p/deepseek-r1.md)

## Part of

- [Aligning language models](https://mralbu.github.io/ai-datasets/t/llm-alignment.md) (step 2 of 4)
