RaBitQCache: Rotated Binary Quantization for KVCache in Long Context LLM Inference

Wenhao Li, Jinhao Dong, Hailin Zhang, Wenhang Shi, Wei Lu +1 more
6/30/2026
cs.LGcs.CL

Official code: Sakuraaa0/RaBitQCache (9 stars, last commit 2026-05-18).

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.

View on arXivView PDF

Code Implementations(1)

[ICML'26] RaBitQCache: Rotated Binary Quantization for KVCache in Long Context LLM Inference

91May 18, 20265 months ago

Similar Papers

Cite this paper

@article{li2026rabitqcache,
  title  = {RaBitQCache: Rotated Binary Quantization for KVCache in Long Context LLM Inference},
  author = {Wenhao Li and Jinhao Dong and Hailin Zhang and Wenhang Shi and Wei Lu and Xiaoyong Du},
  year   = {2026},
  eprint = {2606.31519},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.31519v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2606.31519.svg)](https://codeofpaper.com/paper/2606.31519)

Discussion