跳到正文
EasyXiv 检索
投稿 关于 登录

按回车检索 · 直接输入编号(如 1706.03762)可跳转到论文

计算机科学 > 人工智能

arXiv:2510.00636 (cs)
[提交于 2025年10月1日]

标题:Expected Attention: KV Cache Compression by Estimating Attention from Future Queries Distribution

作者:Alessio Devoto, Maximilian Jeblick, Simon Jégou
查看论文《Expected Attention: KV Cache Compression by Estimating Attention from Future Queries Distribution》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:Memory consumption of the Key-Value (KV) cache represents a major bottleneck for efficient large language model inference. While attention-score-based KV cache pruning shows promise, it faces critical practical limitations: attention scores from future tokens are unavailable during compression, and modern implementations like Flash Attention do not materialize the full attention matrix, making past scores inaccessible. To overcome these challenges, we introduce $\textbf{Expected Attention, a training-free compression method}$ that estimates KV pairs importance by predicting how future queries will attend to them. Our approach leverages the distributional properties of LLM activations to compute expected attention scores in closed form for each KV pair. These scores enable principled ranking and pruning of KV pairs with minimal impact on the residual stream, achieving effective compression without performance degradation. Importantly, our method operates seamlessly across both prefilling and decoding phases, consistently outperforming state-of-the-art baselines in both scenarios. Finally, $\textbf{we release KVPress, a comprehensive library to enable researchers to implement and benchmark KV cache compression methods, already including more than 20 techniques}$.
主题: 人工智能 (cs.AI); 计算与语言 (cs.CL)
引用方式: arXiv:2510.00636 [cs.AI]
  (或者 arXiv:2510.00636v1 [cs.AI] 对于此版本)
  https://doi.org/10.48550/arXiv.2510.00636

提交历史

来自:Alessio Devoto
[v1] 2025年10月1日 星期三 08:12:14 UTC
全文链接:

访问论文:

  • 查看原文 PDF
  • 中文 PDF (下批处理)
  • EasyResearch 阅读
  • TeX 源文件
  • arXiv 原文页面
查看许可

当前浏览上下文:

cs.AI
< 上一篇   |   下一篇 >
最新 | 近期 | 2025-10
切换浏览方式为:
cs
cs.CL

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

EasyXiv 是独立运营的中文预印本站点,与 arXiv 及康奈尔大学无隶属关系。 论文元数据与原文来自 arXiv.org,感谢 arXiv 提供开放获取服务。
关于 · 帮助 · 投稿指南 · 版权 · arXiv 原站