Hybrid Attention: Why Full Attention Is Now a Luxury Layer
Attention is the transformer operation that lets every token look back at every earlier token. It is also the reason long contexts get expensive: standard attention costs grow with the square of the context length, and the KV cache ā the running store of key and value vectors the model keeps per cached token so it never recomputes them ā grows linearly with every message in the window. Double the context, quadruple the attention cost.
For five years the assumed fix was better bookkeeping: cache more cleverly, evict smarter. The architecture crowd went one level deeper. The wave of 2025-2026 open-weight releases ā Qwen3-Next, Kimi Linear, Ant Group's Ling 2.5, NVIDIA's Nemotron line, IBM's Granite 4 ā mostly stopped paying full attention at all. Most layers now run linear attention, and a few full-attention layers remain, sprinkled in by design.
The idea in one paragraph
Linear attention (Katharopoulos et al., 2020) rewires attention so the model keeps a fixed-size running state instead of a growing catalog of past tokens. Mathematically you reorder the products so the cost per new token is constant ā O(n) total instead of O(n²), and a memory footprint per layer that never grows no matter how long the conversation runs. State-space models like Mamba arrived at the same place from the recurrent side; Gated DeltaNet and Kimi Delta Attention (KDA) refine it with a gating and "delta rule" update, which is a principled way to decide what to overwrite in the fixed state each step.
The trade is exactness. A fixed state is a summary. A linear-attention layer can know the gist of 100,000 tokens and still be unable to quote token 4,117. Full-attention layers keep the full list, so they keep exact retrieval ā the needle-in-a-haystack capability that pure-linear stacks measurably lose.
The recipes
So the winning designs are hybrids, and they have converged on a ratio:
- Qwen3-Next (Sept 2025): 3 Gated DeltaNet layers per 1 gated full-attention layer, a pattern carried into Qwen3.5.
- Kimi Linear (Moonshot AI, arXiv:2510.26692): 20 Kimi Delta Attention layers paired with 7 MLA (multi-head latent attention) layers in each block, aimed squarely at agentic, decode-heavy workloads and test-time scaling.
- Ling 2.5 (Ant Group): a 7:1 Lightning-attention-to-MLA mix at trillion-parameter scale.
- Nemotron 3 and Granite 4: Mamba-Transformer hybrids on the same 3:1-ish split.
Across these, roughly 75% of layers run cheap and the KV-cache savings are large ā teams report reductions in the 85% ballpark ā which is what makes long agent loops affordable on a single GPU instead of a datacenter rack. For how decode-time memory actually behaves, see our KV cache brief under /blog/.
The plot twist worth respecting
In 2026 MiniMax ā whose M1 model was a poster child for linear attention ā shipped its M2 successor with linear attention removed, going back to full attention. The team's public reason: linear attention is tricky in production. That is not a contradiction of the trend; it is a reminder that the fixed state fails silently. An architecture that degrades on exact recollection, on certain retrieval-heavy agent traces, or under certain serving stacks can still benchmark beautifully and ship anyway. Our own rule applies here: measure on your own workload, keep a human in the loop before any "it's fine now" becomes an assumption in code, and keep the publish button human.
Why ops people should care
- Cost moves from quadratic to linear. Long-context agentic runs ā the kind where an agent holds an entire repo in context ā become a memory-budget question, not a compute-cliff question.
- Serving stacks change. Linear layers at serving time look like recurrence, which batching and paged-KV infrastructure are still catching up to. MiniMax's walk-back is the cautionary tale.
- Benchmarks blur. If exact retrieval matters to your product, hybrid-ratio choices are an ops variable, not a research curiosity. Different mixes, different failure profiles.
MeltingFace is an LLM Ops research consultancy, and Presence, the HITL living lab this draft goes through, is where we test these choices under human review before anything is called a fact. If you want help deciding whether a hybrid-attention model is the right thing to put in front of your agents, that conversation lives at /product/#how-it-works.
_Pillar: llm-ops-hitl. Nothing here authorizes spend._
MeltingFace