KVReviver: Reversible KV Cache Compression with Sketch-Based Token Reconstruction

Aomufei Yuan, Zhiming Wang, Ruijie Miao, Dayu Wang, Yuxuan Tian +6 more
12/1/2025
cs.CLcs.AI

No confident code implementation found for this paper.

Abstract

As the context length of current large language models (LLMs) rapidly increases, the memory demand for the Key-Value (KV) cache is becoming a bottleneck for LLM deployment and batch processing. Traditional KV cache compression methods typically involve permanently evicting or irreversibly merging "less important" tokens with low attention scores. This approach results in the unrecoverable loss of token information, which we call Contextual Amnesia, significantly degrading the model's information retrieval capability. To address this issue, we propose KVReviver, a reversible KV cache compression method based on the sketch algorithm. This method allows reconstructing compressed tokens from an additional data structure, thus enabling full-scale computation within limited memory. Experiments showed that in 2k-length contexts, it requires only 10% of KV Cache budget while maintaining identical end-to-end inference accuracy. For 32k-length contexts, it achieves equivalent or comparable accuracy ~2% accuracy loss) using merely 25% of KV Cache budget.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{yuan2025kvreviver,
  title  = {KVReviver: Reversible KV Cache Compression with Sketch-Based Token Reconstruction},
  author = {Aomufei Yuan and Zhiming Wang and Ruijie Miao and Dayu Wang and Yuxuan Tian and Zihan Wang and Yebo Peng and Yuhan Wu and Bairen Yi and Xin Liu and Tong Yang},
  year   = {2025},
  eprint = {2512.17917},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2512.17917v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2512.17917.svg)](https://codeofpaper.com/paper/2512.17917)

Discussion