Cross-Dataset Generalizable Detection of Knowledge Poisoning in Retrieval-Augmented Generation: A Medical Case Study
Abstract
Retrieval-Augmented Generation (RAG) systems retrieve documents to ground language model outputs, but this creates a security risk: an attacker who inserts even a few malicious documents into the retrieval corpus can manipulate what the system reports as fact. Existing defenses against this threat are typically evaluated within individual datasets and against attack types represented during development, so whether they generalize is unclear. We propose a poisoning detector built from five types of evidence: agreement with other retrieved evidence, citation authenticity, writing-style anomalies, retrieval behavior, and flawed reasoning patterns. We tested it under two realistic stress conditions: transfer to two medical question-answering datasets it was never trained on, and exposure to an attack type it never saw during training. The result is not a clean win. Our detector does not outperform every baseline on every dataset, but under the template-based cross-dataset and cross-attack conditions tested, it exhibits the smallest cross-dataset performance variation among the evaluated methods, with F1 remaining between 0.659 and 1.000 across all conditions tested, while the weakest baseline collapses sharply under dataset shift: reranking's F1 swings from 0.993 to 0.019 depending on the dataset, while ours stays between 0.659 and 1.000. Ablation analysis explains why: features describing a passage's writing style transfer well across datasets, while features based on retrieval…
Read the paper
Related studies
- Animal models of schizophrenia
- Retrieval Augmented Visual Question Answering with Outside Knowledge
- Fine-grained Late-interaction Multi-modal Retrieval for Retrieval Augmented Visual Question Answering
- Understand What LLM Needs: Dual Preference Alignment for Retrieval-Augmented Generation
- Retrieval-Augmented Embodied Agents
- Retrieving, Rethinking and Revising: The Chain-of-Verification Can Improve Retrieval Augmented Generation
Go deeper in Evidence Hub
Evidence Hub adds a study data sheet (design, sample size, evidence level, key numbers), an AI summary and a chat grounded in the paper's text.