AIAny

Attention Is All You Need

The 2017 paper that replaced recurrence with pure self-attention, making sequence models fully parallelizable — and, almost as a side effect, laying the architectural foundation for nearly every large language model that followed, from BERT to GPT.

Introduction

It is hard to overstate how much this eight-page paper rearranged AI. The title was almost a provocation — that attention alone, with no recurrence or convolution, was enough — yet within a few years every frontier language model was a descendant of the architecture it introduced. The deeper point was never translation quality; it was that dropping sequential computation made models trivially parallelizable, which is exactly what later let them scale to billions of parameters.

Key Findings
  • Attention replaces recurrence. The Transformer drops RNNs and CNNs entirely, using self-attention to relate any two positions in constant path length — so long-range dependencies stop being the bottleneck.
  • Parallelism unlocks scale. Without step-by-step recurrence, training parallelizes across the whole sequence; the model reached 28.4 BLEU on WMT'14 English-German at a fraction of prior training cost — the property that later made large-scale pretraining feasible.
  • Multi-head attention and positional encoding. Multiple heads capture different relationships at once, while positional encodings reinject the order that recurrence used to provide for free.
  • It generalizes. The same architecture transferred beyond translation to parsing and, eventually, to essentially all of language and multimodal modeling.
Why It Still Matters / When to Skip

Great fit if you want to read the single most load-bearing paper behind modern LLMs, or to understand attention, multi-head, and positional encoding from the source. Look elsewhere if you want the modern training recipe — scaling laws, RLHF, and decoder-only designs all came later; this is the architectural origin, not a current playbook.

Information

  • Websitearxiv.org
  • OrganizationsGoogle Brain, Google Research, University of Toronto
  • AuthorsAshish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Lukasz Kaiser, Illia Polosukhin
  • Published date2017/06/12

More Items

Transfers RL-induced policy shifts from a smaller 'weak' teacher to a stronger target by using the teacher's post-/pre-RL log-ratio as a dense implicit reward applied on the student's on-policy states. Enables reuse of RL supervision without running RL rollouts on the target, improving sample/time efficiency.

Introduces KronQ, a post-training quantization framework that incorporates gradient covariance via a Kronecker‑factored Hessian to guide input/output weight rotations and sensitivity-driven mixed-precision allocation. Demonstrates stable 2-bit weight-only quantization on LLaMA-3-70B (7.93 PPL).

Explores unsupervised visual pretraining on visually rich documents to improve language-model intelligence; shows visual-pretrained models outperform text-only counterparts on the same corpora. Key aspects: direct use of images/layouts (no OCR-only pipeline), scalable across backbones and benchmarks.