arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2502.07776cs.CLcs.CRcs.LG
收藏

审计语言模型 API 中的提示缓存

Auditing Prompt Caching in Language Model APIs

stanford(斯坦福大学)

Chenchen Gu, Xiang Lisa Li, Rohith Kuditipudi, Percy Liang, Tatsunori Hashimoto

AI总结:

本研究开发了统计审计方法检测 LLM API 提供商中的提示缓存,发现包括 OpenAI 在内的七个提供商存在跨用户缓存共享导致隐私泄露风险,并首次揭示 OpenAI 嵌入模型为 decoder-only Transformer 架构。

摘要:

大型语言模型(LLM)中的提示缓存会导致依赖于数据的计时变化:缓存的提示比未缓存的提示处理得更快。这些计时差异引入了侧信道计时攻击的风险。例如,如果缓存在用户之间共享,攻击者可以从快速的 API 响应时间中识别出缓存的提示,从而获取关于其他用户提示的信息。由于提示缓存可能导致隐私泄露,API 提供商缓存策略的透明度非常重要。为此,我们开发并进行了统计审计,以检测现实世界 LLM API 提供商中的提示缓存。我们在包括 OpenAI 在内的七个 API 提供商中检测到了跨用户的全局缓存共享,这导致了用户提示的潜在隐私泄露。提示缓存导致的计时变化还可能泄露有关模型架构的信息。具体而言,我们发现了证据表明 OpenAI 的嵌入模型是一个 decoder-only Transformer,这在之前是未公开的。

英文摘要:

Prompt caching in large language models (LLMs) results in data-dependent timing variations: cached prompts are processed faster than non-cached prompts. These timing differences introduce the risk of side-channel timing attacks. For example, if the cache is shared across users, an attacker could identify cached prompts from fast API response times to learn information about other users' prompts. Because prompt caching may cause privacy leakage, transparency around the caching policies of API providers is important. To this end, we develop and conduct statistical audits to detect prompt caching in real-world LLM API providers. We detect global cache sharing across users in seven API providers, including OpenAI, resulting in potential privacy leakage about users' prompts. Timing variations due to prompt caching can also result in leakage of information about model architecture. Namely, we find evidence that OpenAI's embedding model is a decoder-only Transformer, which was previously not publicly known.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