跳到正文
arXiv (AI + Vision + Imaging)· Junjie Peng, You Wu, Haoyi Wu, Jialong Han, Xiaohua Xie, Kewei Tu, Jianhuang Lai·AI 评分26

GRKV:面向长上下文LLM训练无关KV Cache压缩的全局回归方法

GRKV: Global Regression for Training-Free KV Cache Compression in Long-Context LLMs

AI 导读

GRKV是一种无需训练的KV Cache合并方法,通过岭回归将逐出token的信息分配到保留token上,并正则化更新以避免过度平滑。该方法针对span-based保留与合并结合时合并集中于少量span边界载体token、加剧过合并的问题。在LongBench和RULER长上下文基准上,GRKV是唯一以极小开销提升整体性能的合并方法。

正文 · 原文

arXiv:2605.31105v3 Announce Type: replace Abstract: Large language models (LLMs) with extended context lengths rely on the key-value (KV) cache to support attention over prior tokens. However, maintaining the KV cache incurs substantial memory overhead, motivating KV-cache compression methods that enforce a fixed budget through eviction and merging. Modern eviction methods increasingly adopt span-based retention because preserving contiguous spans is empirically effective and better preserves semantic coherence. Yet, when combined with post-eviction merging, span-based retention concentrates merges onto a small set of span-boundary carrier tokens, producing a highly imbalanced merge pattern that exacerbates over-merging and increases information loss. To address this imbalance, we propose GRKV (Global Regression for KV Cache), a training-free KV-cache merging method that directly minimizes the discrepancy between compressed-cache and full-cache attention outputs. GRKV uses ridge-regression-based merge steps to distribute information from evicted tokens across retained tokens, while regularizing the updates to prevent over-smoothing. Across the LongBench and RULER long-context benchmarks, GRKV is the only merging method that improves overall performance with minimal overhead. Our code is available at https://github.com/pjunjie/GRKV.

来源:arXiv (AI + Vision + Imaging) · arxiv.org