---
title: Attention Is All You Need (2017): the Transformer paper
url: https://llmsranked.com/history/attention-is-all-you-need/
updated: 2026-11-20
---

Paper· [Translation and the Transformer](https://llmsranked.com/history/#era-transformer)

# Attention Is All You Need (2017): the Transformer paper

Event date 12 June 2017

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.

- [Google](https://llmsranked.com/providers/google/)
- [LLMs Ranked editors](https://llmsranked.com/editorial-policy/)
- Published 20 Nov 2026
- 3 min read
- 4 sources

2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026

2017

On this page

- [Key numbers](#kn-h)
- [What the paper proposed](#what-the-paper-proposed)
- [How it worked](#how-it-worked)
- [What it showed and what came next](#what-it-showed-and-what-came-next)
- [Why it mattered](#wm-h)
- [Questions](#hf-h)
- [On the timeline](#tl-h)
- [Sources](#hsrc-h)

## Key numbers

**BLEU, WMT 2014 English to German, reported by the authors**
28.4[arxiv.org](https://arxiv.org/abs/1706.03762)

**BLEU, WMT 2014 English to French, single model, reported by the authors**
41.8[arxiv.org](https://arxiv.org/abs/1706.03762)

**Training time for the English to French model, eight GPUs**
3.5 days[arxiv.org](https://arxiv.org/abs/1706.03762)

## 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](https://arxiv.org/abs/1706.03762)

## 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](https://arxiv.org/abs/1706.03762)

## 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](https://arxiv.org/abs/1706.03762), [huggingface.co](https://huggingface.co/openai-community/openai-gpt), [arxiv.org](https://arxiv.org/abs/1810.04805), [arxiv.org](https://arxiv.org/abs/1910.10683)

## 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](https://llmsranked.com/history/). 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](https://llmsranked.com/editorial-policy/). Found an error? [Tell us](https://llmsranked.com/contact/) and we will correct it with a dated note.

## On the timeline

[Earlier26 Sep 2016
Google Neural Machine Translation (2016): LSTMs at scale](https://llmsranked.com/history/google-neural-machine-translation/)[Later18 Jan 2018
ULMFiT (2018): transfer learning for text classification](https://llmsranked.com/history/ulmfit/)

### Related milestones

- [2016 · 09Google Neural Machine Translation (2016): LSTMs at scale](https://llmsranked.com/history/google-neural-machine-translation/)
- [2018 · 06GPT-1 (2018): generative pretraining with a Transformer](https://llmsranked.com/history/gpt-1/)
- [2018 · 10BERT (2018): bidirectional Transformers for language](https://llmsranked.com/history/bert/)
- [2019 · 10T5 (2019): a text to text Transformer and the C4 dataset](https://llmsranked.com/history/t5/)

## Terms and labs

- [Transformer](https://llmsranked.com/glossary/#transformer)
- [Attention](https://llmsranked.com/glossary/#attention)
- [Parameters](https://llmsranked.com/glossary/#parameters)
- [Google models](https://llmsranked.com/providers/google/)

## Sources

Papers and announcements we read for this page.

- [Vaswani et al., Attention Is All You Need (arXiv)](https://arxiv.org/abs/1706.03762)
- [Hugging Face model card, openai-gpt (GPT-1)](https://huggingface.co/openai-community/openai-gpt)
- [Devlin et al., BERT (arXiv)](https://arxiv.org/abs/1810.04805)
- [Raffel et al., T5 (arXiv)](https://arxiv.org/abs/1910.10683)
