You are reading immutable version 38. The current guide may be newer.

Study the paper

Attention Is All You Need

Lessons, visuals, quizzes, flashcards, and resources—organized in teaching order.

13 activities

Lesson

At a glance

Why attention replaces recurrence

The Transformer replaces recurrent sequence processing with attention-driven computation.

Lesson

Why replace recurrence?

Why attention replaces recurrence

The paper introduces an architecture that replaces recurrent sequence processing with attention-driven computation.

Lesson

Encoder-decoder organization

Encoder-decoder architecture

The model is organized around an encoder and a decoder, the two major structural parts named in the source excerpt.

Lesson

Scaled dot-product attention

Scaled dot-product attention

Queries compare with keys, and the resulting weights combine values.

Lesson

Scaled dot-product attention

Scaled dot-product attention

mathrm Attention (Q,K,V)= mathrm softmax ( frac QK^ T sqrt d k )V

Visual

Illustrative teaching scenarios: attention scaling (not paper-reported)

Scaled dot-product attention

Compare fixed illustrative teaching scenarios; these are not paper-reported results.

Visual

Illustrative teaching scenarios: attention concentration (not paper-reported)

Scaled dot-product attention

Trace fixed illustrative teaching scenarios; these are not paper-reported results.

Visual

How attention redistributes weight

Scaled dot-product attention

Illustrative attention weights computed from a fixed teaching example; these are not paper-reported values.

Visual

Explore attention score scaling

Scaled dot-product attention

Move across fixed illustrative scenarios to see how score scaling changes concentration.

Visual

Scaled dot-product attention: step by step

Scaled dot-product attention

Follow the existing bounded walkthrough in its intended sequence.

Lesson

Scope of the supplied evidence

Evidence and limitations

The supplied passages ground the recurrence-replacement claim and the encoder-decoder structure. Claims beyond that scope require additional source evidence.

Lesson

Evidence available in the supplied excerpt

Evidence and limitations

The supplied excerpt identifies the introduction section but contains no numerical translation result. The missing value is preserved rather than inferred.

Quiz

Test your understanding

Integrated assessment

10 questions grounded in this paper section.