PaperTranslation and the Transformer
Attention Is All You Need (2017): the Transformer paper
Event date
On 12 June 2017 Ashish Vaswani and seven co-authors posted a paper introducing the Transformer, a sequence model that uses attention and no recurrence or convolution. It set new translation scores while training far faster than earlier systems. It is on this timeline because later language models, from GPT-1 and BERT onwards, are built from its parts.
Key numbers
What the paper proposed
Before 2017 the best translation models read a sentence one word at a time through recurrent layers, sometimes with attention added on top. The authors proposed dropping the recurrence entirely. Their Transformer relies on attention alone to relate every word in a sentence to every other word.
The paper was submitted to arXiv on 12 June 2017 by Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Lukasz Kaiser and Illia Polosukhin. It was written about machine translation, but its title states a general claim about the mechanism. The abstract reports results on two WMT 2014 translation tasks and on English constituency parsing.
Sources: arxiv.org
How it worked
The base model has six encoder layers and six decoder layers. Inside each, self attention lets every position look at all the others at once, with several attention heads working in parallel so the model can track different relationships. Because no step waits for the previous word, training spreads well across many chips.
The paper describes a base model of about 65 million parameters and a larger model of about 213 million. Word order, which recurrent layers get for free, is supplied by adding position information to each word's representation. The base model trained for 100,000 steps, about 12 hours on eight P100 GPUs, and the large model for 300,000 steps, about 3.5 days. The optimiser was Adam with a learning rate that rises over 4,000 warmup steps and then decays, plus label smoothing of 0.1. The base model scored 27.3 and 38.1 BLEU on the two translation tasks.
Sources: arxiv.org
What it showed and what came next
The authors reported 28.4 BLEU on the WMT 2014 English to German task, more than 2 BLEU above the best earlier results, including ensembles. On English to French a single model reached 41.8 BLEU after 3.5 days of training on eight GPUs, which the authors described as a small fraction of the training cost of the best models in the literature.
They also reported that the Transformer worked well on English constituency parsing, with large and with limited training data, which hinted that it was not only a translation design.
In June 2018 OpenAI trained a stack of Transformer decoder layers as GPT-1, and in October 2018 Google released BERT, built from Transformer encoder layers. Google's T5 in 2019 returned to the full encoder and decoder. From that point the Transformer became the default architecture for language models, and later scaling work was done on it.
Sources: arxiv.org, huggingface.co, arxiv.org, arxiv.org
Why it mattered
- It replaced step by step recurrent processing with attention that trains in parallel, which made much larger models practical.
- It reached better translation scores at a lower reported training cost than the systems it was compared with.
- Its encoder only, decoder only and encoder and decoder variants became the three main families of language model.
- It is the architecture behind the models that the rankings on this site compare.
Questions
When was Attention Is All You Need published?
What is the Transformer?
Who wrote the Transformer paper?
About this page
Part of our LLM history timeline. The event happened on 12 June 2017; we wrote this page on 20 November 2026 from the original papers and announcements listed below. Lab-reported results are labelled as such. Read our editorial policy. Found an error? Tell us and we will correct it with a dated note.