# Learning to summarise from human feedback

Date: 2 September 2020 · Era: V · Transformers · Category: theory · Significance: 3/5
People: Nisan Stiennon, Long Ouyang, Paul Christiano
Organisations: OpenAI

Canonical: https://shapeofintelligence.com/timeline/2020-rlhf-summarisation/ · Dataset and text CC BY 4.0

> OpenAI applies preference learning to GPT-style models: people pick the better of two summaries, a reward model learns the picks, and the language model is optimised against it.

## What had to happen

40 events back to 1943, oldest first. Direct influences are marked *direct*.

- [1943 · A logical calculus of nervous activity](https://shapeofintelligence.com/md/timeline/1943-mcculloch-pitts-neuron/)
- [1948 · A mathematical theory of communication](https://shapeofintelligence.com/md/timeline/1948-shannon-information-theory/)
- [1949 · Cells that fire together wire together](https://shapeofintelligence.com/md/timeline/1949-hebb-organization-of-behavior/)
- [1950 · Programming a computer for playing chess](https://shapeofintelligence.com/md/timeline/1950-shannon-chess/)
- [1958 · The perceptron learns](https://shapeofintelligence.com/md/timeline/1958-perceptron/)
- [1959 · Samuel's checkers program coins 'machine learning'](https://shapeofintelligence.com/md/timeline/1959-samuel-machine-learning/)
- [1960 · ADALINE and the least-mean-squares rule](https://shapeofintelligence.com/md/timeline/1960-adaline-lms/)
- [1965 · Moore's law](https://shapeofintelligence.com/md/timeline/1965-moores-law/)
- [1969 · Perceptrons](https://shapeofintelligence.com/md/timeline/1969-perceptrons-book/)
- [1970 · Reverse-mode automatic differentiation](https://shapeofintelligence.com/md/timeline/1970-linnainmaa-backprop/)
- [1974 · Werbos applies backpropagation to neural networks](https://shapeofintelligence.com/md/timeline/1974-werbos-backprop/)
- [1980 · The Neocognitron](https://shapeofintelligence.com/md/timeline/1980-neocognitron/)
- [1982 · The Hopfield network](https://shapeofintelligence.com/md/timeline/1982-hopfield-network/)
- [1985 · The Boltzmann machine](https://shapeofintelligence.com/md/timeline/1985-boltzmann-machine/)
- [1986 · Backpropagation](https://shapeofintelligence.com/md/timeline/1986-backpropagation/)
- [1988 · Temporal-difference learning](https://shapeofintelligence.com/md/timeline/1988-temporal-difference-learning/)
- [1989 · Q-learning](https://shapeofintelligence.com/md/timeline/1989-q-learning/)
- [1989 · LeNet reads handwritten postcodes](https://shapeofintelligence.com/md/timeline/1989-lenet/)
- [1990 · Finding structure in time](https://shapeofintelligence.com/md/timeline/1990-elman-network/)
- [1991 · The vanishing gradient problem](https://shapeofintelligence.com/md/timeline/1991-vanishing-gradient/)
- [1992 · TD-Gammon reaches world-class backgammon](https://shapeofintelligence.com/md/timeline/1992-td-gammon/)
- [1997 · Long short-term memory](https://shapeofintelligence.com/md/timeline/1997-lstm/)
- [1998 · MNIST and LeNet-5](https://shapeofintelligence.com/md/timeline/1998-mnist-lenet5/)
- [1999 · The first GPU](https://shapeofintelligence.com/md/timeline/1999-geforce-256/)
- [2003 · A neural probabilistic language model](https://shapeofintelligence.com/md/timeline/2003-neural-language-model/)
- [2006 · Deep belief networks and the word 'deep'](https://shapeofintelligence.com/md/timeline/2006-deep-belief-nets/)
- [2007 · CUDA](https://shapeofintelligence.com/md/timeline/2007-cuda/)
- [2009 · ImageNet](https://shapeofintelligence.com/md/timeline/2009-imagenet/)
- [2010 · Rectified linear units](https://shapeofintelligence.com/md/timeline/2010-relu/)
- [2012 · Dropout](https://shapeofintelligence.com/md/timeline/2012-dropout/)
- [2012 · AlexNet wins ImageNet](https://shapeofintelligence.com/md/timeline/2012-alexnet/)
- [2013 · Deep Q-networks play Atari](https://shapeofintelligence.com/md/timeline/2013-dqn/)
- [2014 · Attention](https://shapeofintelligence.com/md/timeline/2014-bahdanau-attention/)
- [2014 · Sequence to sequence learning](https://shapeofintelligence.com/md/timeline/2014-seq2seq/)
- [2015 · Batch normalisation](https://shapeofintelligence.com/md/timeline/2015-batchnorm/)
- [2015 · Residual networks](https://shapeofintelligence.com/md/timeline/2015-resnet/)
- [2017 · Attention is all you need](https://shapeofintelligence.com/md/timeline/2017-attention-is-all-you-need/)
- [2017 · Deep reinforcement learning from human preferences](https://shapeofintelligence.com/md/timeline/2017-rl-from-human-preferences/) *direct*
- [2018 · GPT: generative pre-training](https://shapeofintelligence.com/md/timeline/2018-gpt-1/)
- [2019 · GPT-2 and the model too dangerous to release](https://shapeofintelligence.com/md/timeline/2019-gpt-2/) *direct*

The 2017 preference-learning paper had trained simulated robots. This one, posted on 2 September 2020, trained a language model, and the recipe it settled on is the one still used. Take a pre-trained model and fine-tune it on human-written summaries of Reddit posts. Have people compare pairs of summaries and say which they prefer. Train a reward model to predict the preferences. Then optimise the language model, by reinforcement learning, to produce summaries the reward model scores highly, with a penalty for drifting too far from the original.

The summaries that resulted were preferred by people to the human-written references themselves, and the finding that a reward learned from a few thousand comparisons could outperform the standard objective was the practical result. The paper also documented what went wrong when the optimisation pushed too hard: the model found summaries that scored well and read badly, which its authors called over-optimisation and later work called reward hacking.

Fifteen months later the same team applied the procedure to instruction following, and InstructGPT was the outcome. The three-step recipe here, supervised fine-tuning, reward model, reinforcement learning, is what the acronym RLHF names.

## What it led to

31 events downstream, through 2026.

Built on it directly:

- [2022 · InstructGPT](https://shapeofintelligence.com/md/timeline/2022-instructgpt/)

And, through them, by era:

- VI · Everyone: 16 events
- VII · Agents: 14 events

## Sources

- [Learning to summarize from human feedback (arXiv:2009.01325)](https://arxiv.org/abs/2009.01325) — paper

---

The Shape of Intelligence by Jamie McKaye (https://jamiemckaye.com) · Markdown mirror of https://shapeofintelligence.com/timeline/2020-rlhf-summarisation/

Before: [2020 · Denoising diffusion probabilistic models](https://shapeofintelligence.com/md/timeline/2020-ddpm/) · After: [2020 · An image is worth 16×16 words](https://shapeofintelligence.com/md/timeline/2020-vision-transformer/)
