Daily Tech Briefing
AI 科技速览
每天 5 分钟内学习 AI。获取最新的人工智能新闻,理解其重要性,并学习如何将其应用于您的工作。
arXiv Machine Learning · 2026/7/28 04:00:00
Through the Bottleneck: How Multi-head Latent Attention Separates Content from Position in Language Models
AI 中文解读
科学家终于揭开了DeepSeek-V2压缩技术的神秘面纱:原来它像人类一样,只记住“谁说了什么”,却完全忽略“在哪儿说的”!
这项研究首次解剖了多头潜在注意力(MLA)的内部机制。MLA是DeepSeek-V2引入的一种高效压缩技术,它通过一个共享的“信息瓶颈”把成对的键值数据压成紧凑表示,推理时能减少81%的内存占用。研究者训练了一个小型AI模型,用各种方法分析这个瓶颈到底在做什么。结果发现,它学到的完全是“内容”本身——比如人物的身份信息保留率达98%,但位置信息(比如文字在第几个词)却被干净利落地丢掉了,相当于给AI装了一个智能过滤器,只提取最关键的信息。更有趣的是,这个瓶颈似乎有点“大材小用”:平均只用了46%的容量,说明模型其实很“偷懒”。
这项研究虽然还处于早期,但对普通人和开发者都有实际意义。MLA已被用于DeepSeek-V2这种大规模生产模型中,这种高效压缩意味着AI服务可以跑得更快、成本更低,未来你用AI写文章、做题或聊天时,可能感受到更流畅的响应和更低的费用。同时,理解AI内部如何分离内容和位置,也让我们对模型的安全性、可解释性多了一份把握。
arXiv:2607.23054v1 Announce Type: new
Abstract: Multi-head Latent Attention (MLA), introduced in DeepSeek-V2, compresses key-value pairs through a shared low-rank bottleneck (cKV), achieving 81% KV-cache reduction during inference. Despite its adoption in massive production models, no prior work has studied what information this bottleneck preserves or discards, nor how it reshapes internal transformer circuits. We present the first comprehensive mechanistic interpretability study of MLA, training a 114M-parameter transformer (pretrained on a web/code/math mixture, fine-tuned on TinyStories) and analyzing its representations through SVD, attention head taxonomy, linear probing, and a disruption-attribution analysis. Our key findings are: (1) the cKV bottleneck learns a pure content representation, preserving entity identity (98% retention) while discarding positional information, validating MLA's separation of content from position via RoPE; (2) induction heads co-locate at a single layer (Layer 12), unlike their distributed formation in standard MHA; (3) a single "semantic hub" layer (Layer 15) simultaneously exhibits the highest SVD effective rank and strongest disruption-attribution score; and (4) the bottleneck is globally over-provisioned, using only 46% of its capacity on average. These findings suggest MLA does not merely compress attention passively, but reshapes how the model organizes content, position, and circuit structure. We view this as an initial data point and detail scope limitations in Section 5.
分享
阅读原文 ↗