Read What Matters: Query-Adaptive Quantization for KV Caches

Siddharth Bhandari, Lucas Gretta, Krishna Balasubramanian, Shiva KasiviswanathanarXiv 2026

TL;DR

ReadKV is a novel approach to KV-cache compression that decouples how much data you store from how much you actually read for each query. By using progressive codes and a two-stage adaptive reading strategy, it fetches only the most relevant bits for a specific query, reducing memory traffic by over 60% and latency by 39% while maintaining near-lossless model quality.

What Problem Does This Paper Address?

Large Language Model (LLM) decoding is notoriously memory-bound. As the conversation history (the "context") grows, the Key-Value (KV) cache expands, requiring massive amounts of data to be moved from memory to the processor at every single step.

Existing solutions usually involve quantization—compressing the KV cache to 4 or 2 bits. However, these methods face a fundamental mismatch: KV entries are stored before the future queries are known. A fixed-rate compression fetches the same bits for every query, even though a specific query might only need high precision for a small subset of key dimensions or a few specific value tokens. This leads to a "read budget" that is either too high (wasting bandwidth) or too low (hurting accuracy).

Methods

The authors introduce ReadKV, which treats storage and reading as two separate budgets.

1. Progressive Cache Representation

Instead of a fixed-rate code, ReadKV stores each key and value scalar in a progressive code (specifically, a Gaussian Lloyd tree). Think of this like a JPEG image that loads in stages: the first few bits give you a blurry version, and each additional bit adds more detail. The full 8-bit representation is stored once, but the reader can choose to fetch only the first 2 or 4 bits.

Query-time flow of ReadKV. The query selects key-prefix depths, computes attention, and then selects value-prefix depths.

2. Two-Stage Query-Adaptive Reading

ReadKV uses a "staged" reading process to decide which bits matter most for the current query:

  • Stage 1 (Key Read): The query examines its own coefficients to identify which key channels are most important. It fetches higher-precision prefixes for those specific channels across all tokens in the cache.
  • Stage 2 (Value Read): Using the keys reconstructed in Stage 1, the model computes attention weights. It then fetches higher-precision prefixes for the value tokens that received the most attention.
Query-time flow of ReadKV. The query selects key-prefix depths, computes attention, and then selects value-prefix depths.

3. Greedy Allocation

To stay within a fixed "read budget," ReadKV uses a greedy marginal-gain allocator. It repeatedly assigns the "next bit" to whichever channel or token provides the largest predicted reduction in error, ensuring the most informative bits are prioritized.

Datasets

The authors evaluated ReadKV across six base models (including Qwen2.5, Yi-1.5, DeepSeek-LLM, and Mistral) using:

  • C4: For standard language modeling perplexity.
  • LongBench: For long-context tasks like question answering (Qasper, HotpotQA, 2WikiMultihopQA).
  • Passkey Retrieval: A benchmark specifically designed to test if a model can remember a specific piece of information buried deep in a long context.

Key Insights and Ideas

  • The Power of Hindsight: The paper proves mathematically that a "query-dependent" reader (which sees the query before fetching bits) strictly outperforms any "query-independent" reader at the same read budget.
  • Amortizing the Write: Because KV entries are written once but read many times (especially in long contexts), it pays to store more precision than you intend to read on average. The extra "write traffic" is negligible compared to the cumulative "read traffic" savings.
  • Decoupling Throughput and Capacity: In this framework, the bits retained set the memory capacity (how many requests fit in RAM), while the bits fetched set the throughput (how fast you can process each step). ReadKV allows you to optimize both independently.

Key Results

  • Near-Lossless Quality: Reading an average of 4 bits from an 8-bit cache (W=8, R=4) increased C4 perplexity by at most 0.66%, significantly outperforming standard 4-bit quantization.
  • Massive Bandwidth Savings: On an NVIDIA A10G GPU, ReadKV (W=8, R=2) reduced DRAM read bytes by 62–65% compared to fused quantized codecs like TurboQuant.
  • Lower Latency: The same configuration achieved 39% lower latency than TurboQuant for an 8K-token workload.
  • Long-Context Robustness: On LongBench QA, ReadKV (8, 2) lost at most 1.46 F1 points while using only ~13% of the logical reads required by an uncompressed 16-bit cache.

Limitations and Future Work

  • System Integration: While the single-layer GPU kernels show impressive speedups, the authors note that full end-to-end serving advantages require deeper integration (fusing the allocation and reconstruction steps).
  • Hardware-Friendly Policies: The current GPU implementation uses a simplified "restricted" reader to maintain efficiency. Developing even more flexible yet hardware-efficient reading patterns is a key next step.
  • Tiered Memory: The authors suggest that progressive codes are a perfect fit for tiered memory systems, where coarse prefixes could live in fast HBM while fine-grained refinements reside in slower, cheaper memory.

Summary updated

BibTeX
@misc{bhandari2026read,
  author = {Siddharth Bhandari and Lucas Gretta and Krishna Balasubramanian and Shiva Kasiviswanathan},
  title = {{Read What Matters: Query-Adaptive Quantization for KV Caches}},
  year = {2026},
  eprint = {2610.11245},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.11245},
}
Figure