Multi-Head Latent Attention
Also called MLA, latent attention.
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.
Sources
- DeepSeek-AI (2024). DeepSeek-V2: A Strong, Economical, and Efficient Mixture-of-Experts Language Model.
Cite this entry
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/
BibTeX
@misc{protologue_multi_head_latent_attention,
title = {Multi-Head Latent Attention},
author = {{Protologue}},
year = {2026},
howpublished = {Protologue: A Taxonomy of Prompting and LLM Techniques, v1.9.1},
note = {Entry PTL-0271},
url = {https://protologue.com/t/multi-head-latent-attention/}
}New terms, as they're coined
One email a week with the newest techniques, each defined and sourced like this entry.
Delivered through Beehiiv. Unsubscribe from any issue.