arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2604.06746cs.CL
收藏

StructKV: 保持结构骨架以实现可扩展的长上下文推理

StructKV: Preserving the Structural Skeleton for Scalable Long-Context Inference

UCAS-Terminus AI Lab, University of Chinese Academy of Sciences, China(中国科学院大学UCAS-Terminus AI实验室);National Engineering Research Center for Software Engineering, Peking University(北京大学国家软件工程研究中心)

Zhirui Chen, Peiyang Liu, Ling Shao

AI总结:

StructKV通过全局入度中心性、动态枢轴检测和结构传播与解耦方法,有效保留长距离依赖性和检索鲁棒性,提升长上下文推理效率。

摘要:

随着大型语言模型(LLMs)支持上下文窗口超过一百万token,键值(KV)缓存的线性增长对内存容量和带宽造成严重瓶颈,限制了长上下文推理的效率。现有压缩方法通常基于局部显著性度量来分离预填充计算与解码内存。然而,这些方法通常依赖于特定层的局部显著性快照,从而系统性地丢弃在网络深度中起全局信息枢纽作用但在选定层中暂时处于休眠状态的token。为了解决这一限制,我们提出了StructKV,一种结构感知的KV缓存压缩框架,引入了三个核心创新:首先,全局入度中心性聚合网络深度中的注意力模式以识别全局信息枢纽。其次,动态枢轴检测利用信息论度量来适应性地定位最佳压缩层。最后,结构传播与解耦将计算预算与内存存储预算分离。在LongBench和RULER基准测试中,StructKV有效保留了长距离依赖性和检索鲁棒性。

英文摘要:

As Large Language Models (LLMs) scale to support context windows exceeding one million tokens, the linear growth of Key-Value (KV) cache imposes severe memory capacity and bandwidth bottlenecks, constraining the efficiency of long-context inference. Existing compression approaches typically prioritize tokens based on local saliency metrics to decouple prefill computation from decoding memory. However, these methods often rely on local saliency snapshots at a specific layer, thereby systematically discarding tokens that act as global information hubs across the network depth but appear temporarily dormant at the specific layer selected for pruning. To address this limitation, we propose StructKV, a structure-aware KV cache compression framework that introduces three core innovations: First, Global In-Degree Centrality aggregates attention patterns across the network depth to identify global information hubs. Second, Dynamic Pivot Detection utilizes information-theoretic metrics to adaptively locate the optimal layer for compression. Finally, Structural Propagation and Decoupling separates the computational budget from the memory storage budget. Experimental results on the LongBench and RULER benchmarks demonstrate that StructKV effectively preserves long-range dependencies and retrieval robustness.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