Topic · Mechanisms
Self-attention
Everything on this site about self-attention, in the order to read it: a page is listed after the pages it builds on. The figures below are the ones those pages use to explain it; each is live: move a slider and it recomputes.
In reading order
-
Read · read first: Understanding Attention Modules: CBAM and BAM — A Quick Read
-
Read
-
Paper
-
Read
The figures these pages use
Pulled from the pages above. Move a slider and the figure recomputes, exactly as on its page.
From Attention Before Transformers — Score, Squash, Multiply › 3. Squeeze-and-Excitation — Attention over Channels
From Attention Before Transformers — Score, Squash, Multiply › 4. Non-local Neural Networks — Pairwise Attention over Positions
From Query, Key, Value — Dot-Product Attention from Scratch › 2. One Token, Step by Step
From Query, Key, Value — Dot-Product Attention from Scratch › 4. Why Divide by √d_k?
From Query, Key, Value — Dot-Product Attention from Scratch › 5. Multi-Head Attention
From Attention Is All You Need — The Transformer, Block by Block › 2. The Encoder Layer
From Attention Is All You Need — The Transformer, Block by Block › 4. Embeddings and Positional Encoding
From Attention Meets Pixels — Windows, Axes and the First Fully Attentional Networks › 1. Why n² Kills Images
From Attention Meets Pixels — Windows, Axes and the First Fully Attentional Networks › 4. Axes: Attention One Axis at a Time