Skip to main content

Multi-head Latent Attention

Multi-head Latent Attention

  • Hardware & deployment
  • Stage 5 · Running It
  • refs checked 2026-11-18
What problem it solves

Compress the KV cache that dominates long-context memory into a low-rank latent vector, then expand it at inference.

What it is
Each head’s Key/Value is first projected into a low-rank latent space; only that latent is cached. At inference it is projected back to per-head Key/Value; the saving is memory, not compute. Proposed in DeepSeek-V2 and carried forward in V3/V4 with further tuning.
Why it matters

The first wall in long context is not compute but KV cache. MLA makes 1M context feasible on one or a few GPUs and changes the cache layout in inference stacks; without it, the cost gap between similar-size models is hard to explain.

Sources
  • DeepSeek-V2 §2 (paper) ↗
  • DeepSeek-V3 technical report (paper) ↗
Use this term in a task

Don’t stop at the definition: use the task handbook for the order and checks, or filter three tool candidates for the job at hand.

Task handbooks → · Filter three candidates →