concepts → Mechanism
Attention
also called self-attention · multi-head attention
let each token weigh every other token, instead of only the last one
Where it sits
The prism has six jobs across and eight layers down. Its primary cell is represent × L1, with a noted second cell. Hatched cells cannot exist — a GPU does not learn, an institution does not infer.
represent×L5 — at serving time attention is what grows the KV cache
What must come first — and what it unlocks
Left to right is reading order, derived from the prerequisite_of edges. Nothing here is hand-ordered: the diagram is the graph.
Before it: Word embedding · Dot product
Unlocks: Transformer
What kind of thing it is — and what it is made of
It is part of: Transformer.
It is made of: KV cache, Query, key, value, Positional encoding, Multi-head latent attention.
Where to read it
The chapter that introduces it, and any chapter that uses it again.
Where it comes from
Every connection
All 12 edges touching this node, grouped by relation family — the sections above are highlights from this list. Colours match the relation families inthe atlas.
This page is a projection of one node in src/data/concepts.ts. It has no prose file of its own — 521 declared edges produce all 340 of these pages. Edit an edge and both endpoints change.