RaBitQCache: Rotated Binary Quantization for KVCache in Long Context LLM Inference
Wenhao Li, Jinhao Dong, Hailin Zhang, Wenhang Shi, Wei Lu, Xiaoyong Du
Abstract
Long-context Large Language Model inference is severely bottlenecked by the massive Key-Value (KV) cache, yet existing sparse attention methods often suffer from static fixed-budget (Top-k) retrieval or rely on proxy scores that are computationally expensive and biased. To address these limitations, we propose RaBitQCache, a novel sparse attention framework that utilizes randomized rotated binary quantization and high-throughput binary-INT4 arithmetic to efficiently estimate attention weights. Our proxy score serves as an unbiased estimator with a proven error bound, enabling adaptive Top-p retrieval that dynamically adjusts the token budget based on actual attention sparsity. We further implement a hardware-aware system with asynchronous pipelining and lazy updates to mask overhead. Evaluations demonstrate that RaBitQCache significantly accelerates inference and reduces memory I/O while preserving generation quality compared to state-of-the-art baselines. Code is available at https://github.com/Sakuraaa0/RaBitQCache.git.
Create a lesson
Metadata
- Categories
- cs.LG, cs.CL
- Comments
- Accept by ICML 26
Related papers
BQDNA: Multi-Head Binary Spherical Quantization for Genomic Sequence Modeling
Shared title terminologycs.LGXudong Wang, Siwei Cheng, Haozhe Hu
S^2LMR: Supervised Sequential Long-Context Multi-Step Retriever
Shared title terminologycs.LGQiang Hu, Kaiyi Ji
DisSparse: Pipelined Top-p Sparse Attention for Long-Context LLM Serving
Shared title terminologycs.LGNurlan Nazaraliyev, Elaheh Sadredini, Nael Abu-Ghazaleh
MosaicKV: Serving Long-Context LLM with Dynamic Two-D KV Cache Compression
Shared title terminologycs.LGSheng Qiang, Ruiwei Chen, Yinpeng Wu et al.
PersistentKV: Page-Aware Decode Scheduling for Long-Context LLM Serving on Commodity GPUs
Shared title terminologycs.LGMuhammad Ahmed
TS-Haystack: A Multi-Task Retrieval Benchmark for Long-Context Time-Series Reasoning
Shared title terminologycs.LGNicolas Zumarraga, Thomas Kaar, Ning Wang et al.