Skip to content

Auditing Prompt Caching in Language Model APIsAuditing Prompt Caching in Language Model APIs

arXiv· arXiv:2502.07776· Chenchen Gu, Xiang Lisa Li, Rohith Kuditipudi, Percy Liang, Tatsunori Hashimoto·Indexed by this site · 19 days ago· Originally publishedAttacks
AI summary

The researchers develop a statistical audit method and detect prompt caching shared across users at seven language model API providers, including OpenAI, which may lead to privacy leakage of users' prompt content. Prompt caching makes cached prompts process faster, and the resulting timing differences constitute a side-channel risk: an attacker can identify cache-hit prompts from faster API response times and thereby learn information about other users' prompts. The authors also find that such timing differences may leak model architecture information, with evidence indicating that OpenAI's embedding model is a decoder-only Transformer, which had not been publicly disclosed before. The paper emphasizes that because prompt caching may lead to privacy leakage, transparency from API providers about caching policies is important.

Related events and news

1 events · 1 news mentions

News that mentions this paper

Cloudflare 披露 GLM-5.3 跨租户缓存泄露并修复

Read originalarxiv.org