论文精选

多租户LLM服务中KV缓存竞争可靠性研究

Characterizing Contention-Induced Reliability Collapse in KV-Cache Timing Side Channels for Multi-Tenant LLM Serving

精选理由

研究揭示了多租户环境下LLM服务KV缓存时序攻击可靠性随负载变化的规律,对实际部署安全有重要参考价值。

研究人员通过七项实验研究了共享LLM服务系统中KV缓存重用引发的时序侧信道攻击可靠性。在vLLM服务器上运行DeepSeek-R1-Distill-Llama-8B模型时,Cohen's d值从无竞争时的0.7789降至两个工作竞争时的0.2109。AUROC值从环境负载下的0.650降至61%重叠时的0.531,在饱和时部分恢复至0.574。并发深度方差与效应大小(r=-0.416)和命中率一致性(r=-0.637)呈强相关。

原文 · arXiv: DeepSeek

Characterizing Contention-Induced Reliability Collapse in KV-Cache Timing Side Channels for Multi-Tenant LLM Serving

Shared key--value (KV) cache reuse improves large language model (LLM) serving, but it can also create a timing side channel that reveals whether a prefix is already cached. Previous work shows that such attacks are possible, but their reliability under realistic multi-tenant contention is less understood. We study this problem through seven experiments on live shared LLM-serving systems. On a vLLM server running DeepSeek-R1-Distill-Llama-8B on NVIDIA GB10, mean Cohen's d drops from 0.7789 with no synthetic workers to 0.2109 with two workers (t=8.412), while higher worker counts cause no statistically detectable further loss. A 120-run sparse-overlap experiment places the best breakpoint at the boundary of the measured range (tau=0, 95% CI [0.000,0.113]), supporting an ambient-versus-loaded regime change rather than an internal physical threshold. AUROC falls from 0.650 at ambient to 0.531 near 61% overlap and partially recovers to 0.574 at saturation. Concurrency-depth variance is the strongest measured correlate of effect size (r=-0.416) and hit consistency (r=-0.637). An interleaved control preserves the same non-monotonic ordering. The main collapse is also reproduced on a real two-node, two-GPU tensor-parallel vLLM setup, where mean d falls from 3.418 to 0.511 (p<0.01). Two SGLang pilots are statistically inconclusive. Overall, KV-cache timing reliability depends strongly on the load regime and serving stack, and measurements on quiet systems can overestimate operational attack reliability.