CoChat

Attention Is All You Need

Open access

The DOI matches its DataCite record; 47 of the 47 references it cites were found in a registry or an index; 16 of the 24 sources its claims cite were checked for support.

Abstract

The dominant sequence transduction models are based on complex recurrent or convolutional neural networks in an encoder-decoder configuration. The best performing models also connect the encoder and decoder through an attention mechanism. We propose a new simple network architecture, the Transformer, based solely on attention mechanisms, dispensing with recurrence and convolutions entirely. Experiments on two machine translation tasks show these models to be superior in quality while being more parallelizable and requiring significantly less time to train. Our model achieves 28.4 BLEU on the WMT 2014 English-to-German translation task, improving over the existing best results, including ensembles by over 2 BLEU. On the WMT 2014 English-to-French translation task, our model establishes a new single-model state-of-the-art BLEU score of 41.8 after training for 3.5 days on eight GPUs, a small fraction of the training costs of the best models from the literature. We show that the Transformer generalizes well to other tasks by applying it successfully to English constituency parsing both with large and limited training data.

Overview

CoChat Summary

TL;DR

The paper introduces the Transformer, a sequence transduction architecture based solely on attention mechanisms, dispensing with recurrence and convolutions entirely. It reports state-of-the-art BLEU on WMT 2014 English-German and English-French translation and shows generalization to English constituency parsing.

Key findings

  • On WMT 2014 English-to-German, Transformer (big) achieves 28.4 BLEU, improving over the previous best results including ensembles by over 2 BLEU; the base model reaches 27.3 BLEU.
  • On WMT 2014 English-to-French, Transformer (big) establishes a single-model state-of-the-art BLEU score of 41.8 after training for 3.5 days on eight GPUs; the base model reaches 38.1 BLEU.
  • On English constituency parsing, a 4-layer Transformer achieves 91.3 F1 WSJ-only and 92.7 F1 semi-supervised, outperforming BerkeleyParser in the WSJ-only setting but not Recurrent Neural Network Grammar (93.3 F1).
  • Ablations show single-head attention is 0.9 BLEU worse than the best setting, quality drops with too many heads, and learned positional embeddings produce nearly identical results to sinusoidal encodings.

Methods

  • Architecture: encoder-decoder stacks of N = 6 identical layers; multi-head self-attention with h = 8 heads, d_model = 512, d_ff = 2048; scaled dot-product attention; sinusoidal positional encodings; residual connections and layer normalization.
  • Data and training: WMT 2014 English-German with about 4.5 million sentence pairs and shared byte-pair vocabulary of about 37,000 tokens; WMT 2014 English-French with 36M sentences and 32,000 word-piece vocabulary; batches of approximately 25,000 source and 25,000 target tokens; Adam optimizer, warmup_steps = 4000, dropout 0.1 for base, label smoothing 0.1; 8 NVIDIA P100 GPUs, base models 100,000 steps/12 hours, big models 300,000 steps/3.5 days.
  • Evaluation: BLEU on newstest2014 for translation, ablation on newstest2013 development set, and F1 on Section 23 of WSJ for constituency parsing.

Limitations

  • The paper has no dedicated limitations section; it states future work on restricted/local attention for very long sequences and extending the Transformer to non-text modalities such as images, audio, and video.
  • Evident from the text: self-attention has per-layer complexity O(n²·d), making very long sequences costly; experiments focus on translation and English constituency parsing, and parsing does not surpass RNN Grammar (92.7 vs 93.3 F1).
  • Evident from the text: Section 6.1 reports the English-to-French big model BLEU as 41.0, while the abstract and Table 2 report 41.8, an internal inconsistency.

Model-written summary. Check it against the paper before relying on it.

Integrity signals

Registry

DataCite · 10.48550/arxiv.1706.03762

Cites

47 of 47 references verified0 citation errors · 0 not checkable

Statistics

Nothing to recompute.

Verification

Claims the paper makes

9 Valid · 0 Not valid · 5 Not checked · 39 Own results and interpretations

19 more claims

Create a free account to see all 53 claims and to verify the 4 references still open.

See all claims — free account
  • Probably not a substantial claim. 13
  • It may state two separate claims as one. 17

Create a free account to see these claims.

Claims other papers make about this one

Each is checked against this paper’s own text: does it say what the citing paper says it does?

136 more claims about this paper

Create a free account to see every claim other papers make about this one.

See all claims — free account

Self-check

Percentages, sums and reported differences re-computed from the paper’s own numbers.

Each contradiction between two passages listed here was confirmed by an independent check.

2 of 2

Citations

Cites

Show all 47 references

Cited by

Items 401–500 of 13,645

Metadata

Authors
Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A. N., Kaiser, L., & Polosukhin, I.
Affiliations
  • Google (United States) (US)
  • University of Southern California (US)
Venue
arXiv
Publisher
arXiv
Published
2017
Volume
30
Pages
5998-6008
ISSN
2331-8422 (ISSN-L)
OpenAlex
W2626778328
Cited by
120,404
References
41
Citations by year
2026: 7126 · 2025: 23805 · 2024: 25770 · 2023: 22486 · 2022: 14249 · 2021: 13521 · 2020: 8343 · 2019: 4089 · 2018: 945 · 2017: 52
Type
posted content
Language
en
Open access
Locations
  • arXiv (Cornell University) (submittedVersion)
  • arXiv (Cornell University)
Funders
  • National Natural Science Foundation of China (12274396, 2021ZD0303204, 2021ZD0302200)
  • Grantová Agentura České Republiky (CZ.02.1.01/0.0, CZ.02.1.01)
  • Chinese Academy of Sciences (YSBR‐068)
  • China Postdoctoral Science Foundation (2021M703110, 2022T150631)
  • Horizon 2020 Framework Programme (952215, 857306)
  • Fundação para a Ciência e a Tecnologia (50014, H2020, 10.54499, UID/50014/2025)
  • European Regional Development Fund (CZ.02.1.01/0.0/0.0/15 003/0000466, 02.1.01/0.0/0.0, H2020, CZ.02, CZ.02.1.01, CZ.02.1.01/0.0/0.0)
  • H2020 European Research Council (649043, 714034)
Topics
  • Physical Sciences › Computer Science › Artificial Intelligence › Natural Language Processing Techniques
  • Physical Sciences › Computer Science › Artificial Intelligence › Topic Modeling
  • Physical Sciences › Computer Science › Artificial Intelligence › Speech Recognition and Synthesis
Keywords
transformer models, attention mechanism, machine translation, English-German translation, constituency parsing, parallel training, encoder-decoder architecture

About these checks

Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.

The claim verdicts this report counts are experimental: their accuracy is not yet measured.

A language model drew the claims from the paper on 2026-10-10, under version 3 of the claim definition (model deepseek-v4.1-flash, prompt extract-v3).

A second model labelled each claim on 2026-10-10 (model jev-1.13-20260917, definition revision gold-guideline-v0.2).

Cited sources are checked with a language model’s help (gpt-6-sol and qwen3.8-omni-flash).

Statistics and arithmetic are recomputed, not judged.

Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.

What counts as a claim ›How we measure confidence ›How we check this ›

Are you an author, or do you see a problem with this page? Request a review

Data sources

Bibliographic data: Semantic Scholar, OpenAlex, Crossref.

Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).

Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.