Search papers, labs, and topics across Lattice.
This paper introduces TriShieldRAG, a robust defense framework designed to mitigate knowledge corruption in Retrieval-Augmented Generation (RAG) systems. By implementing a three-ring defense mechanism that includes an Ingest Guard, a Retrieval Scorer, and a Cross-LLM Consensus stage, the framework significantly reduces the success rate of adversarial attacks from approximately 91% to 13% while maintaining accuracy on benign queries. The approach leverages independent checks and diverse language models to enhance trust in the retrieved information, addressing a critical vulnerability in RAG systems that rely on external knowledge bases.
A three-ring defense can slash adversarial attack success rates in RAG systems from 91% to just 13%, safeguarding the integrity of generated responses.
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.