R-KV: Redundancy-aware KV Cache Compression for Reasoning Models
Zefan Cai, Wen Xiao, Hanshi Sun, Cheng Luo, Yikai Zhang, Ke Wan, Yucheng Li, Yeyang Zhou, Li-Wen Chang, Jiuxiang Gu, Zhen Dong, Anima Anandkumar, Abedelkadir Asi, Junjie Hu
TL;DR
R-KV tackles the memory burden of long chain-of-thought reasoning by targeting redundancy in decoding-time KV caches. It combines attention-based importance scoring with a semantic-redundancy estimator to jointly select non-redundant, informative tokens for retention, while aggressively evicting repetitive content. The method achieves near FullKV performance using only 10–34% of the KV cache and up to 105% at around 16% budget on math-reasoning tasks, with substantial memory savings (~90%) and 6.6x end-to-end throughput gains. Importantly, R-KV is training-free and model-agnostic, making it practical for deployment in RL rollouts and real-time serving of reasoning LLMs. The results demonstrate strong gains over existing KV cache baselines across multiple models and datasets, and provide guidance on hyperparameter choices and efficiency considerations for long-context reasoning workloads.
Abstract
Reasoning models have demonstrated impressive performance in self-reflection and chain-of-thought reasoning. However, they often produce excessively long outputs, leading to prohibitively large key-value (KV) caches during inference. While chain-of-thought inference significantly improves performance on complex reasoning tasks, it can also lead to reasoning failures when deployed with existing KV cache compression approaches. To address this, we propose Redundancy-aware KV Cache Compression for Reasoning models (R-KV), a novel method specifically targeting redundant tokens in reasoning models. Our method preserves nearly 100% of the full KV cache performance using only 10% of the KV cache, substantially outperforming existing KV cache baselines, which reach only 60% of the performance. Remarkably, R-KV even achieves 105% of full KV cache performance with 16% of the KV cache. This KV-cache reduction also leads to a 90% memory saving and a 6.6X throughput over standard chain-of-thought reasoning inference. Experimental results show that R-KV consistently outperforms existing KV cache compression baselines across two mathematical reasoning datasets.
