KIVI: A Tuning-Free Asymmetric 2bit Quantization for KV Cache

Zirui Liu, Jiayi Yuan, Hongye Jin, Shaochen Zhong, Zhaozhuo Xu +3 more
2/12/2026

No official code found. Best implementation: jy-yuan/KIVI (414 stars, MIT, last commit 2025-11-20). 1 more below.

Abstract

Efficiently serving large language models (LLMs) requires batching of many requests to reduce the cost per request. Yet, with larger batch sizes and longer context lengths, the key-value (KV) cache, which stores attention keys and values to avoid re-computations, significantly increases memory demands and becomes the new bottleneck in speed and memory usage. Additionally, the loading of the KV cache causes the computational core to be idle, which limits the inference speed. A straightforward and effective solution to reduce KV cache size is quantization, which decreases the total bytes taken by KV cache. However, there is a lack of in-depth studies that explore the element distribution of KV cache to understand the hardness and limitation of KV cache quantization. To fill the gap, we conducted a comprehensive study on the element distribution in KV cache of popular LLMs. Our findings indicate that the key cache should be quantized per-channel, i.e., group elements along the channel dimension and quantize them together. In contrast, the value cache should be quantized per-token. From this analysis, we developed a tuning-free 2bit KV cache quantization algorithm named KIVI. With hardware-friendly implementation, KIVI can enable Llama, Falcon, and Mistral models to maintain almost the same quality while using $\mathbf{2.6\times}$ less peak memory (including model weight). This reduction in memory usage enables up to $\mathbf{4\times}$ larger batch size, bringing $\mathbf{2.35\times \sim 3.47\times}$ throughput on real LLM inference workload. The source code is available at https://github.com/jy-yuan/KIVI.

View on arXivView PDF

Code Implementations(2)

jy-yuan/KIVICommunity100%
MIT

[ICML 2024] KIVI: A Tuning-Free Asymmetric 2bit Quantization for KV Cache

41455C, C++Feb 2, 202411 months agoMIT
inferencelarge-language-modelsllamallmnatural-language-processing+2 more
MIT

[ICML 2024] KIVI: A Tuning-Free Asymmetric 2bit Quantization for KV Cache

00C, C++May 24, 20251 years agoMIT

Similar Papers

Cite this paper

@article{liu2026kivi,
  title  = {KIVI: A Tuning-Free Asymmetric 2bit Quantization for KV Cache},
  author = {Zirui Liu and Jiayi Yuan and Hongye Jin and Shaochen Zhong and Zhaozhuo Xu and Vladimir Braverman and Beidi Chen and Xia Hu},
  year   = {2026},
  eprint = {2402.02750},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2402.02750},
  journal = {ICML 2024 2024}
}

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

Discussion