PreprintCited by 120,404Natural Language Processing TechniquesTopic ModelingSpeech Recognition and Synthesis

Attention Is All You Need

Open access

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.

AI snapshot

Written from the paper’s full text.

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.

Claims the paper makes

12 of 24 cited sources checked · 5 supported · 0 flagged · accuracy not yet measured

  • Premisecitation
    § 6.3 English Constituency Parsing · p. 9

    RNN sequence-to-sequence models have not been able to attain state-of-the-art results in small-data regimes.

    “Furthermore, RNN sequence-to-sequence models have not been able to attain state-of-the-art results in small-data regimes [37].”
    Quote in the paperNot a substantial claim1 of 1 sources checked
    • cites [37] [37] Vinyals & Kaiser, Koo, Petrov, Sutskever, and Hinton. Grammar as a foreign language. In Advances in Neural Information Processing Systems , 2015. - source

      Table 1 (p. 5) shows that the paper’s best sequence-to-sequence result trained on the small WSJ-only dataset scored 90.5 F1, below the listed 91.8 F1 for another WSJ-only parser. But the Introduction (p. 1) says the attention-enhanced model matched the BerkeleyParser on that small dataset. The evidence supports the narrower finding for syntactic parsing, not a general claim about all RNN sequence-to-sequence models in small-data regimes. (LLM, conf=0.84)

      Experimental — accuracy not yet measured
  • Interpretationreasoning
    § 1 Introduction · p. 2

    The fundamental constraint of sequential computation remains despite recent improvements in computational efficiency through factorization tricks and conditional computation.

    “Recent work has achieved significant improvements in computational efficiency through factorization tricks [21] and conditional computation [32], while also improving model performance in case of the latter. The fundamental constraint of sequential computation, however, remains.”
    Quote in the paperSubstantial claim1 of 2 sources checked
    • cites [21] [21] Oleksii Kuchaiev and Boris Ginsburg. Factorization tricks for LSTM networks. arXiv preprint arXiv:1703.10722 , 2017. - source
    • cites [32] [32] Noam Shazeer, Azalia Mirhoseini, Krzysztof Maziarz, Andy Davis, Quoc Le, Geoffrey Hinton, and Jeff Dean. Outrageously large neural networks: The sparsely-gated mixture-of-experts layer. arXiv preprint arXiv:1701.06538 , 2017. - source
  • Premisecitation
    § 1 Introduction · p. 2

    Recurrent neural networks, including long short-term memory and gated recurrent networks, are state-of-the-art approaches in sequence modeling and transduction problems such as language modeling and machine translation.

    “Recurrent neural networks, long short-term memory [13] and gated recurrent [7] neural networks in particular, have been firmly established as state of the art approaches in sequence modeling and transduction problems such as language modeling and machine translation [35, 2, 5].”
    Quote in the paperSubstantial claim2 of 5 sources checked
    • cites [13] [13] Sepp Hochreiter and Jürgen Schmidhuber. Long short-term memory. Neural computation , 9(8):1735-1780, 1997. - source
    • cites [7] [7] Junyoung Chung, Çaglar Gülçehre, Kyunghyun Cho, and Yoshua Bengio. Empirical evaluation of gated recurrent neural networks on sequence modeling. CoRR , abs/1412.3555, 2014. - source
    • cites [35] [35] Ilya Sutskever, Oriol Vinyals, and Quoc VV Le. Sequence to sequence learning with neural networks. In Advances in Neural Information Processing Systems , pages 3104-3112, 2014. - source
    • cites [2] [2] Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. Neural machine translation by jointly learning to align and translate. CoRR , abs/1409.0473, 2014. - source

      Section 5.1 (p. 5) reports that the paper’s gated-RNN translation model performed as well as a conventional phrase-based system for sentences containing only known words. The Conclusion (p. 9) calls its translation performance comparable to existing systems, but says further work is needed to match state-of-the-art systems in all contexts. The paper does not establish the broader claim that RNNs, including LSTMs and gated RNNs, were firmly state-of-the-art across sequence modeling and language modeling. (LLM, conf=0.86)

      Experimental — accuracy not yet measured
    • cites [5] [5] Kyunghyun Cho, Bart van Merrienboer, Caglar Gulcehre, Fethi Bougares, Holger Schwenk, and Yoshua Bengio. Learning phrase representations using rnn encoder-decoder for statistical machine translation. CoRR , abs/1406.1078, 2014. - source
  • Findingown data
    § Abstract · p. 1

    The Transformer generalizes well to other tasks, as shown by applying it successfully to English constituency parsing both with large and limited training data.

    “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.”
    Quote in the paperSubstantial claim
  • Findingreasoning
    § 1 Introduction · p. 2

    The Transformer can reach a new state of the art in translation quality after being trained for as little as twelve hours on eight P100 GPUs.

    “The Transformer allows for significantly more parallelization and can reach a new state of the art in translation quality after being trained for as little as twelve hours on eight P100 GPUs.”
    Quote in the paperSubstantial claim
  • Classified as probably not a substantial claim. 13
  • May combine two claims. 17
  • Probably not a substantial claim: may not pass S3 (load-bearing).

    Premisecitation
    § 2 Background · p. 2

    Self-attention has been used successfully in a variety of tasks including reading comprehension, abstractive summarization, textual entailment and learning task-independent sentence representations.

    “Self-attention has been used successfully in a variety of tasks including reading comprehension, abstractive summarization, textual entailment and learning task-independent sentence representations [4, 27, 28, 22].”
    Quote in the paperNot a substantial claim3 of 4 sources checked
    • cites [4] [4] Jianpeng Cheng, Li Dong, and Mirella Lapata. Long short-term memory-networks for machine reading. arXiv preprint arXiv:1601.06733 , 2016. - source

      Section 5.3 (pp. 8–9) evaluates the paper’s attention-based model on textual entailment and reports strong results, supporting that part of the claim. The Introduction (p. 1) mentions reading comprehension as a machine-reading task, but the paper does not report a reading-comprehension experiment; it also does not show successful use for abstractive summarization or task-independent sentence representations. (LLM, conf=0.87)

      Experimental — accuracy not yet measured
    • cites [27] [27] Ankur Parikh, Oscar Täckström, Dipanjan Das, and Jakob Uszkoreit. A decomposable attention model. In Empirical Methods in Natural Language Processing , 2016. -

      Couldn’t be matched to a paper in Crossref, so it can’t be checked.

    • cites [28] [28] Romain Paulus, Caiming Xiong, and Richard Socher. A deep reinforced model for abstractive summarization. arXiv preprint arXiv:1705.04304 , 2017. - source
    • cites [22] [22] Zhouhan Lin, Minwei Feng, Cicero Nogueira dos Santos, Mo Yu, Bing Xiang, Bowen Zhou, and Yoshua Bengio. A structured self-attentive sentence embedding. arXiv preprint arXiv:1703.03130 , 2017. - source

      The Abstract (p. 1) reports successful self-attentive sentence embeddings on three tasks, including textual entailment. But the Introduction (p. 1) distinguishes generic embeddings from embeddings trained for specific tasks; it does not establish that this model learns task-independent representations. The other tasks in the citing sentence have multiple citations and are not clearly attributed to this paper. (LLM, conf=0.88)

      Experimental — accuracy not yet measured
  • Classified as probably not a substantial claim.

    Premisecitation
    § 1 Introduction · p. 2

    Attention mechanisms have become an integral part of compelling sequence modeling and transduction models in various tasks, allowing modeling of dependencies without regard to their distance in the input or output sequences.

    “Attention mechanisms have become an integral part of compelling sequence modeling and transduction models in various tasks, allowing modeling of dependencies without regard to their distance in the input or output sequences [2, 19].”
    Quote in the paperSubstantial claim2 of 2 sources checked
    • cites [2] [2] Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. Neural machine translation by jointly learning to align and translate. CoRR , abs/1409.0473, 2014. - source

      Section 3.1 (pp. 3–4) describes attention that lets each generated word draw on annotations across the source sentence. Section 6.1 (p. 8) says the model computes a weight for every source word for each translated word. The paper does not establish distance-independent modeling of dependencies in output sequences or the broader claim that attention is integral across various tasks; it cautions that its approach may have limited applicability to other tasks. (LLM, conf=0.86)

      Experimental — accuracy not yet measured
    • cites [19] [19] Yoon Kim, Carl Denton, Luong Hoang, and Alexander M. Rush. Structured attention networks. In International Conference on Learning Representations , 2017. - source

      The Introduction (p. 1) describes attention as standard across several tasks and says it provides random access to the source, supporting the claim about accessing input elements regardless of distance. It does not make the corresponding claim about dependencies in output sequences; it also cautions that standard attention does not directly model structural dependencies among source elements. (LLM, conf=0.86)

      Experimental — accuracy not yet measured
  • May combine two claims.

    Interpretationreasoning
    § 4 Why Self-Attention · p. 6

    Self-attention layers are faster than recurrent layers when the sequence length n is smaller than the representation dimensionality d, which is most often the case with sentence representations used by state-of-the-art models in machine translation.

    “In terms of computational complexity, self-attention layers are faster than recurrent layers when the sequence length n is smaller than the representation dimensionality d , which is most often the case with sentence representations used by state-of-the-art models in machine translations, such as word-piece [38] and byte-pair [31] representations.”
    Quote in the paperSubstantial claim2 of 2 sources checked
    • cites [38] [38] Yonghui Wu, Mike Schuster, Zhifeng Chen, Quoc V Le, Mohammad Norouzi, Wolfgang Macherey, Maxim Krikun, Yuan Cao, Qin Gao, Klaus Macherey, et al. Google's neural machine translation system: Bridging the gap between human and machine translation. arXiv preprint arXiv:1609.08144 , 2016. - source
    • cites [31] [31] Rico Sennrich, Barry Haddow, and Alexandra Birch. Neural machine translation of rare words with subword units. arXiv preprint arXiv:1508.07909 , 2015. - source
  • May combine two claims.

    Interpretationcitation
    § 4 Why Self-Attention · p. 7

    Separable convolutions decrease complexity to O(k·n·d + n·d^2); even with k=n, the complexity of a separable convolution is equal to the combination of a self-attention layer and a point-wise feed-forward layer.

    “Separable convolutions [6], however, decrease the complexity considerably, to O ( k · n · d + n · d 2 ) . Even with k = n , however, the complexity of a separable convolution is equal to the combination of a self-attention layer and a point-wise feed-forward layer, the approach we take in our model.”
    Quote in the paperSubstantial claim1 of 1 sources checked
    • cites [6] [6] Francois Chollet. Xception: Deep learning with depthwise separable convolutions. arXiv preprint arXiv:1610.02357 , 2016. - source

      Section 1.2 describes separable convolution as a channel-wise spatial convolution followed by a pointwise convolution, supporting the identification of the operation. It does not give the stated O(k·n·d + n·d²) bound or compare its complexity with self-attention plus a feed-forward layer, including when k = n. (LLM, conf=0.82)

      Experimental — accuracy not yet measured
  • May combine two claims.

    Findingreasoning
    § 5.4 Regularization · p. 8

    Label smoothing hurts perplexity but improves accuracy and BLEU score.

    “This hurts perplexity, as the model learns to be more unsure, but improves accuracy and BLEU score.”
    Quote in the paperNot a substantial claim
  • May combine two claims.

    Findingown data
    § 4 Why Self-Attention · p. 6

    A self-attention layer connects all positions with a constant number of sequentially executed operations, whereas a recurrent layer requires O(n) sequential operations.

    “As noted in Table 1, a self-attention layer connects all positions with a constant number of sequentially executed operations, whereas a recurrent layer requires O ( n ) sequential operations.”
    Quote in the paperSubstantial claim
  • May combine two claims.

    Findingown data
    § 4 Why Self-Attention · p. 7

    Individual attention heads clearly learn to perform different tasks, and many appear to exhibit behavior related to the syntactic and semantic structure of the sentences.

    “Not only do individual attention heads clearly learn to perform different tasks, many appear to exhibit behavior related to the syntactic and semantic structure of the sentences.”
    Quote in the paperNot a substantial claim
  • May combine two claims.

    Findingown data
    § Abstract · p. 1

    Experiments on two machine translation tasks show the Transformer models to be superior in quality while being more parallelizable and requiring significantly less time to train.

    “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.”
    Quote in the paperSubstantial claim
  • May combine two claims.

    Findingown data
    § Abstract · p. 1

    The Transformer big 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.

    “Our model achieves 28.4 BLEU on the WMT 2014 Englishto-German translation task, improving over the existing best results, including ensembles, by over 2 BLEU.”
    • Also stated in: § 6.1 Machine Translation · p. 8 · boosted
      “On the WMT 2014 English-to-German translation task, the big transformer model (Transformer (big) in Table 2) outperforms the best previously reported models (including ensembles) by more than 2 . 0 BLEU, establishing a new state-of-the-art BLEU score of 28 . 4 .”
    Quote in the paperSubstantial claim
  • May combine two claims.

    Findingown data
    § 6.1 Machine Translation · p. 8

    The Transformer big model achieves a BLEU score of 41.0 on the WMT 2014 English-to-French translation task, outperforming all previously published single models at less than 1/4 the training cost of the previous state-of-the-art model.

    “On the WMT 2014 English-to-French translation task, our big model achieves a BLEU score of 41 . 0 , outperforming all of the previously published single models, at less than 1 / 4 the training cost of the previous state-of-the-art model.”
    Quote in the paperSubstantial claim
  • May combine two claims.

    Findingnone given
    § 7 Conclusion · p. 10

    On both WMT 2014 English-to-German and WMT 2014 English-to-French translation tasks, the Transformer achieves a new state of the art.

    “On both WMT 2014 English-to-German and WMT 2014 English-to-French translation tasks, we achieve a new state of the art.”
    Quote in the paperSubstantial claim
  • Probably not a substantial claim: may not pass S3 (load-bearing).

    Findingown data
    § 6.2 Model Variations · p. 9

    Dropout is very helpful in avoiding over-fitting.

    “We further observe in rows (C) and (D) that, as expected, bigger models are better, and dropout is very helpful in avoiding over-fitting.”
    Quote in the paperNot a substantial claim
  • Probably not a substantial claim: may not pass S3 (load-bearing).

    Findingown data
    § Attention Visualizations Input-Input Layer5 · p. 13

    Many of the attention heads attend to a distant dependency of the verb 'making', completing the phrase 'making...more difficult'.

    “Many of the attention heads attend to a distant dependency of the verb 'making', completing the phrase 'making...more difficult'.”
    Quote in the paperNot a substantial claim
  • Probably not a substantial claim: may not pass S3 (load-bearing).

    Findingown data
    § Attention Visualizations Input-Input Layer5 · p. 14

    The attentions for the word 'its' are very sharp for attention heads 5 and 6.

    “Note that the attentions are very sharp for this word.”
    Quote in the paperNot a substantial claim
  • Probably not a substantial claim: may not pass S3 (load-bearing).

    Findingown data
    § 6.2 Model Variations · p. 9

    Bigger models are better.

    “We further observe in rows (C) and (D) that, as expected, bigger models are better, and dropout is very helpful in avoiding over-fitting.”
    Quote in the paperNot a substantial claim
  • Probably not a substantial claim: may not pass S4 (based).

    Interpretationnone given
    § 3.2.1 Scaled Dot-Product Attention · p. 4

    For large values of d_k, the dot products grow large in magnitude, pushing the softmax function into regions where it has extremely small gradients.

    “We suspect that for large values of d k , the dot products grow large in magnitude, pushing the softmax function into regions where it has extremely small gradients 4 .”
    Quote in the paperNot a substantial claim
    • The authors state this as an assumption: The components of q and k are independent random variables with mean 0 and variance 1.
  • May combine two claims.

    Premisereasoning
    § 1 Introduction · p. 2

    The inherently sequential nature of recurrent models precludes parallelization within training examples, which becomes critical at longer sequence lengths, as memory constraints limit batching across examples.

    “This inherently sequential nature precludes parallelization within training examples, which becomes critical at longer sequence lengths, as memory constraints limit batching across examples.”
    Quote in the paperSubstantial claim
  • Classified as probably not a substantial claim.

    Premisecitation
    § 1 Introduction · p. 2

    In all but a few cases, attention mechanisms are used in conjunction with a recurrent network.

    “In all but a few cases [27], however, such attention mechanisms are used in conjunction with a recurrent network.”
    Quote in the paperSubstantial claim0 of 1 sources checked
    • cites [27] [27] Ankur Parikh, Oscar Täckström, Dipanjan Das, and Jakob Uszkoreit. A decomposable attention model. In Empirical Methods in Natural Language Processing , 2016. -

      Couldn’t be matched to a paper in Crossref, so it can’t be checked.

  • Probably not a substantial claim: may not pass S2 (checkable), S3 (load-bearing).

    Interpretationown data
    § 6.2 Model Variations · p. 9

    Determining compatibility is not easy.

    “This suggests that determining compatibility is not easy and that a more sophisticated compatibility function than dot product may be beneficial.”
    Quote in the paperNot a substantial claim
  • Probably not a substantial claim: may not pass S4 (based). May combine two claims.

    Interpretationnone given
    § 3.2.2 Multi-Head Attention · p. 5

    Multi-head attention allows the model to jointly attend to information from different representation subspaces at different positions, whereas with a single attention head, averaging inhibits this.

    “Multi-head attention allows the model to jointly attend to information from different representation subspaces at different positions. With a single attention head, averaging inhibits this.”
    Quote in the paperNot a substantial claim
  • May combine two claims.

    Premisecitation
    § 2 Background · p. 2

    In convolutional models such as ConvS2S and ByteNet, the number of operations required to relate signals from two arbitrary positions grows linearly (ConvS2S) or logarithmically (ByteNet) with distance, making it more difficult to learn dependencies between distant positions.

    “In these models, the number of operations required to relate signals from two arbitrary input or output positions grows in the distance between positions, linearly for ConvS2S and logarithmically for ByteNet. This makes it more difficult to learn dependencies between distant positions [12].”
    Quote in the paperSubstantial claim0 of 1 sources checked
    • cites [12] [12] Sepp Hochreiter, Yoshua Bengio, Paolo Frasconi, and Jürgen Schmidhuber. Gradient flow in recurrent nets: the difficulty of learning long-term dependencies, 2001. -

      Couldn’t be matched to a paper in Crossref, so it can’t be checked.

  • May combine two claims.

    Premisecitation
    § 3.2.1 Scaled Dot-Product Attention · p. 4

    For small values of d_k, additive and dot-product attention perform similarly, but additive attention outperforms dot-product attention without scaling for larger values of d_k.

    “While for small values of d k the two mechanisms perform similarly, additive attention outperforms dot product attention without scaling for larger values of d k [3].”
    Quote in the paperSubstantial claim0 of 1 sources checked
    • cites [3] [3] Denny Britz, Anna Goldie, Minh-Thang Luong, and Quoc V. Le. Massive exploration of neural machine translation architectures. CoRR , abs/1703.03906, 2017. - source
  • May combine two claims.

    Interpretationnone given
    § 1 Introduction · p. 2

    The Transformer is a model architecture that eschews recurrence and relies entirely on an attention mechanism to draw global dependencies between input and output.

    “In this work we propose the Transformer, a model architecture eschewing recurrence and instead relying entirely on an attention mechanism to draw global dependencies between input and output.”
    • Also stated in: § Abstract · p. 1 · plain
      “We propose a new simple network architecture, the Transformer, based solely on attention mechanisms, dispensing with recurrence and convolutions entirely.”
    Quote in the paperSubstantial claim
  • May combine two claims.

    Interpretationreasoning
    § 2 Background · p. 2

    In the Transformer, the number of operations required to relate signals from two arbitrary input or output positions is reduced to a constant number, albeit at the cost of reduced effective resolution due to averaging attention-weighted positions, which is counteracted with Multi-Head Attention.

    “In the Transformer this is reduced to a constant number of operations, albeit at the cost of reduced effective resolution due to averaging attention-weighted positions, an effect we counteract with Multi-Head Attention as described in section 3.2.”
    Quote in the paperSubstantial claim
  • May combine two claims.

    Interpretationnone given
    § 7 Conclusion · p. 10

    The Transformer is the first sequence transduction model based entirely on attention, replacing the recurrent layers most commonly used in encoder-decoder architectures with multi-headed self-attention.

    “In this work, we presented the Transformer, the first sequence transduction model based entirely on attention, replacing the recurrent layers most commonly used in encoder-decoder architectures with multi-headed self-attention.”
    Quote in the paperSubstantial claim
  • May combine two claims.

    Premisecitation
    § 4 Why Self-Attention · p. 7

    A single convolutional layer with kernel width k < n does not connect all pairs of input and output positions; doing so requires a stack of O(n/k) convolutional layers for contiguous kernels or O(log_k(n)) for dilated convolutions, increasing the length of the longest paths between any two positions.

    “A single convolutional layer with kernel width k &lt; n does not connect all pairs of input and output positions. Doing so requires a stack of O ( n/k ) convolutional layers in the case of contiguous kernels, or O ( log k ( n )) in the case of dilated convolutions [18], increasing the length of the longest paths between any two positions in the network.”
    Quote in the paperSubstantial claim0 of 1 sources checked
    • cites [18] [18] Nal Kalchbrenner, Lasse Espeholt, Karen Simonyan, Aaron van den Oord, Alex Graves, and Koray Kavukcuoglu. Neural machine translation in linear time. arXiv preprint arXiv:1610.10099v2 , 2017. - source
  • Classified as probably not a substantial claim.

    Interpretationnone given
    § 3.5 Positional Encoding · p. 6

    The sinusoidal positional encoding was chosen because it may allow the model to extrapolate to sequence lengths longer than those encountered during training.

    “We chose the sinusoidal version because it may allow the model to extrapolate to sequence lengths longer than the ones encountered during training.”
    Quote in the paperSubstantial claim
  • Probably not a substantial claim: may not pass S3 (load-bearing).

    Interpretationown data
    § Attention Visualizations Input-Input Layer5 · p. 14

    Two attention heads in layer 5 of 6 are apparently involved in anaphora resolution.

    “Two attention heads, also in layer 5 of 6, apparently involved in anaphora resolution.”
    Quote in the paperNot a substantial claim
  • Probably not a substantial claim: may not pass S3 (load-bearing).

    Interpretationown data
    § Attention Visualizations Input-Input Layer5 · p. 15

    Many of the attention heads exhibit behaviour that seems related to the structure of the sentence.

    “Many of the attention heads exhibit behaviour that seems related to the structure of the sentence.”
    Quote in the paperNot a substantial claim
