Skip to main content
Back to Courses Library
Courses/Phase 5/arXiv / Research Papers
Primary: Phase 5Research PaperAdvancedFree Learning Material
Original Research Authors

Attention Is All You Need

The landmark 2017 research paper by Vaswani et al. that introduced the Transformer architecture based entirely on self-attention mechanisms, replacing recurrence and convolutions.

Published at NeurIPS 2017 by Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Łukasz Kaiser, and Illia Polosukhin, 'Attention Is All You Need' is the foundational paper of modern AI. Reading the original 15-page paper after implementing attention in Phase 5 reveals how simple and clean the core equations (`Attention(Q,K,V) = softmax(QK^T / sqrt(d_k))V`), multi-head projections, and complexity tradeoffs truly are.

Resource Tracking

Course status is tracked independently from roadmap topic checkboxes so you can mark external courses without altering your topic mastery percentage.

Suggested Learning Position

Phase 5 Foundational Research Paper (Modules 5.1–5.3)

Language:English
Access & Link Verification

100% free open-access PDF and HTML paper on arXiv (arXiv:1706.03762).

Status: Verified (2026-11-09)

What You Will Learn from This Resource

  • Understand why scaled dot-product attention divides by `sqrt(d_k)` to prevent softmax saturation.
  • Compare the per-layer computational complexity, sequential operations, and maximum path length of Self-Attention vs. RNNs.
  • Analyze how multi-head attention attends to information from different representation subspaces.

Recommended Prerequisites

Review these foundations before starting so you get the most out of this material:

  • Matrix multiplication, softmax, and neural network layers (Phases 1, 3 & 4).

Topics & Keywords

Research PaperarXivAttention Is All You NeedTransformersSelf-Attention
Curriculum Integration

How This Resource Fits Into Your AI & LLM Roadmap

Open Interactive Roadmap

Phase-Specific Study Recommendations (1)

Phase 5 · Resource 5.5Advanced Reading

Attention Is All You Need

In Phase 5: Transformers From Scratch

Read Sections 1–4 of the paper during Modules 5.1–5.3 after you have coded scaled dot-product attention so every equation feels familiar.

Continue Exploring
Browse Full Library
Phase 5Technical Tutorial
Harvard NLP
AdvancedFree Learning Material

The Annotated Transformer

Line-by-line PyTorch implementation and mathematical walkthrough of the original 'Attention Is All You Need' Transformer paper.

Harvard NLPAnnotated TransformerSelf-AttentionMulti-Head AttentionPyTorch
Your Status:
Phases 3, 4, 5Recommended StartVideo Series
Andrej Karpathy
IntermediateFree Learning Material

Neural Networks: Zero to Hero

A code-first introduction to neural networks covering automatic differentiation, backpropagation, language models, and GPT implementations.

Used across:Phase 3 (3.1)Phase 4 (4.3)Phase 5 (5.1)
Andrej KarpathyMicrogradMakemoreBackpropagationAutograd
Your Status:
Phases 5, 6, 8Recommended StartUniversity Course Materials
Stanford University
AdvancedFree Learning Material

CS336 — Language Modeling from Scratch

Graduate-level Stanford course walking through every aspect of building language models from scratch: Transformer architecture, tokenization, pretraining data pipelines, GPU systems, parallelism, and scaling laws.

Used across:Phase 5 (5.2)Phase 6 (6.1)Phase 8 (8.1)
StanfordCS336Language ModelingPretrainingScaling Laws
Your Status: