arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2611.15569cs.CVcs.AIcs.LG
收藏

TraceKV:用于推理型视觉语言模型的策略保留型低秩KV缓存压缩

TraceKV: Policy-Preserving Low-Rank KV Cache Compression for Reasoning Vision-Language Models

Duke University(杜克大学)

Ke Li, Zishan Shao, Yiran Chen

AI总结:

针对推理型VLMs的KV缓存压缩存在策略漂移问题,提出无训练的TraceKV框架,通过统一在线策略校准等技术实现策略保留,在5.64×压缩下近乎无损精度,还可提升解码速度。

摘要:

推理型视觉语言模型(VLMs)因大型多模态上下文及不断增长的推理轨迹,对KV缓存提出了极高要求。低秩KV压缩作为一种有前景的范式,可存储KV状态的低维隐变量并可与量化结合。但现有低秩方法在压缩推理KV状态时,常与稠密模型产生日益增大的预测策略漂移,导致推理失败。我们确定了性能下降的两个关键原因:静态上下文与在线策略推理状态间的校准状态不匹配,以及KV状态间的误差敏感性不均。为应对这些挑战,我们提出TraceKV,这是一种无训练的低秩KV压缩框架,在单一策略保留原则下统一了在线策略校准、感知敏感性的SVD及全局秩分配,大幅降低推理期间的策略KL散度。在多个VLM及视觉推理基准上的实验表明,该方法实现了优异的精度-内存权衡,结合量化后可在5.64×KV缓存压缩下达到近乎无损的推理精度;优化的低秩注意力内核进一步提供了最高1.83×的端到端解码加速。代码将在该https URL发布。

英文摘要:

Reasoning vision-language models (VLMs) impose substantial KV cache demands from both large multimodal contexts and growing reasoning traces. Low-rank KV compression has emerged as a promising paradigm that stores low-dimensional latents of KV states and can be combined with quantization. However, existing low-rank methods often induce growing predictive policy drift from the dense model when compressing reasoning KV states, resulting in reasoning failures. We identify two key causes of this degradation: calibration-state mismatch between static contexts and on-policy reasoning states, and unequal error sensitivity across KV states. To address these challenges, we propose TraceKV, a training-free low-rank KV compression framework that unifies on-policy calibration, sensitivity-aware SVD, and global rank allocation under a single policy-preserving principle, substantially reducing policy-KL divergence during reasoning. Experiments across multiple VLMs and visual reasoning benchmarks demonstrate superior accuracy--memory trade-offs, achieving near-lossless reasoning accuracy with 5.64$\times$ KV cache compression when combined with quantization. Optimized low-rank attention kernels further deliver up to 1.83$\times$ end-to-end decoding speedup. Code will be available at https://github.com/AK-DREAM/TraceKV.

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

↑