Replaces the attention matrix with a fixed-size recurrent state. Cost stays constant per token, no KV cache growth.
Introduced inJun 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attention
Linear attention keeps a compact running state that is updated once per token (here with the gated delta rule: the state is selectively decayed and rewritten), so generation cost does not grow with context length and there is no per-token KV cache. Qwen3.5-style hybrids use linear attention in most layers and keep periodic full-attention layers for precise long-range recall. The best of both worlds for long contexts.
Share of new models that have included linear attention over time.
Open any of these on hfviewer to find this block in the interactive architecture graph.
Browse all 204 models with this in the catalog →
hfviewer renders the full architecture of 2,300+ Hugging Face models as interactive graphs. Hover any block to see what it does, with this model’s real numbers.
Browse all model graphs →