RAQ-MLA: Role-Aware Quantization for Multi-Head Latent Attention Caches
Tianqi Chen, Xunchao Li, Linchuan Xie, Guanghua Yu, Jianchen Zhu, Peisong Wang, Jian Cheng
Abstract
Multi-Head Latent Attention (MLA) has been adopted by recent frontier large language models. Instead of per-head keys and values, MLA caches a compressed KV latent that is up-projected into keys and values at decode time, together with a narrow positional key that carries position information into the attention score. Existing KV-cache quantization methods are designed around the keys and values of standard attention and do not account for what MLA actually caches, which costs accuracy at low bit widths. We analyze the MLA cache both in activation distribution and in how quantization error propagates to the attention output, and show that the two cached tensors play different roles: the latent mainly supplies the values, whereas the positional key dominates the attention score. We therefore propose RAQ-MLA (Role-Aware Quantization for Multi-Head Latent Attention Caches), which fits an invertible transform to each cached tensor against the error that tensor delivers to the attention output: attention-weighted value error for the latent and score perturbation for the positional key. Without training, RAQ-MLA quantizes the full MLA cache to about 2.5 bits per element, a 6.5x increase in theoretical KV-cache capacity, while remaining nearly lossless on reasoning and coding tasks across four MLA models.
Create a lesson
Metadata
- Categories
- cs.AI, cs.LG
Related papers
Prefetch-Steered Routing: Deterministic Cache-Aware Expert Selection for Offloaded Mixture-of-Experts Decoding
Shared title terminologycs.AISiming Huang
MultiEvoSkill: Structure-Aware Multi-Agent Skill Evolution for Generalizable Skill Artifacts
Shared title terminologycs.AIKounianhua Du, Jianxing Liu, Ruoshui Shan et al.
Learning When to Collaborate: Selective Multi-Agent Medical Reasoning via Uncertainty-Aware Routing
Shared title terminologycs.AIJiacheng Hou, Xueliang Cui, Dan Lu et al.
Emotion-Aware and Context-Grounded Dialogue Agents for Personalized Video Game Interactions
Shared title terminologycs.AIMichael Adjeisah, Jin Zhang, Pierluigi Vito Amadori et al.
EMIP: Embodied Multi-Party Interaction Platform
Shared title terminologycs.AIKoichiro Terao, Rikunari Sagara, Moe Nagao et al.
MVAgent: Per-Video Agents under Global Coordination for Multi-Video Understanding
Shared title terminologycs.AIKewei Wei, XueXiang Wen, Bocheng Hu et al.