Papers / Text
Transformer (2017)
Attention Is All You Need
A translation model built only from attention, and the architecture behind every large language model since.
Why it matters
Without recurrence, a whole sequence can be processed in parallel, so Transformers make full use of GPUs and keep improving as they get bigger. BERT, GPT and nearly every language, vision and speech model that followed use this architecture with few changes.
- Year
- 2017
- Authors
- Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Łukasz Kaiser, Illia Polosukhin
- Venue
- NeurIPS 2017
- Data
- WMT14 English–German
The idea
Drop recurrence entirely. Each layer lets every position attend to every other position through several attention heads in parallel, followed by a small feed-forward network, with residual connections and position encodings to keep word order.
The result
28.4 BLEU on WMT 2014 English–German, more than 2 BLEU above the previous best including ensembles, after 3.5 days of training on eight GPUs.
The data
Builds on
- Attention for translation (2014): The paper that introduced attention, letting a translator look back at the source sentence as it writes.
- ResNet (2015): Skip connections that let networks grow from about 20 layers to more than 150.
Led to
- BERT (2018): Pretrain a Transformer to fill in masked words, then fine-tune it for almost any language task.
- GPT-2 (2019): A language model trained only on web text that summarizes, translates and answers questions without being trained to.
- T5 (2019): Every language task written as text in, text out, and a careful study of which pretraining choices actually matter.
- Conformer (2020): Self-attention for the whole utterance plus convolution for the fine detail, in one block that became the standard speech encoder.
- DETR (2020): Framed object detection as direct set prediction with a Transformer, dropping anchors and non-maximum suppression.
- Informer (2020): A Transformer made cheap enough to forecast hundreds of steps ahead, and the paper that introduced the ETT dataset.
- RAG (2020): Let a text generator look things up in Wikipedia before it answers, and give the idea its name.
- ViT (2020): Cut an image into 16×16 patches, treat them as words, and a plain Transformer matches the best convolutional networks.
- wav2vec 2.0 (2020): Learn speech from raw unlabeled audio, then recognize words with as little as ten minutes of transcripts.
- CLIP (2021): Learn images from 400 million captions found on the web, then classify anything you can name.
- FT-Transformer (2021): Tested deep tabular models under one tuning protocol and found that a plain Transformer over per-feature embeddings beat the rest.
- PatchTST (2022): Cut each series into patches and treat them like words, and Transformers forecast better than the linear models that had just beaten them.
- TabPFN (2022): A transformer trained only on synthetic tables that classifies a new small dataset in one forward pass, with no training or tuning.
- Whisper (2022): 680,000 hours of imperfect transcripts from the web make a speech recognizer that works almost anywhere, out of the box.
