CachePrune eliminates KV cache side-channel leakage and speeds LLM inference 4.5×
CachePrune prevents direct leakage from KV cache reuse while achieving faster time-to-first-token and higher cache hit rates
Security & privacy arXiv 22 May 2026 Method Prototype evidence
Published as “CachePrune: Privacy-Aware and Fine-Grained KV Cache Sharing for Efficient LLM Inference”
Why it matters
CachePrune makes privacy-preserving KV cache sharing practical, delivering multi-fold latency reductions without exposing sensitive prompts.
Summary
CachePrune eliminates direct leakage through KV cache reuse side channels while cutting time-to-first-token by up to 4.5× and boosting cache hit rates by 44% versus prior approaches. It achieves this by detecting sensitive tokens and sharing only non-sensitive KV entries at token granularity, using summed-area tables and rolling-hash retrieval to keep overhead low. Evaluations on three datasets show up to 94.57% of KV entries are reused, with negligible impact on generation quality. However, limited contextual leakage remains (2.2% exact, 6.4% semantic recovery).
What they found 3
- Eliminates direct leakage while reducing TTFT by 4.5× and increasing cache hit rates by 44%
“showing that it eliminates direct leakage through KV cache reuse side channels while reducing TTFT by 4.5x and increasing cache hit rates by 44% compared with approaches.”
- Reuses up to 94.57% of tokens’ KV cache compared to non-sharing baselines
“End-to-end evaluations show that CachePrune reduces TTFT by up to 4.5x and reuses up to 94.57% of tokens’ KV cache compared to non-sharing baselines.”
- Contextual leakage remains limited (2.2% exact, 6.4% semantic recovery)
“showing that contextual leakage remains limited in practice, as CachePrune does not expose the positions or counts of sensitive tokens, nor the grouping or ordering of nonsensitive tokens, resulting in only 2.2% exact recovery and 6.4% semantic recovery under SOTA attacks [51].”
Caveats 3
- Contextual leakage is not fully prevented: 2.2% exact and 6.4% semantic recovery of sensitive content were observed under attacks.
- detectors are inherently imperfect-a limitation shared by all detection-based systems.
- This applies only to direct leakage; contextual leakage from partially recovered content lies outside this design, yet we evaluate and analyze its impact in Sec. 5.2.
What’s new here 4
- Fine-grained token-level KV cache sharing instead of fixed-size chunks.
- Summed-area table algorithm to evaluate intra- and inter-attention for arbitrary substrings in O(1) time.
- Rolling-hash based retrieval enabling efficient matching of variable-length cached segments.
- Pluggable sensitivity detection allowing integration of existing privacy filters.