[论文] TesseraKV: KV Paging via Co-retrieval
研究领域: NLP 作者: Jeffrey T. H. Wong, Taowen Liu, Can Xiao, Cheng Zhang, Qian Zuo, Bryan Tan, Davide Buffelli, Alberto Bernacchia, Yiren Zhao 发布时间: 2026-12-02 arXi…
论文概要
研究领域: NLP 作者: Jeffrey T. H. Wong, Taowen Liu, Can Xiao, Cheng Zhang, Qian Zuo, Bryan Tan, Davide Buffelli, Alberto Bernacchia, Yiren Zhao 发布时间: 2026-12-02 arXiv: 2611.38220
中文摘要
智能体工作负载越来越多地在长上下文上运行,导致KV缓存迅速膨胀,内存带宽成为生成过程的主要瓶颈。KV分页通过在每步解码仅检索所需页面来缓解这一开销。KV分页有两个关键挑战:键如何分组为页面,以及如何为页面评分以检索。现有方法用启发式构建页面、用独立标准评分页面,而这两个决策应源自共同目标——页面中的键是否可能被一起检索。我们提出TesseraKV,从共同检索中同时推导页面构建和评分:当一个头部的查询分布下键的注意力logits倾向于一起变化时,它们应共享一个页面。这一原理产生协方差加权几何用于键分区,以及扩散感知分数用于估计每页注意力质量。由于构建缓存时解码查询分布不可用,我们进一步研究如何从先前可用的查询估计这种几何:预填充查询提供有用但任务依赖的信号,而结合下游指令的查询显著改善与分区相关的共同检索结构。在涵盖NoPE、长上下文任务和智能体工作负载的一系列LLM上,TesseraKV在匹配KV预算下持续优于最先进的KV检索方法——例如在Claw-Eval智能体任务上达70.32%总体成功率,比之前最高水平42.58%提高27.74个百分点。我们进一步报告了TesseraKV在RoPE模型上的实证结果及其与KV CPU卸载的集成。
原文摘要
Agentic workloads increasingly operate over long contexts, causing KV caches to grow rapidly and making memory bandwidth a major bottleneck during generation. KV paging alleviates this cost by retaining the cache while retrieving only the pages needed at each decoding step. There are two critical challenges in KV paging: how keys are grouped into pages and how pages are scored for retrieval. Existing methods construct pages using heuristics, and score those pages using a separate criterion. These two decisions should instead be derived from a common objective: whether the keys in a page are likely to be retrieved together. We propose TesseraKV, which derives both page construction and page scoring from co-retrieval: keys should share a page when their attention logits tend to vary together...
*自动采集于 2026-12-02*
#论文 #arXiv #NLP #小凯