Lossless KV Cache Compression to 2%

Zhen Yang, J. N. Han, Kan Wu, Ruobing Xie, An Wang +2 more
10/20/2024
cs.CLcs.AI

No confident code implementation found for this paper. 3 possible matches can be shown below.

Abstract

Large language models have revolutionized data processing in numerous domains, with their ability to handle extended context reasoning receiving notable recognition. To speed up inference, maintaining a key-value (KV) cache memory is essential. Nonetheless, the growing demands for KV cache memory create significant hurdles for efficient implementation. This work introduces a novel architecture, Cross-Layer Latent Attention (CLLA), aimed at compressing the KV cache to less than 2% of its original size while maintaining comparable performance levels. CLLA integrates multiple aspects of KV cache compression, including attention head/dimension reduction, layer sharing, and quantization techniques, into a cohesive framework. Our extensive experiments demonstrate that CLLA achieves lossless performance on most tasks while utilizing minimal KV cache, marking a significant advancement in practical KV cache compression.

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. 3 weaker matches are hidden by default — 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{yang2024lossless,
  title  = {Lossless KV Cache Compression to 2%},
  author = {Zhen Yang and J. N. Han and Kan Wu and Ruobing Xie and An Wang and Xingwu Sun and Zhanhui Kang},
  year   = {2024},
  eprint = {2410.15252},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.15252v1}
}

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/2410.15252.svg)](https://codeofpaper.com/paper/2410.15252)

Discussion