Metraipolis › archive › dc_768695a7a166
Similarity Is Not Validity: Defending LLM Semantic Caches Against Poisoning — arXiv:2609.35908
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2609.35908
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-07T16:24:56.819Z
- SHA-256 of the archived text
7519b6fd9d3645c3a49fbfdbec5edb10d5a48a4c290a0a65e650dd1648e4b387- Stable URL of this page
https://metraipolis.com/documento/dc_768695a7a166
How to cite
Similarity Is Not Validity: Defending LLM Semantic Caches Against Poisoning — arXiv:2609.35908 — arXiv (en), https://arxiv.org/abs/2609.35908 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_768695a7a166 (Metraipolis archive dc_768695a7a166, sha256 7519b6fd9d3645c3a49fbfdbec5edb10d5a48a4c290a0a65e650dd1648e4b387)
BibTeX
@misc{dc768695a7a166,
title = {Similarity Is Not Validity: Defending LLM Semantic Caches Against Poisoning — arXiv:2609.35908},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2609.35908},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_768695a7a166; sha256 7519b6fd9d3645c3a49fbfdbec5edb10d5a48a4c290a0a65e650dd1648e4b387},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2609.35908. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
Semantic caches reduce LLM serving costs by reusing previously generated answers for semantically similar queries. However, 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. The vulnerability stems from a gap between retrieval similarity and answer validity. From an information-bottleneck perspective, query embeddings can lose information needed to distinguish valid from invalid cache hits, which limits any matching algorithm that uses only these embeddings. We propose a novel defense that recovers this necessary information from the raw text of the cache key. Across 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. Deleting the residual makes the remaining rewrite more similar to the incoming query. We 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. We 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. Across 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. Tema degli esploratori: agenti e intelligenza artificiale (retro-catalogo arXiv: annunci del 2026-09-30 in cs.AI). Categorie arXiv: Cryptography and Security (cs.CR) ; Artificial Intelligence (cs.AI). Pagina del lavoro: https://arxiv.org/abs/2609.35908 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito). Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina. Letto il 2026-10-07T15:54:53.734Z dalla pagina https://arxiv.org/catchup/cs.AI/2026-09-30?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).