A$^2$ATS: Retrieval-Based KV Cache Reduction via Windowed Rotary Position Embedding and Query-Aware Vector Quantization
Junhui He, Junna Xing, Nan Wang, Rui Xu, Shangyu Wu, Peng Zhou, Qiang Liu, Chun Jason Xue, Qingan Li

TL;DR
A$^2$ATS introduces a retrieval-based KV cache reduction method for large language models that improves accuracy and efficiency by using windowed rotary position embedding and query-aware vector quantization, significantly boosting long context serving throughput.
Contribution
It proposes novel techniques for KV cache reduction, including windowed rotary position embedding and query-aware vector quantization, enhancing retrieval accuracy and efficiency.
Findings
Achieves up to 2.7x increase in long context serving throughput.
Reduces performance degradation compared to existing methods.
Maintains similar or lower overhead with improved accuracy.
Abstract
Long context large language models (LLMs) pose significant challenges for efficient serving due to the large memory footprint and high access overhead of KV cache. Retrieval-based KV cache reduction methods can mitigate these challenges, typically by offloading the complete KV cache to CPU and retrieving necessary tokens on demand during inference. However, these methods still suffer from unsatisfactory accuracy degradation and extra retrieval overhead. To address these limitations, this paper proposes AATS, a novel retrieval-based KV cache reduction method. AATS aims to obtain an accurate approximation of attention scores by applying the vector quantization technique to key states, thereby enabling efficient and precise retrieval of the top-K tokens. First, we propose Windowed Rotary Position Embedding, which decouples the positional dependency from query and key states after…
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
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAlgorithms and Data Compression · Advanced Image and Video Retrieval Techniques · Advanced Data Storage Technologies
MethodsSoftmax · Attention Is All You Need
