Skip to content

Linear attention

The efficiency lineage · 2020

Reassociate the same computation - (QK)V becomes Q(KV) - and the past compresses into a state that never grows. Scrub the tokens below: each one folds into S as a tile, and S never gets bigger.

What it fixedReplace the growing cache with one fixed-size state S - memory flat at any context.
What it still costsAssociations interfere and exact retrieval is gone. For years this made it a losing trade.

Same three symbols, two ways to bracket them - watch the wall and the box arrive at the exact same answer.

"The One-Way Door", part A - the mechanism · 111s, from the film series.

Worth having first: The memory wall

Unlocks: Delta rule · Sliding window with sinks

Episode 2 · The Linear Bet