Original: Attention Is All You Need · Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Łukasz Kaiser, Illia Polosukhin · Paper · 15 pages · 2017 Research: 9 sources · Read in full
In one line
Eight Google researchers showed that a computer understands language better, and learns far faster, if every word in a sentence looks at every other word at the same time instead of reading one word after another.
Who wrote it, and when
- Eight researchers at Google Brain and Google Research (one, Aidan Gomez, was an intern from the University of Toronto). The paper lists all eight as equal contributors, in random order.
- It was posted online on 12 June 2017 and presented at NIPS 2017 (now called NeurIPS), the biggest AI research conference.
- At the time, Google’s problem was translation: turning English into German or French quickly and well.
- The title is a play on the Beatles’ “All You Need Is Love” (according to Wikipedia). The paper’s own footnote credits Jakob Uszkoreit with proposing the core idea: drop the old step-by-step approach and use only “self-attention”.
The big ideas
- Stop reading in order. Earlier language AI read a sentence one word at a time, carrying a running summary forward, like someone reading a long sentence aloud and trying to remember the start by the end. The authors point out that this is slow, because each step has to wait for the one before, and that it struggles to link words far apart.
- Let every word look at every other word (“attention”). For each word, the model asks: which other words in this sentence matter most for understanding me? In “The animal didn’t cross the road because it was tired”, attention lets “it” link straight to “animal”. The paper’s appendix shows real examples, such as the word “its” in a sentence attending sharply to the noun it refers to.
- Look in several ways at once (“multi-head attention”). The model runs eight attention “heads” side by side. Each can learn to track something different, like grammar, meaning, or which word a pronoun refers to. It’s like eight editors each reading the same page for different problems. The authors show that one head alone did worse.
- Tell it where each word sits (“positional encoding”). If everything is looked at at once, the model loses track of word order (“dog bites man” versus “man bites dog”). So the authors stamp each word with a mathematical tag for its position.
- Built for parallel hardware. Because no step waits for the one before, the work splits across many graphics chips (GPUs) at once. The authors report their best model trained in 3.5 days on eight chips. They say that’s “a small fraction” of what rival systems needed, and it beat the best translation scores of the day.
- It works beyond translation. With little tuning, the same design did well at a different grammar task (sentence parsing). That was an early sign that it was a general tool, not a translation trick.
Why it mattered then
- Before: the leading systems were “recurrent” networks that read in order. Attention already existed, introduced in a well-known 2014 paper by Bahdanau, Cho and Bengio, but as an add-on to those step-by-step readers.
- The bet: keep attention and throw away the step-by-step reader entirely. The authors say theirs was the first translation model built on attention alone.
- After: the design spread fast. Google’s BERT (2018) literally stands for “Bidirectional Encoder Representations from Transformers”. By October 2019, Google said BERT would help Search understand about 1 in 10 English searches in the U.S. OpenAI’s GPT-3 paper (2020) describes GPT-3 as a “transformer language model” and cites this paper. The University of Toronto, reporting Nature’s ranking, describes the Transformer as underpinning the model “powering ChatGPT”.
- Beyond words: the authors said they planned to try images, audio and video. In 2020, Google researchers showed a “pure transformer” could classify images well by treating an image as a grid of patches, “16x16 words”.
- Scale of influence: Nature’s 2025 analysis ranked it the 7th most-cited paper of the 21st century (as reported by the University of Toronto). Wikipedia puts it at more than 250,000 citations.
Key terms, simply explained
- Model / neural network: a program that learns patterns from examples instead of following hand-written rules.
- Attention: a way for each word to decide how much weight to give every other word when working out its meaning.
- Self-attention: attention among the words of the same sentence, as opposed to between a sentence and its translation.
- Transformer: the name the authors gave their design, built from stacked layers of attention plus simple processing steps.
- Recurrent network (RNN / LSTM): the older approach that reads one word at a time and carries a memory forward.
- Encoder / decoder: the half that reads the input and the half that writes the output. In translation, one reads English and the other writes German.
- GPU: a graphics chip. It’s good at doing many small calculations at once, which is exactly what transformers need.
- Parameters: the internal settings a model adjusts while learning. The paper’s biggest model had about 213 million. Later models built on the design have billions or more.
- BLEU score: a common automatic score for how close a machine translation is to human ones. Higher is better.
What has held up, and what hasn’t
- ✅ Held up: the design itself. It became the standard for language AI and then spread to images. The 2023 Mamba paper, which proposes an alternative, still describes today’s big AI models as “almost universally based on the Transformer architecture”.
- ✅ Held up: speed from parallel work. The ability to train on many chips at once is what made much larger models practical. GPT-3’s paper describes transformer language models growing from 100 million parameters to billions within a few years.
- ⚠️ Aged: the cost of long texts. Because every word looks at every other word, the work grows with the square of the length. Double the text and the attention work roughly quadruples. The paper itself flagged this and suggested limiting attention to nearby words as future work. At a 2024 panel, co-author Aidan Gomez said very long context “becomes expensive and unscalable”. A whole field of alternatives (Mamba and others) exists mainly because of this cost.
- ⚠️ Aged: the title slightly oversells. Even in the paper, attention isn’t literally all you need. Every layer also has ordinary processing steps, the model needs position tags, and it needs a lot of training data and chips.
- ❓ Still debated: can we see why it decides things? The authors hoped attention would make models “more interpretable”, meaning easier to understand, and showed heads that seemed to track grammar. How well attention patterns really explain what a large model does is still an open research question.
Critics and counterpoints
- Some of the authors themselves. At Nvidia’s GTC conference in March 2024, seven of the eight authors appeared on a panel hosted by Nvidia CEO Jensen Huang. Gomez said “the world needs something better than Transformers.” Llion Jones added that a replacement has to be “clearly, obviously better” before people will switch.
- Llion Jones, who named the Transformer, told the TED AI conference in October 2025 that he is “absolutely sick” of them. His point isn’t that they’re bad. It’s that their success and the money behind them have narrowed AI research, so fewer people look for the next idea. He said the original team “had the freedom” to explore, which today’s pressure makes rare. He now runs research at Sakana AI, a startup he co-founded.
- Rival designs: researchers behind “state space models” such as Mamba (2023) argue they can handle long sequences more cheaply. They also admit that earlier alternatives “have not performed as well as attention” on language. So far, none has replaced the Transformer at the top.
Why it matters now
- This week’s model launches. The latest Digital Dhaba digest (27 Sep 2026) led with Claude Opus 5.5 and GPT-6 Sol/Luna launching an hour apart, with both labs cutting prices and crediting efficiency work. Labs rarely publish full architecture details, so we can’t confirm exactly how each model is built. But the whole modern chatbot industry traces back to this paper, and much of the “efficiency work” is about making attention cheaper.
- The chip and data-centre boom. Transformers run best on huge numbers of GPUs working in parallel, which is the design choice this paper made. That links it directly to stories like Nscale raising $3.36B to build AI data centres.
- Open models trained cheaply. The same digest covers Xiaomi’s MiMo v2.6, reported as a 1-trillion-parameter open model trained for $3M. Compare that with the paper’s biggest model, about 213 million parameters. That’s roughly 5,000 times larger.
- A lesson about open research. Google published the idea openly. All eight authors later left Google (per Wikipedia), and several founded companies built on transformers (Cohere, Character.AI, Essential AI, Sakana AI, Inceptive), while Łukasz Kaiser joined OpenAI. One published paper seeded many of Google’s future competitors.
Sources
- Attention Is All You Need — Vaswani et al., arXiv / NIPS 2017 (v7, Aug 2023). The full paper, read in full. The ideas, results, author contributions and the square-of-length cost all come from here.
- Neural Machine Translation by Jointly Learning to Align and Translate — Bahdanau, Cho, Bengio, arXiv, Sep 2014. The earlier attention idea the paper built on.
- Understanding searches better than ever before — Pandu Nayak, Google, 25 Oct 2019. BERT in Search, and the “1 in 10 searches” figure.
- BERT: Pre-training of Deep Bidirectional Transformers — Devlin et al. (Google), arXiv, Oct 2018. Early major follow-on built on transformers.
- Language Models are Few-Shot Learners (GPT-3) — Brown et al. (OpenAI), arXiv, May 2020. Describes GPT-3 as a “transformer language model”, cites this paper, and describes growth in model size.
- An Image is Worth 16x16 Words — Dosovitskiy et al. (Google), arXiv, Oct 2020. Transformers spreading to images.
- Mamba: Linear-Time Sequence Modeling with Selective State Spaces — Gu & Dao, arXiv, Dec 2023. The main rival approach, and its description of the Transformer’s dominance and cost.
- ‘Attention is All You Need’ creators look beyond Transformers at Nvidia GTC — Sharon Goldman, VentureBeat, 20 Mar 2024. The authors’ own criticisms, and their companies at the time.
- Sakana AI’s CTO says he’s ‘absolutely sick’ of transformers — Michael Nuñez, VentureBeat, 23 Oct 2025. Llion Jones on how the field has narrowed.
Also used for smaller facts: University of Toronto on Nature’s most-cited list (Jul 2025; the 7th-place ranking) and Wikipedia (the title’s Beatles origin and the 250,000+ citation count; not independently checked).