RADAR : Defending RAG Dynamically against Retrieval Corruption

Ziyuan Chen, Yueming Lyu, Yi Liu, Weixiang Han, Jing Dong, Caifeng Shan, Tieniu Tan · 2026

Read RADAR : Defending RAG Dynamically against Retrieval Corruption by Ziyuan Chen, Yueming Lyu, Yi Liu, Weixiang Han, Jing Dong, Caifeng Shan, Tieniu Tan (2026) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2605-22041.txt.

Introduction

Ziyuan Chen and co-authors present RADAR, a defense for retrieval-augmented generation against bad retrieval in web search. Shifts amplify vulnerability to hostile attacks, while static defenses struggle with new threats and carry high storage costs. RADAR frames context selection as graph energy minimization, solved by Max-Flow Min-Cut. A Bayesian memory node updates a belief state rather than archiving raw past documents, balancing attack stability with adaptability to genuine knowledge shifts. On a dynamic dataset it beats baselines on robustness and quality with minimal storage overhead.

Catalog record

CREATORZiyuan Chen, Yueming Lyu, Yi Liu, Weixiang Han, Jing Dong, Caifeng Shan, Tieniu Tan
YEAR2026
COLLECTIONPAPERS
FORMATTXT
FILE SIZE77905
LICENSEhttp://creativecommons.org/licenses/by/4.0/
RIGHTSCC BY
SOURCEarXiv

Source: https://arxiv.org/abs/2605.22041

Browse the full library · About the Tower of Babel

Full text

The opening of the work, from the library's hosted text:

