大模型
arxiv.org ·
CompKV:面向长上下文 LLM 推理的补偿感知 KV 选择
该论文提出 CompKV,一个补偿感知的稀疏注意力框架,用于缓解长上下文 LLM 推理中的 KV cache 内存流量瓶颈。与以往先按注意力质量选 token、再对未选 token 做粗粒度补偿的解耦做法不同,CompKV 将 token 划分为块,并针对下游补偿机制显式优化选择。理论分析显示,块级均值补偿的残差同时受块注意力质量与块内 logit 变化影响,作者用紧凑的块级统计量近似该残差,得到可部署的选择准则,并实现了高效的异步版本。在 RULER 和 LongBench-Pro 上,CompKV 在所评估的稀疏基线中表现最佳,自注意力相对全注意力最高取得 6.85 倍加速。
AI推荐理由 arXiv 新论文,提出 CompKV,首个补偿感知的稀疏注意力框架:将 token 分块,并针对下游补偿机制显式优化选择,理论分析表明块级均值补偿的残差由块注意力质量与块内 logit 变化共同决定,并用紧凑块级统计量近似该残差形成可部署选择准则,另给出异步实现。在 RULER 与 LongBench-Pro 上评测为所比较稀疏基线中最佳,自注意力相对全注意力最高 6.85 倍加速。新信息在于把选择与补偿从解耦改为联合优化,对长上下文推理的 KV cache 显存与带宽瓶颈有直接价值;局限是仅摘要级证据,未提供与更多基线或端到端吞吐的对比细节。
78
正文
Computer Science > Machine Learning
arXiv:2609.26300 (cs)
[Submitted on 22 Sep 2026]
Title:CompKV: Compensation-Aware KV Selection for Long-Context LLM Inference
Authors:Zhen Huang, Ruizhe Yao, Danyi Liu, Xinrui Chen, Shuwei Li, Siru Zhong, Zijian Cao, Yushan Lai, Mingming Guo, Weijie Zheng, Haohuan Fu
View a PDF of the paper titled CompKV: Compensation-Aware KV Selection for Long-Context LLM Inference, by Zhen Huang and 10 other authors
View PDF
HTML (experimental)
Abstract:Despite their strong performance, large language models (LLMs) are bottlenecked by KV cache memory traffic during long-context inference. Sparse attention is widely used to accelerate LLM inference by computing exact attention over a selected subset of tokens. To recover the contribution of tokens excluded from exact attention, recent methods apply coarse-grained compensation to the omitted attention tail. However, existing methods typically select tokens based on attention mass and only then compensate for the unselected tokens. This decoupled design overlooks their interaction: selection should prioritize tokens that would leave the largest compensation error if omitted. To address this limitation, we introduce CompKV, the first compensation-aware sparse attention framework that divides tokens into blocks and explicitly optimizes selection for the downstream compensation mechanism. Our theoretical analysis shows that the residual left by block-level mean compensation is governed by both block attention mass and within-block logit variation. We approximate this residual using compact block-level statistics, yielding a deployable selection criterion. We further develop an efficient asynchronous implementation. Experiments on RULER and LongBench-Pro show that CompKV performs best among the evaluated sparse baselines while delivering up to a $6.85\times$ self-attention speedup over full attention.
Subjects:
Machine Learning (cs.LG); Artificial Intelligence (cs.AI)
Cite as:
arXiv:2609.26300 [cs.LG]
(or
arXiv:2609.26300v1 [cs.LG] for this version)
https://doi.org/10.48550/arXiv.2609.26300
Focus to learn more
arXiv-issued DOI via DataCite (pending registration)
Submission history
From: Zhen Huang [view email]
[v1]
Tue, 22 Sep 2026 12:11:19 UTC (698 KB)
Full-text links:
Access Paper:
View a PDF of the paper titled CompKV: Compensation-Aware KV Selection for Long-Context LLM Inference, by Zhen Huang and 10 other authors
View PDF
HTML (experimental)
TeX Source
view license
Current browse context:
cs.LG
new
|
recent
| 2026-09
Change to browse by:
cs
cs.AI
References & Citations
NASA ADS
Google Scholar
Semantic Scholar
export BibTeX citation
Loading...
BibTeX formatted citation
×
loading...
Data provided by:
Bookmark
Bibliographic Tools
Bibliographic and Citation Tools
Bibliographic Explorer Toggle
Bibliographic Explorer (What is the Explorer?)
Connected Papers Toggle
Connected Papers (What is Connected Papers?)
Litmaps Toggle
Litmaps (What is Litmaps?)
scite.ai Toggle
scite Smart Citations (What are Smart Citations?)
Code, Data, Media
Code, Data and Media Associated with this Article
alphaXiv Toggle
alphaXiv (What is alphaXiv?)
Links to Code Toggle
CatalyzeX Code Finder for Papers (What is CatalyzeX?)
DagsHub Toggle
DagsHub (What is DagsHub?)
GotitPub Toggle
Gotit.pub (What is GotitPub?)
Huggingface Toggle
Hugging Face (What is Huggingface?)
ScienceCast Toggle
ScienceCast (What is ScienceCast?)
Demos
Demos
Replicate Toggle
Replicate (What is Replicate?)
Spaces Toggle
Hugging Face Spaces (What is Spaces?)
Spaces Toggle
TXYZ.AI (What is TXYZ.AI?)
Related Papers
Recommenders and Search Tools
Link to Influence Flower
Influence Flower (What are Influence Flowers?)
Core recommender toggle
CORE Recommender (What is CORE?)
IArxiv recommender toggle
IArxiv Recommender
(What is IArxiv?)
Author
Venue
Institution
Topic
About arXivLabs
arXivLabs: experimental projects with community collaborators
arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.
Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.
Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.
Which authors of this paper are endorsers? |
Disable MathJax (What is MathJax?)