ReadKV keeps cache detail without reading it all
Read What Matters: Query-Adaptive Quantization for KV Caches · arXiv:2610.11245
In plain words
ReadKV is a method for compressing the saved key, value information a language model consults while continuing a long text. It keeps a more detailed stored version, but does not read every stored bit at every step.
For each new query, it first reads the key detail that matters most, estimates which earlier tokens matter, and then reads more value detail there.
On six language models, an eight-bit stored cache read at four bits on average stayed within 0.66% of an uncompressed cache’s perplexity, a next-token prediction score, while using about one quarter of its counted reads.
The research
When a language model handles a long context, it repeatedly consults saved information from earlier tokens. It remains unclear whether retaining extra detail for future queries can reduce each read without simply throwing away information.
That matters here because stored capacity and per-step read volume are separate costs in the paper’s cache model.
ReadKV separates stored precision from fetched precision, letting each decoding query read only the key and value detail it needs.
ReadKV stores each key and value scalar in a progressive code: longer prefixes reconstruct it more precisely. For a new query, it allocates key prefixes from the query, computes attention from those reconstructed keys, and allocates value prefixes from the resulting attention. This separates retained detail from the average payload read per scalar.
Across six C4 document tests of next-token prediction, ReadKV (8,4) increased perplexity, where lower is better, by at most 0.66% versus Dense, the uncompressed 16-bit cache, while using about 25% of its logical reads and 50% of its retained capacity.
In six 7,500-token question-answering conditions, (8,2) used about 13% of Dense logical reads, with token-F1 changes from −0.66 to +1.46 points. The evidence supports a quality–read tradeoff, not a uniform win over every comparator.
The theoretical separations apply only to specified transformed-sparse or specially constructed attention families, and the allocation theorem is stagewise rather than a joint guarantee for true attention-output error.
The GPU result is a single-layer, batch-one A10G measurement from an existing cache, so it does not establish end-to-end serving or throughput gains.
What the evidence shows
- The access mismatch
ReadKV is a query-adaptive KV-cache compression and reading method for autoregressive language models. The problem is that the cache is written before future decoding queries are known, while different queries may need different key channels and value tokens.
A fixed-rate cache ties stored precision to the precision every query reads. ReadKV asks whether those two costs can be separated without discarding detail that a later query may need.
- Two-stage reading
It stores each scalar in a progressive code, whose longer prefixes give finer reconstructions. For each query, the reader first uses query-weighted key channels to choose prefixes across cached tokens.
An intermediate decoder estimates attention from those reconstructed keys; the estimated attention then chooses value-token prefixes for a second read. This causal order lets one query spend detail where its current attention calculation needs it, while the stored record remains unchanged for later queries.
- What theory isolates
Two theoretical comparisons make the claimed mechanism testable. In a transformed-sparse inner-product family, ReadKV can read the active transformed coordinates while a query-independent branching reader cannot make its access path depend on the query.
At equal read budget, ReadKV has lower worst-case squared error under a stated condition. A separate two-token attention family extends the contrast through the key-to-value transition, with a certified per-coordinate error below 9.50x10^-5 versus above 2.285x10^-4 for every query-independent comparator.
- Quality across tasks
Quality tests ask whether this design preserves downstream behavior. C4 measures next-token prediction on documents with perplexity, where lower is better; across six base models, ReadKV (8,4) increased perplexity by at most 0.66% versus Dense while using about 25% of Dense’s counted logical reads and 50% of its retained cache capacity.
In six 7,500-token question-answering conditions, ReadKV (8,2) used about 13% of Dense logical reads, but its F1 changes ranged from −0.66 to +1.46 points.
- Controls and hardware
A fixed-split control supports the role of the current query: on Qwen3B, replacing current-query key allocation with calibration-only allocation raised perplexity from 11.789 to 12.011, and 31 of 32 documents favored the query-based choice.
Separately, a restricted single-layer GPU test on an NVIDIA A10G found 0.093 ms versus 0.154 ms for TurboQuant at 8K tokens and batch one, plus 62–65% fewer DRAM read bytes. These results concern distinct quality and hardware setups.
Deep
- Original paper authors
- Siddharth Bhandari, Lucas Gretta, Krishna Balasubramanian, Shiva Kasiviswanathan
- Submitted to arXiv
- License
- arXiv non-exclusive