Accurate KV Cache Quantization with Outlier Tokens Tracing

Yi Su, Yuechi Zhou, Quantong Qiu, Juntao Li, Qingrong Xia +4 more
5/16/2025
cs.CL

No official code found. Best implementation: yisunlp/OTT (11 stars, last commit 2025-07-04).

Abstract

The impressive capabilities of Large Language Models (LLMs) come at the cost of substantial computational resources during deployment. While KV Cache can significantly reduce recomputation during inference, it also introduces additional memory overhead. KV Cache quantization presents a promising solution, striking a good balance between memory usage and accuracy. Previous research has shown that the Keys are distributed by channel, while the Values are distributed by token. Consequently, the common practice is to apply channel-wise quantization to the Keys and token-wise quantization to the Values. However, our further investigation reveals that a small subset of unusual tokens exhibit unique characteristics that deviate from this pattern, which can substantially impact quantization accuracy. To address this, we develop a simple yet effective method to identify these tokens accurately during the decoding process and exclude them from quantization as outlier tokens, significantly improving overall accuracy. Extensive experiments show that our method achieves significant accuracy improvements under 2-bit quantization and can deliver a 6.4 times reduction in memory usage and a 2.3 times increase in throughput.

View on arXivView PDF

Code Implementations(1)

yisunlp/OTTCommunity100%

code for paper Accurate KV Cache Quantization with Outlier Tokens Tracing (ACL2025 Main)

110C, C++May 16, 20251 years ago

Similar Papers

Cite this paper

@article{su2025accurate,
  title  = {Accurate KV Cache Quantization with Outlier Tokens Tracing},
  author = {Yi Su and Yuechi Zhou and Quantong Qiu and Juntao Li and Qingrong Xia and Ping Li and Xinyu Duan and Zhefeng Wang and Min Zhang},
  year   = {2025},
  eprint = {2505.10938},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2505.10938v1}
}

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

Discussion