The efficiency lineage
The memory wall sets the problem: the KV cache grows with every token of context, and eventually memory - not compute - is what stops you. Every page in this track is someone’s answer to that one problem, and they split into a few genuinely different strategies.
Shrink what you keep. MQA shares one key/value across all heads; GQA walks that back to groups of heads for more quality; MLA compresses what’s kept into one small latent. All three still grow with context - they just grow slower.
Don’t keep it at all. Linear attention replaces the growing cache with a fixed-size state. That state can’t do exact retrieval, so the rest of the branch is a sequence of repairs: the delta rule overwrites by error instead of blindly accumulating, Gated DeltaNet adds a forgetting gate, KDA makes that gate per-channel instead of uniform.
Or just change the mask. Linearizing papers compared against a window that drops the first tokens. Keep those tokens (attention sinks) and sliding-window attention — zero extra training — matches or beats the conversion on short benches. The leftover: a needle still has to land in the window. This is a sibling of the linear branch, not a step toward the hybrid.
Solve a different problem. FlashAttention and sparse attention don’t touch memory at all - they make the same growing cache cheaper or faster to compute over. Useful, but orthogonal to everything above.
The two memory-side branches don’t stay parallel forever - they converge. SWA is a sibling of Linear, not part of that merge.
- MQA - one K/V shared by all heads; the cache shrinks by the head count.
- GQA - groups of heads share K/V; most of the saving, most of the quality back.
- MLA - K and V compressed into one small latent; a large cache cut at matched quality.
- FlashAttention - exact attention, computed without ever materialising the N x N matrix.
- Sparse attention - attend only to the top-k relevant tokens.
- Linear attention - the cache becomes one fixed-size state that never grows.
- Sliding window with sinks - a training-free mask that matches or beats linear retrofits; the needle still has to land in the window.
- Delta rule - overwrite by error: recall what the state says, write only the difference.
- Gated DeltaNet - a learned gate lets the state forget.
- KDA - a gate per channel; every row of the state gets its own lifetime.
- The hybrid - KDA and MLA composed, three-to-one - the architecture the film is about.
Next: Inside the blocks, where the other half of a transformer block - the MLP - does its own work.