Attention Is All You Need
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.
Evidence graph: 3 refs, 3 links.
Utility signals: depth 100/100, grounding 85/100, status high.
Implementation
Historical official implementation (not recommended for new builds)
Only a historical official implementation is available
Use with caution for new projects; verify against current tooling and maintained community alternatives.
tensorflow/tensor2tensor · 17,479 stars · Last push Jun 2, 2023 · Archived
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- 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.
- 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
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.
Hardware requirements
- Expect multi-day setup/compute for meaningful reproduction based on current guidance.
Framework baselines
- Hugging Face Transformers training guide
Modern transformer training baseline.
- PyTorch nn.Transformer docs
Reference transformer building block implementation.
Repositories and ecosystem
Closest related implementations
These are not paper-verified. Use them as reference points when no direct implementation is available.
- jadore801120/attention-is-all-you-need-pytorch Adjacent · Confidence: Low · 9,825 stars
Matches contextual method/domain keyword: transformer
- hyunwoongko/transformer Adjacent · Confidence: Low · 4,682 stars
Matches contextual method/domain keyword: transformer
- Kyubyong/transformer Adjacent · Confidence: Low · 4,475 stars
Matches contextual method/domain keyword: transformer
No additional verified repositories beyond the primary recommendation.
These repositories had low-confidence matching signals and are hidden by default.
- abhaskumarsinha/MinimalGPT
Confidence: Low · 23 stars
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
Open this paper in HFEPX to review benchmark signals, evaluation modes, and human-feedback protocol context.
Open in HFEPXJump to Paper2Code search queries derived from this paper's research context.
Data includes links from Papers with Code ( CC-BY-SA-4.0 ).