RADAR : Defending RAG Dynamically against Retrieval Corruption Ziyuan Chen, Yueming Lyu, Yi Liu, Weixiang Han, Jing Dong, Caifeng Shan, Tieniu Tan Abstract While RAG systems are increasingly deployed in dynamic web search, temporal volatility amplifies their vulnerability to adversarial attacks. Existing static-oriented defenses struggle to handle evolving threats and incur prohibitive storage costs in dynamic settings. We propose RADAR , a framework that models reliable context selection as a graph-based energy minimization problem, solved exactly via Max-Flow Min-Cut. By incorporating a Bayesian memory node, RADAR recursively updates a belief state instead of archiving raw historical documents, effectively balancing stability against attacks with adaptability to genuine knowledge shifts. Experiments on a novel dynamic dataset show that RADAR achieves superior robustness and response quality with minimal storage overhead compared to the baselines. Codes are available at https://github.com/Etherealllllll/RADAR_code . 1 Introduction Large Language Models (LLMs) have demonstrated remarkable capabilities in natural language understanding and generation. However, they remain prone to generating hallucinated or ungrounded content when faced with knowledge-intensive queries. Retrieval-Augmented Generation (RAG) ( 22 ; 11 ; 2 ) addresses this by incorporating external evidence retrieval into the generation process. Early RAG systems operated in static settings with a fixed corpus as the knowledge base. More recently, research has shifted toward dynamic RAG-based web search ( 26 ; 1 ; 38 ) , which continuously absorbs updated information from evolving sources such as the web. A prominent application is LLM-augmented search engines: a web search engine retrieves documents relevant to the user’s query, and the retrieved content is fed into an LLM to produce a final response grounded in that evidence. Notable examples include Deepseek ( 8 ) , ChatGPT ( 24 ) , and Grok ( 34 ) . Despite its potential, RAG-based web search remains vulnerable to adversarial attacks. Specifically, corpus poisoning ( 39 ; 13 ) and prompt injection ( 7 ) can manipulate LLMs into generating incorrect or malicious outputs. In dynamic settings, these threats are compounded by temporal volatility, such as mutating or transient content, leading to continuous corruption. This expanded attack surface necessitates defenses that are resilient not only to static attacks but also to evolving adversarial strategies. Existing defense mechanisms are largely designed for static settings. Heuristic aggregation or filtering ( 35 ) often causes utility loss, while optimization-based consistency selection ( 28 ) typically relies on approximations without strong guarantees. While they alleviate certain vulnerabilities and can be naively extended to dynamic settings, such adaptations are often suboptimal. Without explicit consideration of temporal dynamics, these methods fail to maintain robust performance against continuously mutating threats, resulting in a significant drop in defensive efficacy within dynamic web search contexts. To address these gaps, we introduce RADAR , a robust framework for dynamic RAG. It formulates reliable context selection as a graph-based energy minimization problem, solved exactly via max-flow Min-Cut. RADAR utilizes a Bayesian memory node to recursively update a belief state, enabling the system to weigh historical consistency against new evidence. This design effectively resolves the stability-plasticity dilemma, balancing stability against attacks with adaptability to legitimate knowledge shifts. Our contributions are summarized as follows: \bullet We propose RADAR , which models RAG defense as a Min-Cut problem, delivering exact and efficient inference with superior robustness against corpus-based attacks. \bullet We design a novel dynamic graph construction augmented with a Bayesian memory node. To the best of our knowledge, this is the first defensive approach explicitly tailored for continuous time-step attacks. By maintaining a recursive belief state, RADAR achieves an effective balance between historical consistency and newly observed evidence. \bullet We construct a comprehensive dataset for dynamic RAG security, simulating evolving adversarial scenarios. Extensive experiments demonstrate that RADAR achieves superior defense success rates and response quality compared to existing baselines in both static and dynamic scenarios. 2 Related Work 2.1 Attacks against RAG-based Web Search Retrieval-Augmented Generation (RAG) systems are vulnerable to adversarial attacks ( 3 ; 5 ; 6 ; 15 ; 23 ) that exploit their reliance on external retrieval. We focus on corpus-based attacks, which can be commonly grouped into Prompt Injection Attacks (PIA) and Corpus Poisoning Attacks. Prompt Injection Attacks embed malicious instructions in retrieved documents to override system prompts and hijack outputs. For instance, Backdoored Retrievers ( 7 ) use implanted backdoors to prioritize injection-carrying passages for link insertion or DoS hijacking. Similarly, Hidden Parrot et al. ( 25 ) poisons vector stores to covertly steer generation via similarity search. Corpus Poisoning Attacks inject deceptive documents into knowledge bases to manipulate retrieved contexts and downstream outputs. For instance, PoisonedRAG ( 39 ) optimizes minimal injections for effective knowledge corruption, while BadRAG ( 36 ) poisons the retrieval process to induce harmful generations. Furthermore, Topic-FlipRAG ( 10 ) employs two-stage perturbations to reverse topic-specific opinions, and DeRAG ( 31 ) leverages black-box differential evolution to hijack rankings across diverse RAG systems. 2.2 Defenses RAG systems have inspired a range of robustness-enhancing frameworks, which can be broadly categorized into two classes: document filtering prior to generation and defenses against adversarial attacks. Document Pre-processing and Filtering evaluates and refines retrieved content prior to generation. Self-RAG ( 2 ) employs reflection tokens for adaptive retrieval and self-critique to boost quality; Chain-of-Note ( 37 ) generates reading notes to filter noise and enhance robustness. CRAG ( 35 ) utilizes lightweight evaluators to trigger corrective actions like web search for reliability, while RA-RAG ( 14 ) assesses source credibility and applies weighted majority voting for reliability-aware aggregation. Adversarial Defense Strategies aim to mitigate retrieval corruption and ensure reliability. RobustRAG ( 35 ) provides certifiable robustness via formal proofs; InstructRAG ( 33 ) enables retrieval denoising through self-synthesized rationales. AstuteRAG ( 30 ) consolidates internal LLM knowledge with retrieved data to resolve conflicts, while ReliabilityRAG ( 28 ) uses MIS algorithm to filter malicious content with provable guarantees. However, extending these static defenses to dynamic settings often incurs high storage overhead and suboptimal performance. 3 Background and Defense Goals 3.1 RAG Workflow Static Workflow. A standard RAG system consists of a retriever \mathcal{R} and a generator \mathcal{G} (typically an LLM). Given a user query q , the retriever searches a corpus \mathcal{C} to return a set of top- k relevant documents (or passages): \mathcal{D}=\mathcal{R}(q,\mathcal{C})=\{d_{1},d_{2},...,d_{k}\}. (1) The generator then produces an answer a based on the query and the retrieved context: a=\mathcal{G}(q,\mathcal{D}). (2) The goal is for \mathcal{D} to provide reliable external knowledge that grounds the LLM’s response and reduces hallucinations. Dynamic Workflow. In real-world applications, a RAG system typically relies on web search, so its evidence corpus is a continuously evolving set of documents returned by the search engine rather than a fixed local collection. We consider a dynamic setting over discrete time steps t\in\{0,1,\ldots,T\} . At each step, the retriever returns the top- k documents \mathcal{D}^{(t)}=\mathcal{R}(q) , and the generator produces an updated answer a^{(t)}=\mathcal{G}(q,\mathcal{D}^{(t)}) to reflect the most recent information. The key challenge is to maintain both accuracy and robustness when the reliability of \mathcal{D}^{(t)} varies over time. 3.2 Threat Model Attacker’s Goal. The attacker aims to induce the LLM to produce incorrect answers that directly contradict the ground truth. For a factual query like “Who is the CEO of Company X?”, the attacker seeks

Read the complete text