{
  "id": "multi-head-latent-attention",
  "code": "PTL-0271",
  "term": "Multi-Head Latent Attention",
  "aliases": [
    "MLA",
    "latent attention"
  ],
  "category": "foundations",
  "definition": "Multi-head latent attention (MLA) is an attention mechanism that compresses each token's keys and values into a low-dimensional latent vector and caches only that vector, greatly shrinking the key-value cache needed during generation.",
  "description": "DeepSeek-AI introduced MLA in the DeepSeek-V2 model in 2024. A down-projection maps each token to a compressed latent from which keys and values are reconstructed by up-projections, and a separate, decoupled rotary position embedding carries position information. The authors reported that MLA achieves better performance than standard multi-head attention, and that DeepSeek-V2 reduces the KV cache by 93.3% compared with DeepSeek 67B. Grouped-query attention shrinks the cache by sharing key-value heads; MLA instead compresses keys and values jointly.",
  "example": null,
  "broader": [
    "transformer"
  ],
  "narrower": [],
  "related": [
    "kv-cache",
    "grouped-query-attention",
    "rotary-position-embedding",
    "mixture-of-experts",
    "pagedattention"
  ],
  "introduced": 2024,
  "added": "2026-11-27",
  "sources": [
    {
      "title": "DeepSeek-V2: A Strong, Economical, and Efficient Mixture-of-Experts Language Model",
      "authors": "DeepSeek-AI",
      "year": 2024,
      "url": "https://arxiv.org/abs/2405.04434"
    }
  ],
  "url": "https://protologue.com/t/multi-head-latent-attention/",
  "citation": "Protologue. (2026). Multi-Head Latent Attention. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0271). https://protologue.com/t/multi-head-latent-attention/"
}