Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

ReCalKV: Low-Rank KV Cache Compression via Head Reordering and Offline Calibration

About

Large language models (LLMs) have demonstrated remarkable performance, but their long-context reasoning remains constrained by the excessive memory required for the Key-Value (KV) cache. This makes KV cache compression a critical step toward efficient long-context inference. Recent methods have explored low-rank techniques to reduce the hidden size of the KV cache. However, they neglect the distinct roles and varying importance of Keys and Values, leading to significant performance drops under high compression. To address this, we propose ReCalKV, a post-training low-rank KV cache compression approach with tailored strategies for Keys and Values. For Keys, we propose Head-wise Similarity aware Reordering (HSR), which clusters structurally similar heads into groups, enabling more accurate low-rank approximation via grouped SVD. For Values, we propose Offline Value Calibration (OVC), which efficiently calibrates the value projection matrix using calibration data without training, ensuring an accurate representation of contextual information. Extensive experiments show that ReCalKV consistently outperforms existing low-rank compression methods, achieving high compression ratios with minimal performance loss. The code and models will be available at:https://github.com/XIANGLONGYAN/ReCalKV.

Xianglong Yan, Zhiteng Li, Tianao Zhang, Haotong Qin, Linghe Kong, Yulun Zhang, Xiaokang Yang• 2025

Related benchmarks

TaskDatasetResultRank
Language ModelingWiki2 and C4
Perplexity (Wiki2)6.75
19
Commonsense ReasoningLM-Eval-Harness OBQA, PIQA, ARC-e, ARC-c, HellaSwag, WinoGrande
OBQA Accuracy39.8
14
Zero-shot Question AnsweringReasoning Suite (OBQA, PIQA, ARC-e, ARC-c, Hella, Wino) Zero-shot
Accuracy on OBQA (Zero-shot)44
8
Showing 3 of 3 rows

Other info

Follow for update