mlsanityData to 7 Oct 2026

Fractal KV-Cache Archives: Lossless Symbolic Storage with In-Place Retrieval for Long-Context LLM Inference

arXiv 2607.07144 ↗First posted 8 Jul 2026cs.LGcited by 0

On the map: Efficient LLM inference and serving → KV cache quantization

Abstract (arXiv)

The key-value (KV) cache dominates the memory cost of long-context autoregressive inference, and a growing body of work compresses it through quantization, eviction, or offloading. We study a complementary question: once a position's KV state has been quantized to codebook indices, how should the resulting symbol stream be stored, and can the storage layer do more than store? A family of contractive iterated-map codes that serialize a symbol sequence into a sequence of low-dimensional real vectors is revisited, and it is shown that they form a natural archive format for a quantized KV cache with the following features. The method provides exactly the access pattern a growing cache requires. It is lossless, it runs in linear time, and supports O(1) random access and O(1) amortized append. A controlled study of the quantizer feeding this archive is conducted on GPT-2 with 1024-token contexts. Keeping a small exact window (4 attention sinks plus 32 recent tokens) and archiving the rest, per-head residual vector quantization reduces the archived cache by 36-54x relative to an fp16 cache at a perplexity cost of 11-15%, and we quantify a sharp key/value asymmetry - quantizing keys is roughly 4x more damaging than quantizing values, consistent with prior low-bit KV work - and use it to allocate bits in a hybrid scheme. Finally, we show the archive is simultaneously a search index: approximate substring queries execute directly on the stored vectors, and matched context is decoded from the matched vector without ever materializing the surrounding text. We further characterize the archive's operating range: truncating stored points yields a lossy regime whose distortion we localize, and probability-weighting the maps recovers arithmetic coding, exposing a trade-off between rate efficiency, random access, and memory. We release all code; every number reproduces on a laptop CPU.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in KV cache quantization, one of 12 directions in Efficient LLM inference and serving. Builds on 5 of its 11 references that are in the map. First posted on arXiv 8 Jul 2026.

Builds on

5 of 11 references.

Closest ancestors · 3

Same direction, newest first

  1. 2026FibQuant: Universal Vector Quantization for Random-Access KV-Cache Compression12 May
  2. 2024KIVI: A Tuning-Free Asymmetric 2bit Quantization for KV Cache5 Feb
  3. 2024KVQuant: Towards 10 Million Context Length LLM Inference with KV Cache Quantization31 Jan

Other references · 2

  1. 2023Efficient Streaming Language Models with Attention Sinkscited by 2,115
  2. 2023H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Modelscited by 805

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026Tailoring the Quantization Space for 1-Bit KV Cache Compression
  2. 2026AnchorKV: Anchor-Residual KV Cache Compression
  3. 2024Get More with LESS: Synthesizing Recurrence with KV Cache Compression for Efficient LLM Inference
  4. 2025PatternKV: Flattening KV Representation Expands Quantization Headroom
  5. 2024More Tokens, Lower Precision: Towards the Optimal Token-Precision Trade-off in KV Cache Compression
  6. 2026KVSculpt: KV Cache Compression as Distillation
  7. 2026OScaR: The Occam's Razor for Extreme KV Cache Quantization in LLMs and Beyond
  8. 2025H1B-KV: Hybrid One-Bit Caches for Memory-Efficient Large Language Model Inference