Who Taught the Lie? Responsibility Attribution for Poisoned Knowledge in Retrieval-Augmented Generation

Baolei Zhang, Haoran Xin, Yuxi Chen, Zhuqing Liu, Biao Yi, Tong Li, Lihai Nie, Zheli Liu, Minghong Fang · DOI

Retrieval-Augmented Generation (RAG) has become the gold standard for grounding Large Language Models (LLMs) in factual, up-to-date information. By fetching relevant documents from a database before generating a response, RAG minimizes "hallucinations." However, this reliance on external data creates a massive security hole: knowledge poisoning. If an attacker slips a few carefully crafted "lies" into your database, they can force the LLM to output specific misinformation.

In a new paper slated for the 2026 IEEE Symposium on Security and Privacy, researchers from Nankai University and their collaborators introduce RAGOrigin, a black-box framework designed to answer the critical forensic question: Which specific documents in the database taught the model to lie?

The Challenge of Knowledge Poisoning in RAG

While many researchers focus on preventing poisoning attacks, RAGOrigin focuses on forensics. Preventing every attack is nearly impossible because attackers are adaptive; for example, "RobustRAG" (a common defense) fails if more than half of the retrieved documents are poisoned.

Overview of the knowledge poisoning attack on a RAG system and the subsequent responsibility attribution process.

Attributing responsibility in RAG is uniquely difficult for three reasons:

  1. The Needle in a Haystack: Poisoned texts are extremely sparse—just a few malicious entries among millions of benign documents.
  2. Non-linearity: The interaction between the retriever (which finds the data) and the LLM (which reads it) is complex, making it hard to isolate which document actually "convinced" the model.
  3. Heterogeneity: Knowledge bases often pull from diverse sources (Wikipedia, internal docs, etc.), making simple statistical anomaly detection unreliable.

RAGOrigin: A Black-Box Attribution Framework

RAGOrigin operates as a "black-box" system, meaning it only needs to interact with the RAG system as a user would. It follows a three-step process:

  1. Adaptive Scope Narrowing: Instead of scanning millions of documents, RAGOrigin iteratively tests segments of the database (ranked by similarity to the user's question). It simulates the RAG process on these segments until it finds the groups of documents that consistently trigger the incorrect response.
  2. Multi-dimensional Responsibility Scoring: Once a small "attribution scope" is identified, each document is evaluated using three complementary metrics:
  3. Embedding Similarity (ES): How closely the document matches the question in vector space.
  4. Semantic Correlation (SC): Using a proxy LLM to see if the document helps "predict" the user's question.
  5. Generation Influence (GC): Measuring the probability that the LLM will generate the specific "lie" when given only that document as context.
  6. Unsupervised Clustering: Finally, the system uses K-means clustering on these scores to automatically separate poisoned texts from benign ones, removing the need for manually defined thresholds.

Experimental Evaluation

The authors evaluated RAGOrigin against 15 different poisoning attacks across seven datasets, including standard QA benchmarks like Natural Questions (NQ), HotpotQA, MS-MARCO, BoolQ, and SQuAD. They even tested it on a large-scale database containing 16.7 million documents.

Key Results

RAGOrigin demonstrated exceptional performance across all tested scenarios:

  • High Accuracy: The system consistently achieved a Detection Accuracy (DACC) of over 0.98 and a False Positive Rate (FPR) of less than 0.03 across all datasets.
  • Robustness: It remained effective against "adaptive attacks" specifically designed to bypass it, such as appending benign text to poisoned entries to dilute their "malicious" signature.
  • Efficiency: Investigating a misgeneration event takes roughly 2 seconds and costs approximately $0.0004 in API fees, making it highly scalable for enterprise use.
Detection accuracy of RAGOrigin across various datasets and poisoning attack methods.

Conclusion and Future Directions

RAGOrigin provides a practical, efficient, and highly accurate way to trace misinformation back to its source in RAG systems. By not requiring access to model gradients or parameters, it is suitable for commercial deployments using proprietary LLMs.

However, limitations remain. The system is currently susceptible to "false-flag" reports where users misidentify correct answers as lies. Future work will focus on extending the framework to multi-turn conversations and multimodal RAG systems incorporating images and video.

Summary updated

BibTeX
@inproceedings{zhang2026who,
  author = {Baolei Zhang and Haoran Xin and Yuxi Chen and Zhuqing Liu and Biao Yi and Tong Li and Lihai Nie and Zheli Liu and Minghong Fang},
  title = {{Who Taught the Lie? Responsibility Attribution for Poisoned Knowledge in Retrieval-Augmented Generation}},
  booktitle = {SP},
  year = {2026},
  doi = {10.1109/sp63933.2026.00053},
}
Figure