CacheSolidarity blocks prefix-caching side channels while boosting cache reuse by 70% and cutting latency 30%
CacheSolidarity prevents APC timing side channels in multi-tenant LLM serving without sacrificing performance
Systems arXiv 11 Mar 2026 Defense Prototype evidence
Published as “CacheSolidarity: Preventing Prefix Caching Side Channels in Multi-tenant LLM Serving Systems”
Why it matters
Deployers can protect multi-tenant LLM services from prefix-caching timing leaks without sacrificing most of the performance gains of APC.
Summary
CacheSolidarity closes the APC timing side channel and achieves up to 70% higher cache reuse and 30% lower inference latency compared to user-level isolation defenses, while staying within roughly 5-10% of the performance of unrestricted prefix caching. The paper backs this with experiments on five multi-tenant workloads, nine LLMs (0.5B-13B parameters), and shows per-request overhead of only 0.007 ms. Evidence is strong but limited to the evaluated workloads and hardware.
What they found 2
- CacheSolidarity enables up to 70% higher cache reuse and 30% lower inference latency compared to user-level isolation defenses
“CacheSolidarity enables up to 70% higher cache reuse and 30% lower inference latency compared to existing defenses that isolate users.”
- CacheSolidarity eliminates the observable TTFT spike that reveals a correct secret guess in an attacker workload
“This empirically confirms that CacheSolidarity successfully closes the timing leak on our “attacker workload”, thereby securing the system.”
Caveats 1
- For the large LLaMA-13B model the KV cache is very small, causing frequent evictions and more cache misses, which leads to larger TTFT differences across baselines
What’s new here 4
- Selectively isolates only suspicious prefixes instead of whole users
- Dynamically activates isolation based on measured timing distinguishability
- Adds lightweight metadata to cache entries for ownership and attack flags
- Provides an activator component that evaluates side-channel exploitability at runtime