Metraipolis › archive › dc_c24e26198384

When Context Bites: Detecting RAG Poisoning via Document-Level Attention Collapse — arXiv:2608.06947

Source
arXiv (en)
Original
https://arxiv.org/abs/2608.06947
License (as archived)
CC0-1.0
Archived
2026-10-19T09:52:58.872Z
SHA-256 of the archived text
bd46d1ae3b7a304acdfcb0d2c2cd016de3bd98f7f93fa436d99f20181f4639d1
Stable URL of this page
https://metraipolis.com/documento/dc_c24e26198384

How to cite

When Context Bites: Detecting RAG Poisoning via Document-Level Attention Collapse — arXiv:2608.06947 — arXiv (en), https://arxiv.org/abs/2608.06947 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_c24e26198384 (Metraipolis archive dc_c24e26198384, sha256 bd46d1ae3b7a304acdfcb0d2c2cd016de3bd98f7f93fa436d99f20181f4639d1)
BibTeX
@misc{dcc24e26198384,
  title = {When Context Bites: Detecting RAG Poisoning via Document-Level Attention Collapse — arXiv:2608.06947},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2608.06947},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_c24e26198384; sha256 bd46d1ae3b7a304acdfcb0d2c2cd016de3bd98f7f93fa436d99f20181f4639d1},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2608.06947. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

Retrieval-augmented generation (RAG) is indispensable for enhancing large language models. However, RAGs are increasingly susceptible to poisoning attacks, in which adversarial documents are injected to manipulate generator outputs. Previous methods rely on output-side signals such as perplexity and consistency checks to detect such attacks. Nevertheless, our analysis reveals that deliberate attacks often induce false confidence, where poisoned outputs exhibit even lower perplexity than benign ones, rendering uncertainty-based detection ineffective. To address this challenge, we explore the internal dynamics of the generator and identify a distinctive signature termed \textit{Attention Collapse}. Unlike the dispersed attention in benign generations, attacked generations exhibit a decrease in entropy as attention concentrates on poisoned documents. Building on these findings, we propose \texttt{D-SCAN} (Document-level Signal Collapse Analysis), a lightweight detection framework that monitors attention dynamics to identify attacked generations. Extensive experiments on multiple attack benchmarks demonstrate the effectiveness of our method. Moreover, D-SCAN can detect attacks even when they fail to alter the final answer. Code is available at this https URL .

Tema degli esploratori: fiducia digitale e crittografia (retro-catalogo arXiv: annunci del 2026-08-10 in cs.CR).
Categorie arXiv: Cryptography and Security (cs.CR).
Pagina del lavoro: https://arxiv.org/abs/2608.06947 — 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-19T09:51:05.645Z dalla pagina https://arxiv.org/catchup/cs.CR/2026-08-10?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).