Skip to content

PrefixWall: Mitigating Prefix Cache Side Channels in Shared LLM SystemsPrefixWall: Mitigating Prefix Caching Side Channels in Shared LLM Systems

arXiv· arXiv:2603.10726· Panagiotis Georgios Pennas, Konstantinos Papaioannou, Marco Guarnieri, Thaleia Dimitra Doudali·Indexed by this site · 2026-10-12· Originally publishedDefenses

Translation in progress — untranslated text is omitted.

Quick read

Defenses

Based on the paper PDF (AI-generated); refer to the original

AI summaryPrefixWall defends against the Automatic Prefix Caching (APC) side channel in multi-tenant LLM services by monitoring cross-user cache reuse, marking suspicious sharing, and selectively isolating prefixes, without sacrificing performance. Existing defenses typically disable APC and cache sharing entirely to isolate users, at the cost of efficiency; PrefixWall restricts prefix reuse only when necessary. Evaluation shows that, compared to such isolation-based defenses, it improves cache reuse by up to 70% and reduces inference latency by 30%.

Questions
In multi-tenant LLM services, when APC reuses the same prefix, a hit is faster than a miss. An attacker can measure TTFT to determine whether a prefix matches and reconstruct other people's prompts item by item. Cutting off sharing per user or adding noise makes normal users lose the caching benefit.
Methods
PrefixWall records the first owner for each cache entry, marks it when other users reuse it, and non-owners cannot continue reuse along the marker while owners can. The Activator compares the KDE overlap and threshold of recent hit and miss TTFT to decide whether to enable this isolation.
Experiments and results
On A100 with 9 models and 5 workloads constructed from ShareGPT, the authors claim up to 70% higher cache reuse and 30% lower latency compared to per-user isolation. Without protection, the hit rate for guessing requests reaches 100%; PrefixWall shows no such spike; the additional latency totals 0.007 ms per request.
Limitations and future work
Section 4 states that the guarantee does not cover theft of the first item of a prompt, nor does it cover the first guess on an unmarked prefix; when the threshold is too low, isolation may not be enabled. The evaluation compares Prefix Caching with user-level isolation on one A100; the paper does not report the number of repetitions, the sliding window length, or the θ used in the main experiment.

Related papers

Read originalarxiv.org