KV Cache is 1 Bit Per Channel: Efficient Large Language Model Inference with Coupled Quantization
Authors: Tianyi Zhang, Jonah Yi, Zhaozhuo Xu, Anshumali Shrivastava
AI-generated Key Points
- Efficient deployment of Large Language Models (LLMs) requires batching multiple requests together to improve throughput.
- Increasing batch size, context length, or model size can lead to the key and value (KV) cache size becoming a significant contributor to GPU memory usage and inference latency bottleneck.
- Coupled Quantization (CQ) is a new approach proposed to address this issue by exploiting high inter-dependency among distinct channels of key/value activation embeddings.
- CQ outperforms existing methods in preserving model quality even at extremely low bit widths through efficient encoding of activations by coupling multiple key/value channels together.
- By dividing key and value embedding channels into non-overlapping groups and estimating joint entropy and sum of marginal entropies for each group, CQ achieves efficient compression while maintaining encoding quality.
- The total amount of information needed for encoding decreases as the number of jointly quantized channels increases due to the slower growth rate of joint entropy compared to marginal entropies, highlighting the effectiveness of coupling multiple key/value channels in improving information efficiency during inference.
Abstract: Efficient deployment of Large Language Models (LLMs) requires batching multiple requests together to improve throughput. As the batch size, context length, or model size increases, the size of the key and value (KV) cache can quickly become the main contributor to GPU memory usage and the bottleneck of inference latency. Quantization has emerged as an effective technique for KV cache compression, but existing methods still fail at very low bit widths. We observe that distinct channels of a key/value activation embedding are highly inter-dependent, and the joint entropy of multiple channels grows at a slower rate than the sum of their marginal entropies. Based on this insight, we propose Coupled Quantization (CQ), which couples multiple key/value channels together to exploit their inter-dependency and encode the activations in a more information-efficient manner. Extensive experiments reveal that CQ outperforms or is competitive with existing baselines in preserving model quality. Furthermore, we demonstrate that CQ can preserve model quality with KV cache quantized down to 1-bit.
Tools for this paper
Ask questions about this paper to our AI assistant
You can also chat with multiple papers at once here.
The previous summary was created more than a year ago and can be re-run (if necessary) by clicking on the Run button below.
Similar papers summarized with our AI tools
Navigate through even more similar papers through a
tree representationLook for similar papers (in beta version)
We compare the title and abstract with papers indexed in our database. For arXiv papers, we search within the same category; for DOI and other sources, we search across sources and subjects. You can rerun the search as our database grows.
Disclaimer: The AI-based summarization tool and virtual assistant provided on this website may not always provide accurate and complete summaries or responses. We encourage you to carefully review and evaluate the generated content to ensure its quality and relevance to your needs.