CSR:Achieving 1 Bit Key-Value Cache via Sparse Representation
Hongxuan Zhang, Yao Zhao, Jiaqi Zheng, Chenyi Zhuang, Jinjie Gu,, Guihai Chen

TL;DR
This paper introduces CSR, a sparse representation method for Key-Value caches in large language models, significantly reducing memory usage during inference while maintaining performance.
Contribution
The paper presents CSR, a novel sparse representation technique for KV caches, and NeuralDict, a neural network method for automatic dictionary generation, improving memory efficiency.
Findings
CSR achieves comparable performance to state-of-the-art quantization methods.
CSR maintains robust functionality in memory-constrained environments.
The approach significantly reduces memory footprint during LLM inference.
Abstract
The emergence of long-context text applications utilizing large language models (LLMs) has presented significant scalability challenges, particularly in memory footprint. The linear growth of the Key-Value (KV) cache responsible for storing attention keys and values to minimize redundant computations can lead to substantial increases in memory consumption, potentially causing models to fail to serve with limited memory resources. To address this issue, we propose a novel approach called Cache Sparse Representation (CSR), which converts the KV cache by transforming the dense Key-Value cache tensor into sparse indexes and weights, offering a more memory-efficient representation during LLM inference. Furthermore, we introduce NeuralDict, a novel neural network-based method for automatically generating the dictionary used in our sparse representation. Our extensive experiments demonstrate…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
Taxonomy
TopicsParallel Computing and Optimization Techniques · Network Packet Processing and Optimization · Algorithms and Data Compression
MethodsSoftmax · Attention Is All You Need
