Daily Tech Briefing
AI 科技速览
每天 5 分钟内学习 AI。获取最新的人工智能新闻,理解其重要性,并学习如何将其应用于您的工作。
arXiv Machine Learning · 2026/7/31 04:00:00
Beyond KV Reconstruction: Functional Reconstruction for MLA Draft Models in Speculative Decoding
AI 中文解读
这篇论文的亮点在于:它不把模型转换当成简单的“压缩打包”,而是当作“功能仿制”,让转换后的AI模型在加速推理时,几乎不损失原有的智能水平。
通俗来说,大模型思考时需要长时记忆,但记忆太多会导致“内存”爆满、速度变慢。科学家发明了MLA技术来压缩记忆,但很多现成的优秀模型并不支持这种技术。过去,工程师们试着把模型“改造”成支持该技术的版本,结果模型虽然能跑,但反应速度反而变慢了。原因在于这种改造只模仿了外表,没有模仿精髓,模型在快速应答时就容易卡壳。这篇论文的方法,就像是让改造后的模型拿着“原版答案”逐题对照练习,直到它彻底模仿出原版的思考逻辑。改造完成后,模型既保持了省内存的优势,反应速度也明显提升,在64组测试中有37组表现显著改善。
这项技术成熟后,最直接的影响是普通用户用AI时会感觉“又快又稳”。处理超长文章或复杂对话时,AI不用再频繁“卡顿”或“忘事”,手机和电脑也能更流畅地运行本地AI助手,相关服务成本也会随之降低,让高级AI功能更容易普及。
arXiv:2607.27269v1 Announce Type: new
Abstract: Multi-head latent attention (MLA) is increasingly important for long-context LLM inference because compact latent states replace the growing key-value (KV) cache and reduce decoding memory traffic. Yet most capable open checkpoints use multi-head or grouped-query attention (MHA/GQA), so conversion is needed to obtain MLA's cache efficiency without retraining from scratch. Speculative decoding offers complementary acceleration, but its speedup depends on agreement between draft proposals and target verification. We find that direct MHA/GQA-to-MLA conversion can sharply reduce this agreement: low-rank factorization and RoPE handling introduce attention-function errors that may be tolerable for standalone generation but substantially lower draft-token acceptance. We therefore formulate MLA draft construction as functional reconstruction rather than cache compression. Our end-to-end (E2E) method optimizes each converted MLA attention module to reproduce the post-output-projection response of its original MHA/GQA counterpart on calibration hidden states. This converter-agnostic post-conversion procedure preserves the converted cache and inference graph and requires neither verifier logits nor verifier supervision. We evaluate 192 model-converter-backend-method-task configurations spanning four Llama/Qwen draft-target pairs, TransMLA and MHA2MLA, HF and vLLM, and four 200-prompt tasks. With a 0.5-percentage-point reporting tolerance, Functional Reconstruction materially improves acceptance in 37 of 64 matched task cells, leaves 26 practically unchanged, and materially decreases one. Code and evaluation artifacts are available at https://github.com/swyhahaha/FunctionalMLA.
分享
阅读原文 ↗