Researchers made LLM inference 14x faster and 90% cheaper.
The video below depicts the speedup in action.
Providers discount cached input tokens by as much as 90% because a cache hit skips prefill compute entirely.
For stable system prompts and tool definitions, hit rates of 60 to 85% are achievable, which makes it the highest-leverage inference optimization.
But the cost saving only works when the cached text is an exact, byte-for-byte prefix of the new request. If you change one character anywhere before it, the entire cached region is missed.
Three common request patterns produce full cache misses:
- A query that needs documents A and B together can't reuse B's standalone cache, because those KV entries were computed without A in front of them.
- The same three documents retrieved in a different order produce a full cache miss, even though nothing about the documents changed.
- In multi-turn conversations, every new turn invalidates whatever was cached beyond the stable prefix.
Alibaba's production data did a study on this and found that just 10% of cached KV blocks serve 77% of all cache hits.
So most of what gets cached sits in storage and is never used a single time. And the root cause is that KV entries are position-dependent.
Each token's KV encodes attention to everything before it, so a cached block is only valid in the exact context it was computed in.
There's a second, less discussed problem as well.
Cache management runs inside the inference engine's process.
Moving KV tensors between GPU, CPU, and disk competes with inference for the same resources.
This is why Google's TurboQuant compresses KV caches to 3 bits with no accuracy loss and still causes a 20%+ slowdown when it runs in-process.
Fixing both problems means restructuring where caching lives. Cache management moves into its own process, the engine only exchanges block IDs over shared GPU memory, and heavy data movement runs across GPU, CPU, disk, and remote storage in parallel.
Non-prefix reuse gets handled by selectively recomputing only the small set of tokens that attend across document boundaries.
LMCache is the open-source project (10k+ stars) that implements this exact architecture, and it plugs into vLLM, SGLang, and TensorRT-LLM.
The selective recomputation part is implemented in its CacheBlend technique, which makes cached docs in any order and combination, with 2-4x faster multi-document processing.
On H200s running Qwen3-235B with 50 concurrent users, LMCache's multiprocess mode delivers 14x faster time-to-first-token and 4x faster decoding compared to in-process caching.
This is one of the many ways to control KV-cache cost.
I covered 12 other methods in the KV Cache Engineering article. It explains which part of the cost each method reduces and whether it requires a different model architecture or only a serving-engine change.
Read it below.
I built a 74 KB bare-metal hypervisor that puts a 2B LLM BELOW Linux in Ring -1, catches a fatal Kernel panic mid-crash, patches the broken machine code live in RAM, and keeps Linux running without a reboot.
Left window is standard Linux dying instantly from a Ring 0 NULL-pointer write (*(u32 *)0 = 0xDEADBEEF). Right window runs the exact same crash command under my custom Type-1 AMD SVM hypervisor (x86-64 NASM assembly + zero-libc C, 0 host OS).
Instead of crashing, Ring -1 freezes Linux before it can panic, runs a GRPO-trained MiniCPM5-2B (Q4_K_M) across 24 AVX2 cores in 11.1 seconds, overwrites those 11 faulting bytes in guest .text physical RAM with 11x NOP (0x90) via NPT, and calls `VMRUN`.
Linux prints SURVIVED NULL-DEREF! and uptime never resets.
We used a tiny /proc/surgeon_crash test module to trigger clean Ring 0 crashes side by side. On 122 unseen fault scenarios (including unsafe spinlock crashes it must refuse to patch), this GRPO checkpoint hits 97.54% pass@1 with 0 dangerous patches (vs 16.39% on base).
Full NASM + C source code (75,424 bytes binary) is live in my llm.asm repo (MIT, link below).