Through the Lens of Stealthiness: Attention-Aware Defense Against RAG PoisoningThrough the Stealth Lens: Attention-Aware Defenses Against Poisoning in RAG
The researchers propose an attention-weight-based defense method to detect poisoned passages injected into RAG-retrieved context, improving accuracy by up to about 20% over baseline defenses. The paper points out that existing poisoning attacks are not designed for stealthiness and can therefore be reliably detected, and formalizes a distinguishability-based security game to quantify stealthiness, whose core observation is that for a small number of poisoned passages to control the response, they must bias the reasoning process more than benign passages. Based on attention weights, the authors propose the Normalized Passage Attention Score (NPAS) and a lightweight Attention-Variance Filter (AV Filter) to flag anomalous passages. The authors also develop adaptive attacks that attempt to hide such anomalies, with a success rate of up to 35%, indicating that achieving true stealthiness in RAG poisoning remains challenging.