TriShieldRAG: A Three-Ring Defense-in-Depth Framework Against Knowledge Corruption in Retrieval-Augmented Generation

๐Ÿ“… 2026-07-26
๐Ÿ“ˆ Citations: 0
โœจ Influential: 0
๐Ÿ“„ PDF
๐Ÿค– AI Summary
This work addresses the vulnerability of Retrieval-Augmented Generation (RAG) systems to adversarial attacks involving the injection of a small number of malicious documents. To counter this threat, the authors propose the first formal defense-in-depth framework featuring coordinated protective mechanisms across three stages: document ingestion, retrieval reranking, and answer generation. The framework integrates lexical and statistical featureโ€“based document filtering, credibility- and consistency-aware weighted reranking, and cross-model consensus verification leveraging Claude, Mistral Small, and Llama 3.2. Experimental results demonstrate that, on a knowledge base comprising 5,000 Wikipedia documents, the proposed approach reduces attack success rates from 91% to 13% while preserving high accuracy on benign queries, thereby substantially enhancing the robustness of RAG systems.
๐Ÿ“ Abstract
Retrieval-Augmented Generation (RAG) lets a large language model answer questions using documents retrieved from an external knowledge base at query time. This makes RAG useful for private data, fast-changing information, and reducing hallucination, but it also means the model's answer is only as trustworthy as whatever the retriever hands it. If the knowledge base accepts writes from more than one party, an attacker needs only a handful of adversarial documents to steer the model toward a chosen wrong answer. PoisonedRAG demonstrated this: as few as five crafted documents flip an undefended system's answer roughly 90% of the time, and three natural single-stage defenses (perplexity filtering, query paraphrasing, knowledge-base expansion) leave attack success at 30% or higher. We built TriShieldRAG to close that gap. Rather than relying on one checkpoint, we place three independent, formally specified rings across the pipeline: an Ingest Guard that screens documents for lexical and statistical poisoning signatures; a Retrieval Scorer that re-ranks the retrieved set by a provenance and consistency-weighted trust score; and a Cross-LLM Consensus stage that polls three architecturally diverse language models (Claude, Mistral Small, Llama 3.2) and allows one bounded re-retrieval on disagreement. We derive the conditions under which Rings 2 and 3 are expected to work: a minority-poison assumption and an explicit provenance-tag assumption. Our reported configuration is consistent with this analysis, though we have not yet run the controlled poison-fraction sweep needed to confirm it independently. Evaluated against the non-adaptive attacker from the original PoisonedRAG, over a 5,000-document Wikipedia knowledge base with 10 target questions, the full pipeline reduces attack success rate from roughly 91% to roughly 13% while preserving accuracy on benign queries.
Problem

Research questions and friction points this paper is trying to address.

Retrieval-Augmented Generation
knowledge corruption
adversarial documents
poisoning attack
trustworthiness
Innovation

Methods, ideas, or system contributions that make the work stand out.

TriShieldRAG
defense-in-depth
retrieval-augmented generation
knowledge corruption
adversarial document detection
๐Ÿ’ผ Related Jobs
No related jobs found.
Susil Kumar Mohanty
Susil Kumar Mohanty
Postdoctoral Research Fellow, University of Warsaw (UW), Poland
Payment Channel NetworksBlockchainSecurity & PrivacySocial Internet of Vehicle
R
Rohit Patel
Department of Computer Science and Engineering, Indian Institute of Technology Jodhpur, Jodhpur, India
K
Kosuru Yuvaraj
Department of Computer Science and Engineering, Indian Institute of Technology Jodhpur, Jodhpur, India
J
Jeenal Chaudhary
Department of Computer Science and Engineering, Indian Institute of Technology Jodhpur, Jodhpur, India
D
Disha Singhania
Department of Computer Science and Engineering, Indian Institute of Technology Jodhpur, Jodhpur, India