Recovering What Embeddings Lose: Detecting Cache Poisoning in LLM Semantic Caches
Keep the title, authors and abstract in paper.json
potentialpaper · 2026-11-23 19:15 UTC · 078cd65ff81e ·
.potentialpaper/metadata.json modified
+++ b/.potentialpaper/metadata.json@@ -1,19 +1,5 @@{- "layout": 5,- "identifiers": [- {- "scheme": "openreview",- "value": "iOMrEsKlZG"- }- ],- "title": "Recovering What Embeddings Lose: Detecting Cache Poisoning in LLM Semantic Caches",- "authors": [],- "abstract": "Semantic caches reduce LLM serving costs by reusing previously generated answers for semantically similar queries. \nHowever, retrieval is based solely on embedding similarity between the incoming query and cached queries. This design enables cache poisoning: an attacker can cache a malicious response under a query with high cosine similarity to benign requests.\nThe vulnerability stems from a gap between retrieval similarity and answer validity. \nFrom an information-bottleneck perspective, query embeddings can lose\ninformation needed to distinguish valid from invalid cache hits, which limits\nany matching algorithm that uses only these embeddings.\nWe propose a novel defense that recovers this necessary information from the raw text of the cache key. \nAcross poisoning attacks, adversarial queries share a rewrite-residual structure: they pair a rewrite of the target query with residual content. The rewrite maintains high similarity, while the residual elicits the malicious response. \nDeleting the residual makes the remaining rewrite more similar to the incoming query.\nWe exploit this structure using Deletion Gain to search shortened variants of the cached query for similarity gains, and an Answer Check to test whether the removed text contributes to the stored answer. \nWe prove that Deletion Gain stays positive when a deletion leaves text close enough to the rewrite, and we search for such deletions with a sliding window.\nAcross three poisoning attack classes, our defense blocks 82.0\\% to 98.2\\% of poisoned entries at a 5\\% false-positive rate, with negligible serving overhead.",- "year": 2027,- "venue": "ICLR 2027 (under review)",- "source": "openreview",- "license": {- "metadata": "CC0-1.0",- "abstract": "CC0-1.0"- }+ "layout": 6,+ "kind": "paper",+ "key": "4ed0f133-576a-43ca-a0a4-3a2c42a89d3a"}
paper.json added
+++ b/paper.json@@ -0,0 +1,9 @@+{+ "title": "Recovering What Embeddings Lose: Detecting Cache Poisoning in LLM Semantic Caches",+ "authors": [],+ "abstract": "Semantic caches reduce LLM serving costs by reusing previously generated answers for semantically similar queries. \nHowever, retrieval is based solely on embedding similarity between the incoming query and cached queries. This design enables cache poisoning: an attacker can cache a malicious response under a query with high cosine similarity to benign requests.\nThe vulnerability stems from a gap between retrieval similarity and answer validity. \nFrom an information-bottleneck perspective, query embeddings can lose\ninformation needed to distinguish valid from invalid cache hits, which limits\nany matching algorithm that uses only these embeddings.\nWe propose a novel defense that recovers this necessary information from the raw text of the cache key. \nAcross poisoning attacks, adversarial queries share a rewrite-residual structure: they pair a rewrite of the target query with residual content. The rewrite maintains high similarity, while the residual elicits the malicious response. \nDeleting the residual makes the remaining rewrite more similar to the incoming query.\nWe exploit this structure using Deletion Gain to search shortened variants of the cached query for similarity gains, and an Answer Check to test whether the removed text contributes to the stored answer. \nWe prove that Deletion Gain stays positive when a deletion leaves text close enough to the rewrite, and we search for such deletions with a sliding window.\nAcross three poisoning attack classes, our defense blocks 82.0\\% to 98.2\\% of poisoned entries at a 5\\% false-positive rate, with negligible serving overhead.",+ "license": {+ "metadata": "CC0-1.0",+ "abstract": "CC0-1.0"+ }+}