29 of 29
  • The authors state this as an assumption.

    The components of q and k are independent random variables with mean 0 and variance 1.

    “To illustrate why the dot products get large, assume that the components of q and k are independent random variables with mean 0 and variance 1 . Then their dot product, q · k = ∑ d k i =1 q i k i , has mean 0 and variance d k .”
1 of 1

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?

  • ViT introduced patch embedding, dividing images into patches and converting them into tokens for Transformer, enabling effective feature extraction through self-attention.

    “ViT [198] introduced patch embedding, dividing images into small patches and converting them into tokens for input into the Transformer, enabling effective feature extraction through self-attention.”

    From Multimodal fusion and vision–language models: A survey for robot vision (2026) · cites this paper as [198]

    The Introduction (p. 2) says this paper introduces the Transformer for sequence transduction, not ViT or image patch embedding. The Conclusion (p. 10) describes applying the Transformer to images as future work, contrary to attributing an image-patch method to this paper. (LLM, conf=0.88)

    Checked by a reasoning model — may be wrong.

    Experimental — accuracy not yet measured
  • ViT demonstrated Transformer architectures could be directly applied to image classification, achieving performance surpassing CNNs on large-scale datasets.

    “Vision Transformer (ViT) [198] demonstrated that Transformer architectures could be directly applied to image classification tasks, achieving performance surpassing CNNs on large-scale datasets.”

    From Multimodal fusion and vision–language models: A survey for robot vision (2026) · cites this paper as [198]

    The Abstract (p. 1) reports Transformer results for machine translation and English constituency parsing, not image classification. The Conclusion (p. 10) describes applying the model to images as a future plan, contrary to the claim that this paper demonstrated such an application or showed it surpassing CNNs on image datasets. (LLM, conf=0.89)

    Checked by a reasoning model — may be wrong.

    Experimental — accuracy not yet measured
  • Transformers must be trained on large datasets and then fine-tuned with a different dataset to achieve maximum accuracy.

    “In order to achieve maximum accuracy, Transformers must be trained on large datasets and then fine-tuned with a different dataset.”

    From Neutron-Induced Error Rate of Vision Transformer Models on GPUs (2023) · cites this paper as [10]

    Section 6.3 (pp. 9–10) reports a Transformer trained only on 40,000 WSJ sentences that performed well, contradicting the claim that a large dataset is required. Section 5.1 (p. 7) describes training translation models on large datasets, but the paper does not say that subsequent fine-tuning on a different dataset is necessary for maximum accuracy. (LLM, conf=0.88)

    Checked by a reasoning model — may be wrong.

    Experimental — accuracy not yet measured
  • Existing language models are generally implemented with Transformers, which require memory and compute that increases quadratically in sequence length.

    “Existing language models are generally implemented with Transformers (Vaswani et al., 2017), which require memory and compute that increases quadratically in sequence length.”

    From Lost in the Middle: How Language Models Use Long Contexts (2024) · cites this paper as Vaswani et al., 2017

    The Abstract (p. 1) introduces the Transformer, and Table 1 (p. 5) gives full self-attention O(n²d) computational complexity, supporting the compute claim. The copy does not state that its memory use scales quadratically, and the Introduction (p. 2) describes recurrent networks—not Transformers—as established approaches to language modeling at the time. (LLM, conf=0.86)

    Experimental — accuracy not yet measured
  • The basic architecture that LLMs are based on is the Transformer model.

    “The basic architecture that LLMs are based on is the Transformer model, introduced by Vaswani et al. ( 2017 ).”

    From A review of LLMs and their applications in the architecture, engineering and construction industry (2025) · cites this paper as Vaswani et al. 2017

    The Introduction (p. 2) says the authors propose the Transformer, supporting the attribution that Vaswani et al. introduced it. The paper does not address the later claim that the Transformer is the basic architecture underlying LLMs. (LLM, conf=0.85)

    Experimental — accuracy not yet measured

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.

  • English-to-French BLEU score differs between text and table

    Major

    Section 6.1 reports 41.0 BLEU for the big English-to-French model, while Table 2 reports 41.8 for that model.

  • Parsing comparison overlooks a higher-scoring model

    Minor

    The paper says the Transformer exceeds every previously reported parsing model except [8], but Table 4 also lists Luong et al. [23] at 93.0 F1, above the Transformer's best listed score of 92.7.

2 of 2

Cites

Flagged first, then by citations

Cited by

Sorted by citations

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 · 2016: 3 · 2013: 2 · 2012: 1
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.

Claims read by deepseek-v4.1-flash under definition version 3 (extract-v3) on 2026-10-10.

Classified by jev-1.13-20260917 (gold-guideline-v0.2) on 2026-10-10.

Cited sources are checked by gpt-6-sol.

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