节省的时间去了哪里:在LLM服务中隐藏跨租户缓存命中的局限性 Where the Savings Go: The Limits of Hiding Cross-Tenant Cache Hits in LLM Serving 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-11-15
👁️ 预览文献
💡 AI 中文简介
本文研究LLM服务中共享缓存带来的隐私泄露问题。缓存命中会加速请求,从而暴露他人是否发送过相同文本。现有防御试图隐藏命中,但作者发现节省的时间会传递给后续请求。攻击者通过发送探测请求并观察后续请求的完成步数,能高精度检测缓存文本。实验显示,在vLLM上检测256 token以上文本的准确率优势达0.98。作者证明任何可观测的租户收益都是信号,完全隐藏需付出随时间增长的代价。
领域计算机系统安全与隐私,具体为LLM服务中的侧信道攻击与防御
适合谁读需要一定专业背景(了解LLM推理、缓存和调度基础)
核心贡献1. 揭示基于步的调度器会将缓存命中节省的时间传递给后续请求,形成新的侧信道;2. 证明任何可观测的租户收益都是信号,并给出信息泄露的理论下界。
关键数据在vLLM上单次探测检测256 token以上缓存文本的优势≥0.98;随机延迟需达到时间偏移的约10倍才能将优势降至0.1;理论证明速率受限租户从k个其他账户内容中的收益至多为O(k)倍允许泄露。
推荐理由如果你关心LLM服务的隐私安全,这篇文章用巧妙的攻击实验和严谨的理论证明,揭示了缓存共享中隐藏命中的根本局限,值得一读。
关键词["LLM服务", "缓存侧信道", "隐私保护", "跨租户缓存", "调度器", "信息泄露"]

原文摘要

查看英文原文摘要

LLM serving engines cache prompt prefixes; a cache hit skips computation and returns faster, so a shared cache reveals whether others have sent a given text. Per-account salting closes this channel but forgoes cross-tenant reuse and isolates only whole accounts, even where access is redistributed or trust domains are subdivided below them. Defenses that share globally but hide hits promise reuse without relying on account boundaries. Hiding a hit requires everything tenants observe afterwards to be distributed as if it had missed. The defenses we examine target the hit-miss gap; we instead follow where the saved time goes. Step-based schedulers that never idle while work waits pass it in full to every request queued behind the hit, shifting each earlier by the same amount. An attacker within ordinary rate limits brackets a probe with two groups of listeners that each return one token, sends them in one short burst, and counts in how many steps they finish. Replaying a production trace on one vLLM instance at up to half capacity, a single probe detects cached texts of 256 tokens or more with advantage at least 0.98. Hiding only the hit request falls to one probe on vLLM and SGLang; random delays must reach about ten times the shift or more to cut the advantage to 0.1; narrowing what is shared gives no guarantee against this inference. Since any observable tenant benefit is also a signal, we prove that a rate-limited tenant's gain from content written by k other accounts is at most of order k times the leakage allowed, whatever the provider does with identities; at zero leakage, only the provider keeps the savings. Exact hiding is attainable in principle on one instance, but mechanisms that only pause or hold work know skipped work's duration only approximately, so under saturated prefill they must pad every step that may hold a hit, at a price that grows with time rather than with hits.