Skip to content
The Shape of Intelligence

VI · Attention, transformers and pretraining, from 2017

The context

How did attention and transformers change the picture?

Enter the exhibition here →

In 2017 eight researchers at Google described the transformer, a network that reads a sentence all at once and lets every word attend to every other. Attention weights say which words matter for which. Training is simple to state: predict the next token, again and again, on more text than a person could read in a thousand lifetimes. What the model learns is a representation shaped by context: the same word means different things after different words, and the model's numbers move accordingly. By 2018 BERT set records across language tasks; in 2019 GPT-2 wrote paragraphs; in 2020 GPT-3, with 175 billion parameters, did tasks it had never been trained for when shown a few examples in its prompt. Prediction turned out to produce behaviour. Whether the model understands anything is a question people still argue about. What it does is measurable: a distribution over what comes next.

One word. Different worlds.

Try the context

“River” gives “bank” a geographical context: the land beside water.

An authored illustration of contextual meaning. The lines are explanatory connections, not attention weights measured from a model; words are shown whole rather than as model tokens.

Artefacts

  • Attention Is All You Need

    12 June 2017 · reconstruction

    The first page of "Attention Is All You Need" (Vaswani and others, 2017), set again in the exhibition's type. A reconstruction, not the arXiv page. Reconstruction; the paper is Vaswani and others, 2017.

    reconstructed · Reconstruction; the paper is Vaswani and others, 2017 · n/a (made for the exhibition) · source

From the archive

  1. 2017Attention is all you need
  2. 2018BERT
  3. 2019GPT-2 and the model too dangerous to release
  4. 2020GPT-3

Claims in this chapter