Topic · Mechanisms
Positional encoding
Everything on this site about positional encoding, 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
-
Paper · read first: Query, Key, Value — Dot-Product Attention from Scratch
-
Read · read first: Attention Before Transformers — Score, Squash, Multiply
The figures these pages use
Pulled from the pages above. Move a slider and the figure recomputes, exactly as on its page.
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