MLA
A multi-head latent attention architecture designed by DeepSeek. The DSpark speculative decoding algorithm performs targeted engineering optimizations specifically tailored to the characteristics of this architecture.
Core Facts
MLA compresses KV pairs into a low-dimensional latent space for caching and recovers the full Keys and Values via an up-projection matrix during inference, compressing the KV cache by several times.
DeepSeek adopts a Mixture of Experts (MoE) architecture and a Multi-head Latent Attention (MLA) mechanism.
MLA can reduce the KV Cache VRAM usage to 5%–13% of traditional multi-head attention.
Timeline (last 90 days)
MLA jointly projects K and V into a low-dimensional latent space, caching only the compressed latent vector and dynamically reconstructing each head's K and V when computing attention, thereby reducing memory overhead for long contexts.
On dense models and MoE models, covering both GQA and MLA attention mechanisms, with NVFP4 the accuracy gap between BitDecoding-FP4 and BF16 KV stays within 0.5 percentage points; with MXFP4 the gap is 1 percentage point.
MLA (Multi-head Latent Attention) compresses the KV Cache through low-rank compression, greatly reducing memory usage during long-context inference, and is an architecture popularized by the DeepSeek series.
ERNIE 5.5 Flash Base uses a hybrid MLA and HCA attention architecture, with the KV Cache portion optimized using MLA while most layers remain HCA structure.
DepthGraft was experimented on dense models and MoE models ranging from 0.5B to 16B parameters, covering both GQA and MLA attention mechanisms.
DepthGraft is verified to be effective under both GQA and MLA attention mechanisms, indicating that its hierarchical reconstruction regularization effect does not depend on a specific attention implementation.
If the details of the hybrid GDN+MLA architecture are confirmed, they would provide valuable reference for academia and advance research on efficient inference.
The combination of GDN and MLA is currently a popular direction of exploration for reducing the cost of long-context inference: the former handles linear, efficient global state, while the latter handles precise retrieval with compressed attention.
MLA technology was first proposed by DeepSeek in V2, and its core is projecting the KV cache into low-dimensional latent vectors to compress memory usage.
Mistral Large 4 adopts the MLA (multi-head latent attention) and DSA (DeepSeek sparse attention) mechanisms released by DeepSeek.
22 more timeline events
All Facts (20)
MLA compresses KV pairs into a low-dimensional latent space for caching and recovers the full Keys and Values via an up-projection matrix during inference, compressing the KV cache by several times.
80%VerifiedDeepSeek adopts a Mixture of Experts (MoE) architecture and a Multi-head Latent Attention (MLA) mechanism.
80%VerifiedMLA can reduce the KV Cache VRAM usage to 5%–13% of traditional multi-head attention.
75%VerifiedMulti-Head Latent Attention (MLA) is an attention mechanism proposed by DeepSeek-V2.
75%VerifiedGQA (Grouped-Query Attention) and MQA (Multi-Query Attention) were the industry's solutions prior to MLA for alleviating the KV cache problem by sharing Key/Value heads.
75%VerifiedGQA groups attention heads to share KV projections, which can compress the KV cache to 1/4 or less of the original size with almost no loss in model quality.
65%VerifiedDeepSeek released DeepSeek-V4.1-Flash, a method that significantly compresses the memory required for KV cache.
70%UnverifiedMLA中RoPE只对部分维度施加旋转编码,采用分离式设计将一小部分维度专门用于承载RoPE位置编码,与压缩后的内容向量拼接使用
85%UnverifiedDeepSeek V4系列采用了MLA、MoE路由优化以及NSA等创新架构技术
85%UnverifiedThe quantized MLX KV cache reduces prompt memory usage by up to 74% compared to before.
70%UnverifiedDeepSeek-V2 proposes MLA (Multi-head Latent Attention), which compresses KV Cache to approximately 5% of MHA through low-rank compression.
70%UnverifiedMLA projects K and V into a latent vector space through low-rank joint compression, and at inference time only the compressed latent vectors are cached, compressing the KV cache several times over while maintaining expressive capability.
60%UnverifiedAdopting sparse attention can compress the KV cache to approximately 1/4, supporting approximately 4 times the context length of full attention under the same memory budget.
60%UnverifiedDeepSeek's prefix caching implementation is based on the MLA (Multi-head Latent Attention) architecture, which reduces the storage requirements of the KV Cache by tens of times through low-rank compression.
60%UnverifiedMLA jointly projects K and V into a low-dimensional latent space, caching only the compressed latent vector and dynamically reconstructing each head's K and V when computing attention, thereby reducing memory overhead for long contexts.
50%UnverifiedOn dense models and MoE models, covering both GQA and MLA attention mechanisms, with NVFP4 the accuracy gap between BitDecoding-FP4 and BF16 KV stays within 0.5 percentage points; with MXFP4 the gap is 1 percentage point.
50%UnverifiedERNIE 5.5 Flash Base uses a hybrid MLA and HCA attention architecture, with the KV Cache portion optimized using MLA while most layers remain HCA structure.
50%UnverifiedMLA (Multi-head Latent Attention) compresses the KV Cache through low-rank compression, greatly reducing memory usage during long-context inference, and is an architecture popularized by the DeepSeek series.
50%UnverifiedDepthGraft was experimented on dense models and MoE models ranging from 0.5B to 16B parameters, covering both GQA and MLA attention mechanisms.
50%UnverifiedDepthGraft is verified to be effective under both GQA and MLA attention mechanisms, indicating that its hierarchical reconstruction regularization effect does not depend on a specific attention implementation.
50%