Large Programs

Home / 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.

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.

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

The paper tests the transformer on two translation tasks from the WMT 2014 benchmark. It reports 28.4 BLEU on English-to-German, which the authors say beat the best earlier results, including ensembles of several models, by more than 2 BLEU. BLEU is a score that compares a machine translation with translations written by people, and higher is better. On English-to-French it reports 41.8 BLEU for a single model after 3.5 days of training on eight GPUs, which the authors describe as a small fraction of the training cost of the best earlier models.

The team also tried the model on parsing the grammatical structure of English sentences. They report that it worked well there too, both with plenty of training data and with little, and take this as a sign that it generalises beyond translation. In the conclusion they say they plan to extend it to inputs other than text, such as images, audio and video.

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 and the timeline from GPT-1 to ChatGPT.

Sources