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.

Milestone 2 of 68 on the LLM history timeline, 2016 to 2026. Each dot is one milestone.

Key numbers

BLEU, WMT 2014 English to German, reported by the authors
28.4arxiv.org
BLEU, WMT 2014 English to French, single model, reported by the authors
41.8arxiv.org
Training time for the English to French model, eight GPUs
3.5 daysarxiv.org

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?
It was first submitted to arXiv on 12 June 2017.
What is the Transformer?
It is a neural network architecture that uses attention instead of recurrence or convolution to process sequences. Most current large language models use a variant of it.
Who wrote the Transformer paper?
Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Lukasz Kaiser and Illia Polosukhin.

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.

On the timeline

Related milestones

Terms and labs

Sources

Papers and announcements we read for this page.

  1. Vaswani et al., Attention Is All You Need (arXiv)
  2. Hugging Face model card, openai-gpt (GPT-1)
  3. Devlin et al., BERT (arXiv)
  4. Raffel et al., T5 (arXiv)

Sign in to vote as verified

Signed-in votes count once per account and show as verified. You can still vote without an account.

We use your email only to run your account. No marketing, no sharing, no passwords. Delete your account any time. Privacy

Delete your account?

This removes your account, your email and every vote you made while signed in. It cannot be undone.