Papers that built AI · 4 min read · 3 sources

The paper that gave GPT its T

Eight researchers at Google replaced word-by-word reading with "attention", and the design they called the Transformer now runs almost every chatbot.

The file

Who
Ashish Vaswani and seven co-authors
Where
Google, Mountain View, California, United States
When
2017
Shelf
Papers that built AI
Read time
4 min read
Sources
3 sources

Part 1

The file in one minute

  1. 01·Reading all at once

    Instead of reading one word at a time, the Transformer looks at all the words together and works out how much each matters to every other.

  2. 02·Much faster to train

    Handling words together let the work be split across many chips, and it trained in 3.5 days on eight graphics cards.

  3. 03·The T in GPT

    GPT stands for Generative Pre-trained Transformer, and most of today's major chatbots are built on the same basic design.

  4. 04·What it means for AI

    A chatbot weighs everything in its context window, which has a size limit, so give it what it needs and say what matters.

Part 2

Timeline

  1. Before 2017

    The best language software reads one word at a time, which is slow to train.

  2. 12 June 2017

    Eight researchers, most of them at Google, post the paper Attention Is All You Need.

  3. 31 August 2017

    Google Research describes the Transformer in a blog post.

  4. December 2017

    The paper is presented at the NIPS conference.

  5. 2018

    OpenAI releases its first GPT model, built on the Transformer design.

Part 3

The paper

By 2017 the best language software, such as translation systems, read a sentence one word at a time, carrying a running summary forward. That was slow to train, because each step had to wait for the one before. It also made it hard to link words far apart in a long text.

In June 2017 eight researchers, most of them at Google, posted a paper called "Attention Is All You Need". It proposed a design they named the Transformer. Instead of reading in order, it looks at all the words at once. For every word it works out how much attention to pay to every other word, so it can link "it" to the right noun, or tell which meaning of "bank" fits the sentence.

Because all the words are handled together, the work can be split across many chips at the same time. The paper reported better translation scores than earlier systems, after training for 3.5 days on eight graphics cards, far less than the previous best methods needed. It was presented at the NIPS conference in December 2017.

Part 4

Why it mattered

The Transformer made it practical to train much larger language models on much more text. In 2018 OpenAI released its first GPT model. GPT stands for Generative Pre-trained Transformer. Most of today's major chatbots are built on the same basic design.

For a chatbot user, this explains how a chatbot reads your message. It does not read top to bottom like a person. It looks across everything in its view at once, your question, the document you pasted and the earlier chat, and weighs which parts matter for each word it writes. That view, the context window, has a size limit. What is outside it cannot be weighed at all, and in a very long text some details can get less attention than you would like.

The idea behind this file

L006The context window: AI's short-term memory

Watch the lesson

Part 5

What to take from it

  1. Put everything the chatbot needs into the chat: the document, the background and the question.
  2. State clearly which part matters most, for example "focus on section 3".
  3. For very long documents, ask about one section at a time, or ask it to quote the passage it relied on.
  4. In a long conversation, restate key facts and decisions instead of assuming it still weighs early messages.

Part 6

Would you have caught it?

You paste a 60-page contract into a chatbot and ask "is there anything risky here?" The answer is generic and misses a penalty clause on page 47. What is the best next step?

You paste a 60-page contract into a chatbot and ask "is there anything risky here?" The answer is generic and misses a penalty clause on page 47. What is the best next step?

Part 7

Sources

Every fact on this page comes from these. Dates are when each was published.

  1. 01Attention Is All You Need · arXiv · 2017-06-12
  2. 02Attention is All you Need · Advances in Neural Information Processing Systems 30 (NIPS 2017) · 2017-12
  3. 03Transformer: A Novel Neural Network Architecture for Language Understanding · Google Research · 2017-08-31

Papers that built AI

More from this shelf 5