---
title: "Attention Is All You Need": The 2017 Paper Behind Modern Chatbots | Large Programs
description: The 2017 Google paper that introduced the transformer. What problem it tackled, what attention does, why it trains faster, who wrote it and why the title is a joke.
canonical: https://www.largeprograms.com/attention-is-all-you-need-paper/
---

[Home](/) / [History of AI](/category/history-of-ai/)

History of AI

# "Attention Is All You Need": The 2017 Paper Behind Modern Chatbots

The 2017 Google paper that introduced the transformer. What problem it tackled, what attention does, why it trains faster, who wrote it and why the title is a joke.

27 November 2026 · 3 min read

In 2017, eight scientists and engineers at Google published a short research paper with a catchy title: "Attention Is All You Need". It introduced the **transformer**, the design that now sits underneath most large language models.

![A row of seven words processed one after another, and the same words with curved lines linking each word to others, showing attention.](/img/attention-vs-sequence.svg)

*Top: older designs read one word after another. Bottom: attention lets every word look at every other. The line thicknesses are made up to show the idea.*

## The problem it was solving

At the time, researchers were working on machine translation. The standard tools were recurrent networks, which read a sentence **one word at a time**, passing a summary along. That has two problems. Information from early words can fade by the end of a long sentence. And because each step waits for the last, training cannot be spread across many processors at once.

The mechanism of attention had been proposed in 2014 by Bahdanau and colleagues, as an add-on that let a model focus on the most relevant parts of the input. The 2017 paper's bold step was to drop the step-by-step reading entirely and use attention as the main tool.

## What attention does

In self-attention, every word in the context is compared with every other word, and the model decides how much each one should influence the others. In the sentence "The cat sat because it was tired", a trained model may link "it" more strongly to "cat" than to "sat". (That example is ours, for teaching, not from the paper.)

Wikipedia explains that the paper described this using queries, keys and values: for each word, a **query** is matched against the **keys** of the other words to decide how much of each **value** to mix in. It also describes **multi-head attention**, where several attention operations run in parallel, each able to capture a different kind of relationship. For the full picture see [the transformer explained simply](/the-transformer-explained-simply/).

## Why it mattered: speed

Wikipedia says a key reason the architecture won out is that it can be parallelised. Because the operations do not have to be done one by one, they can be run at the same time on a GPU, which allows faster training and bigger models.

## What the authors tested

Early experiments included English-to-German translation, generating Wikipedia articles and parsing sentences. Those results convinced the team that the transformer was a general-purpose model, not just a translation tool. The authors foresaw uses in question answering and what is now known as multimodal generative AI.

## Who wrote it

The authors were Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan Gomez, Lukasz Kaiser and Illia Polosukhin. All eight were listed as equal contributors, and the paper states the order was randomised. According to Wikipedia, after publication each of the authors left Google to join other companies or found startups.

## The name and the title

The title is a reference to the Beatles song "All You Need Is Love". The name "Transformer" was chosen because Jakob Uszkoreit liked how the word sounded. An early design document was titled "Transformers: Iterative Self-Attention and Processing for Various Tasks" and included an illustration of six characters from the Transformers franchise, and the team called itself Team Transformer.

## What the paper did not do

It did not create chatbots by itself. A transformer still has to be trained on huge amounts of text, then adapted. See [how LLMs learn](/how-do-llms-learn/) and [the timeline from GPT-1 to ChatGPT](/llm-timeline-gpt-1-to-chatgpt/).

## Sources

- [https://en.wikipedia.org/wiki/Attention_Is_All_You_Need](https://en.wikipedia.org/wiki/Attention_Is_All_You_Need)
- [https://arxiv.org/abs/1706.03762](https://arxiv.org/abs/1706.03762)

[Read this page as Markdown (.md)](/attention-is-all-you-need-paper.md)

## Keep reading

[![](/img/hero/art-ada-lovelace-and-the-first-program.svg)](/ada-lovelace-and-the-first-program/)

History of AI

### [Ada Lovelace: The First Computer Programmer?](/ada-lovelace-and-the-first-program/)

In the 1840s Ada Lovelace described how a machine could follow instructions and even speculated about music.

[![](/img/hero/art-ai-winters-explained.svg)](/ai-winters-explained/)

History of AI

### [What Were the AI Winters?](/ai-winters-explained/)

AI had periods of hype followed by disappointment and lower funding. Learn why they happened.

[![](/img/hero/art-alan-turing-and-the-imitation-game.svg)](/alan-turing-and-the-imitation-game/)

History of AI

### [Alan Turing and the Imitation Game](/alan-turing-and-the-imitation-game/)

In 1950 Alan Turing asked, "Can machines think?" and suggested a test. Here is the story for young readers.
