Skip to content
OpenTrain AIFor AI Companies

Attention Is All You Need

Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones +3 morePublished Jun 12, 2017
arXiv PDF
Researcher verdict
Starting point
Use as implementation starting point
Benchmark evidence
Thin evidence
Verify before relying
Time to first repro
A few days
Plan setup time
Risk flags
1
Review before use

Abstract

Domain fit: AI-core

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.

Results and benchmarks

The dominant sequence transduction models are based on complex recurrent or convolutional neural networks in an encoder-decoder configuration.
Task Dataset Metric Value Source
Machine translation WSJ F1 23 paper-derived
Machine translation ByteNet BLEU 23.75 paper-derived

Audit each benchmark finding before selecting an implementation path. Evidence refs map to the disclosure below.

Implementation

Historical official implementation (not recommended for new builds)

Why this implementation
Confidence: low

jadore801120/attention-is-all-you-need-pytorch is the closest maintained adjacent implementation (Matches contextual method/domain keyword: transformer). It is not paper-verified; validate algorithm and evaluation setup against the paper before trusting reported metrics. Community adoption signal: 9825 GitHub stars.

Open tensorflow/tensor2tensor
Reproduction risks
  • Adjacent implementations are not paper-verified
  • Recommended repository is adjacent and not paper-verified.
  • Adjacent implementation match confidence is low.
  • No direct maintained implementation is currently verified.
  • Only historical official repository was found: tensorflow/tensor2tensor.
  • No maintained paper-verified implementation met reliability thresholds.

Compare implementation paths

Compare maintenance quality, reproducibility coverage, and evidence confidence before choosing a reproduction baseline.

tensorflow/tensor2tensor
historical official
Maintenance
Archived
Confidence
High
Reproducibility
Limited
Stars
17,479
Last push
Jun 2, 2023 (1249d)

Official implementation from Papers with Code · Repository link is mentioned in the paper metadata

  • Repository archived
  • No push in 12+ months
  • No CI pipeline detected
Maintenance
Stale
Confidence
Low
Reproducibility
Moderate
Stars
23
Last push
Apr 3, 2024 (943d)

Repository appears stale (>24 months since last push)

  • No push in 12+ months
  • No CI pipeline detected
  • No Docker setup

Reproduction readiness

Time to first repro: days
Last checked: Nov 1, 2026

Major work

Repository archived, fork required

  • tensorflow/tensor2tensor has been archived. Fork the repository before using it.
  • No further updates or bug fixes will be made by the original authors.
Open tensorflow/tensor2tensor

Hardware requirements

  • Expect multi-day setup/compute for meaningful reproduction based on current guidance.

Framework baselines

Repositories and ecosystem

Closest related implementations

These are not paper-verified. Use them as reference points when no direct implementation is available.

No additional verified repositories beyond the primary recommendation.

Hugging Face artifacts

No trustworthy direct or curated related Hugging Face artifacts were found yet. Use targeted searches to quickly locate candidate models, datasets, and demos.

Tip: start with models, then check datasets and spaces if you need evaluation data or demos.

Research context

Tasks

Machine translation

Methods

Transformer

Domains

Natural Language Processing

Evaluation and human feedback data

Open this paper in HFEPX to review benchmark signals, evaluation modes, and human-feedback protocol context.

Open in HFEPX
Explore similar papers

Jump to Paper2Code search queries derived from this paper's research context.

Data includes links from Papers with Code ( CC-BY-SA-4.0 ).