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

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Peng, Junjie, Wu, You, Wu, Haoyi, Han, Jialong, Xie, Xiaohua, Tu, Kewei, Lai, Jianhuang
Natura: Preprint
Pubblicazione: 2026
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866917547672076288
author Peng, Junjie
Wu, You
Wu, Haoyi
Han, Jialong
Xie, Xiaohua
Tu, Kewei
Lai, Jianhuang
author_facet Peng, Junjie
Wu, You
Wu, Haoyi
Han, Jialong
Xie, Xiaohua
Tu, Kewei
Lai, Jianhuang
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2605_31105
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle GRKV: Global Regression for Training-Free KV Cache Compression in Long-Context LLMs
Peng, Junjie
Wu, You
Wu, Haoyi
Han, Jialong
Xie, Xiaohua
Tu, Kewei
Lai, Jianhuang
Computation and Language
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.
title GRKV: Global Regression for Training-Free KV Cache Compression in Long-Context LLMs
topic Computation and Language
url https://arxiv.org/abs/2605.31105