Homogeneous Keys, Heterogeneous Values: Exploiting Local KV Cache Asymmetry for Long-Context LLMs
Wanyun Cui, Mingwei Xu

TL;DR
This paper uncovers a key-value asymmetry in long-context LLMs' KV caches, proposing a novel, training-free compression method that significantly improves performance over existing approaches.
Contribution
It introduces AsymKV, a training-free compression framework exploiting local KV cache asymmetry, with key merging and lossless value compression, advancing long-context modeling efficiency.
Findings
AsymKV outperforms SOTA methods on LongBench.
It achieves higher scores on LLaMA3.1-8B.
The method is effective across various tasks and models.
Abstract
Recent advances in Large Language Models (LLMs) have highlighted the critical importance of extending context length, yet the quadratic complexity of attention mechanisms poses significant challenges for efficient long-context modeling. KV cache compression has emerged as a key approach to address this challenge. Through extensive empirical analysis, we reveal a fundamental yet previously overlooked asymmetry in KV caches: while adjacent keys receive similar attention weights ({\it local homogeneity}), adjacent values demonstrate distinct {\it heterogeneous} distributions. This key-value asymmetry reveals a critical limitation in existing compression methods that treat keys and values uniformly. To address the limitation, we propose a training-free compression framework (AsymKV) that combines homogeneity-based key merging with a mathematically proven lossless value compression.…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
Taxonomy
TopicsBig Data and Digital Economy · Natural Language Processing Techniques · Machine Learning in Healthcare
MethodsBalanced Selection
