Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
38 tokens/sec
GPT-4o
59 tokens/sec
Gemini 2.5 Pro Pro
41 tokens/sec
o3 Pro
7 tokens/sec
GPT-4.1 Pro
50 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

Unlocking Data-free Low-bit Quantization with Matrix Decomposition for KV Cache Compression (2405.12591v1)

Published 21 May 2024 in cs.CL

Abstract: Key-value~(KV) caching is an important technique to accelerate the inference of LLMs~(LLMs), but incurs significant memory overhead. To compress the size of KV cache, existing methods often compromise precision or require extra data for calibration, limiting their practicality in LLM deployment. In this paper, we introduce \textbf{DecoQuant}, a novel data-free low-bit quantization technique based on tensor decomposition methods, to effectively compress KV cache. Our core idea is to adjust the outlier distribution of the original matrix by performing tensor decomposition, so that the quantization difficulties are migrated from the matrix to decomposed local tensors. Specially, we find that outliers mainly concentrate on small local tensors, while large tensors tend to have a narrower value range. Based on this finding, we propose to apply low-bit quantization to the large tensor, while maintaining high-precision representation for the small tensor. Furthermore, we utilize the proposed quantization method to compress the KV cache of LLMs to accelerate the inference and develop an efficient dequantization kernel tailored specifically for DecoQuant. Through extensive experiments, DecoQuant demonstrates remarkable efficiency gains, showcasing up to a $\sim$75\% reduction in memory footprint while maintaining comparable generation quality.

User Edit Pencil Streamline Icon: https://streamlinehq.com
Authors (6)
  1. Peiyu Liu (27 papers)
  2. Ze-Feng Gao (24 papers)
  3. Wayne Xin Zhao (196 papers)
  4. Yipeng Ma (10 papers)
  5. Tao Wang (700 papers)
  6. Ji-Rong Wen (299 papers)
Citations (3)
X Twitter Logo Streamline Icon: https://streamlinehq.com

Tweets