The Transformer: the paper all modern AI is built on
On 12 June 2017 eight researchers posted the paper "Attention Is All You Need". The new architecture, the Transformer, was designed for machine translation but became the foundation for GPT, BERT and essentially every large language model.
Retrospective written in 2026 by the AInu editors with the help of AI, based on the sources below.
Few scientific papers have had so much impact so quickly as the one uploaded to arXiv on 12 June 2017. The title was playful, “Attention Is All You Need”, and the topic seemed narrow: how to translate text between English and German. But the architecture it described, the Transformer, is today the engine of ChatGPT, Claude, Gemini and most other AI systems that handle language, images and sound (arXiv).
The problem: reading one word at a time
By 2017 machine translation was one of deep learning’s big success stories. Since 2014 researchers had shown that neural networks could read a sentence in one language and write it in another, so-called sequence-to-sequence learning (Sutskever et al.). In autumn 2016 Google started using the technique in Google Translate (Google Research).
These systems were built on recurrent neural networks, RNNs, often of the LSTM type. An RNN reads text one word at a time and carries along a kind of summary of what came before. That has two drawbacks. It is slow to train, because each step must wait for the previous one and the work cannot be split across many processors at once. And it struggles to keep track of relationships between words that are far apart.
Part of the solution already existed: attention. In 2014 Dzmitry Bahdanau, Kyunghyun Cho and Yoshua Bengio let a translation network look back at the relevant parts of the source sentence as it wrote each new word (arXiv). But attention was an add-on to the step-by-step RNN machinery.
The idea: attention only
The researchers, most of them from Google Brain and Google Research, were Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan Gomez, Łukasz Kaiser and Illia Polosukhin. They removed the RNN entirely. What remained was attention.
In a Transformer every word in a sentence is compared with every other word at the same time. For each pair the network calculates how relevant one word is to the other, then builds a new representation of the word as a weighted average of all the others. This is called self-attention. Google explained it with an example: in a sentence about crossing a river, the word “bank” can look directly at “river” in a single step and work out that it means a riverbank, not a financial institution (Google Research).
A few more ingredients made it work:
- Multiple attention heads (multi-head attention) let the network look for different kinds of relationships in parallel, for example grammar in one head and meaning in another.
- Positional encoding adds information about word order, since self-attention by itself does not know which word comes first.
- Many layers are stacked on top of each other, with shortcuts between layers of the kind introduced by ResNet in 2015.
The crucial point was that everything could be computed in parallel. GPUs and Google’s TPUs are built to do huge numbers of matrix calculations at once, and the Transformer fitted that hardware perfectly.
The results
On the standard WMT 2014 test the Transformer reached 28.4 BLEU for English to German, more than two points better than the previous best results, including ensembles of several models. For English to French it reached 41.8 BLEU, a record for a single model. The biggest model trained in 3.5 days on eight GPUs, a fraction of what competing systems needed (arXiv).
In its blog post in August 2017 Google showed another example. In two English sentences the word “it” refers to different things, an animal and a street. In French the pronoun has to take the right gender. The Transformer translated both correctly, while Google Translate at the time did not.
From translation to everything
What made the Transformer historic was not the translation records but how general it turned out to be.
A year later, in June 2018, OpenAI used the decoder half of the Transformer to train GPT-1 to predict the next word in thousands of books (GitHub). In October 2018 Google presented BERT, built on the encoder half, which set records on eleven language tasks (arXiv). Read more in The language model breakthrough of 2018.
Then came GPT-2, GPT-3 and the discovery that Transformers kept getting better the bigger they were made and the more data they were given, see GPT-3 and the scaling laws. In 2020 Google researchers showed that the same architecture works for images if you cut them into small patches (arXiv), and Transformers have since been used for audio, video, protein structures and robot control. AlphaFold 2 relies on attention mechanisms, and ChatGPT is a Transformer.
Why Google did not take the prize
One irony of the story is that Google published the paper openly, and that others were first to build the most successful products on it. That was part of the research culture of the time: the big labs published their ideas, and ideas spread fast. The Transformer would hardly have had the same impact if it had been kept secret.
What we know now
Seen from 2026, the Transformer is the closest thing the AI field has to a common foundation. Challengers have appeared, but most leading models still rest on the idea from 2017: let every part of the input look at every other part, and do it in parallel at large scale. The combination of an architecture that scales and hardware that can drive it explains much of what has happened since.
Sources
- arXiv: Attention Is All You Need
- Google Research: Transformer: A Novel Neural Network Architecture for Language Understanding
- arXiv: Neural Machine Translation by Jointly Learning to Align and Translate
- arXiv: Sequence to Sequence Learning with Neural Networks
- Google Research: A Neural Network for Machine Translation, at Production Scale
- GitHub: openai/finetune-transformer-lm
- arXiv: BERT
- arXiv: An Image is Worth 16x16 Words