← Lab /Security & privacy

Attention collapse reveals RAG poisoning, enabling detection

Poisoned RAG outputs cause attention entropy to collapse, and their D-SCAN method can detect such attacks

Security & privacy arXiv 7 Aug 2026 Defense Simulation evidence

Published as “When Context Bites: Detecting RAG Poisoning via Document-Level Attention Collapse”

Why it matters

Enables early, mechanism-level detection of RAG poisoning in high-stakes QA systems, potentially preventing harmful outputs before they appear.

Summary

The paper introduces D-SCAN, a lightweight detector that monitors document-level attention collapse to spot RAG poisoning attacks, and reports that it consistently outperforms existing output-side detectors and can flag attacks even when the final answer is unchanged. The evidence is based on experiments on three public multi-hop QA benchmarks, but the exact numerical results are not provided in the excerpt.

What they found 2

  1. D-SCAN outperforms prior detection baselines.

    “D-SCAN consistently outperforms both generalized LLM-based detectors and specialized detection methods.”

  2. D-SCAN can detect attacks even when they fail to change the final answer.

    “Notably, D-Scan can reliably detect adversarial intent regardless of whether the attack ultimately succeeds.”

What’s new here 4

  • Detects poisoning by measuring a drop in document-level attention entropy rather than relying on output perplexity or consistency.
  • Works even when the attack does not alter the generated answer.
  • Provides an interpretable, real-time signal derived from the model's internal attention dynamics.
  • Demonstrates that smaller LLMs can be more effective zero-shot detectors than larger ones.