KV sharing and compressed attention

Transformer components · component · 2026 · text

What it is

The 2026 frontier of cache reduction: reuse KV tensors across layers, budget attention per layer, compress via convolution.

When to use it

Long-context reasoning and agent workloads where cache size and memory traffic dominate cost.

Caveats

Any sharing or compression of keys and values can lose information, and the quality cost shows up most on long-context recall. Each scheme needs its own support in the inference engine.

Key ideas

  • Gemma 4: KV sharing across layers plus per-layer embeddings
  • DeepSeek V4: mHC plus compressed attention
  • ZAYA1: compressed convolutional attention; Laguna XS.2: layer-wise attention budgeting

Related architectures

Original paper

Search for “Recent Developments in LLM Architectures: KV Sharing, mHC, and Compressed Attention”

Lessons that cover it

Browse all 198 architectures

The architecture landscape, in one place.

Two things get called “ML architecture”: the classical statistical model families, and the neural network wirings. Both are here, tagged by what they are and what data they eat.

Start from your problem

Architectures

0 shortlisted