Prefix caching breaks on reordered documents, while CacheBlend keeps about 95% cached
blaizedsouza · x · 2026-07-21
Why prefix caching breaks and how CacheBlend fixes it
The post argues that most KV cache entries in real LLM systems never get reused, and that plain prompt caching is not enough once prompts become dynamic.
Key points:
- Prompt caching can cut cached input token cost by up to 90%, with realistic hit rates of 60–85%.
- But it only works when the cached text is an exact byte-for-byte prefix of the next request.
- That breaks in common cases like multi-document RAG, changing document order, and other prompt permutations.
- The attached diagram contrasts prefix caching with CacheBlend, which recomputes only boundary tokens so the cache can survive reordering.
- The claim is that this yields much higher reuse, roughly 95% cached, and can be 2–4× faster.
The linked article is framed as a practitioner’s guide to better KV cache management and lower inference cost.
More from Infra
- RTK Terminal Compression Cuts Tokens but Leaves Your AI Coding Bill Unchanged — Bartaseth · 2026-09-11
- SF Compute founder: buying compute is 'an absolutely awful experience' right now — IgorCarron · 2026-09-11
- SmolVM open-sources persistent computer infrastructure for agents that outlive chat sessions — aniketmaurya · 2026-09-11
- PyTorch Day Korea 2026 launches first offline conf, CFP closes Sept 13 — PyTorch · 2026-09-11
- Local LLM server dilemma: 4x CMP-170HX (price up 53% in 20 days) vs Mac Studio M5 Ultra — rumboll · 2026-09-11
- llama.cpp lands Flash Attention tuning for RDNA4, big prefill gains on AMD — pmttyji · 2026-09-11