Seedlabs
Source research

Towards More Robust Retrieval-Augmented Generation: Evaluating RAG Under Adversarial Poisoning Attacks

Jinyan Su, Jin Zhou, Zhengxin Zhang, Preslav Nakov, Claire Cardie · 2024 · 27 citationsRead the paper

Retrieval-Augmented Generation (RAG) systems have emerged as a promising solution to mitigate LLM hallucinations and enhance their performance in knowledge-intensive domains. However, these systems are vulnerable to adversarial poisoning attacks, where malicious passages injected into the retrieval corpus can mislead models into producing factually incorrect outputs. In this paper, we present a rigorously controlled empirical study of how RAG systems behave under such attacks and how their robustness can be improved. On the generation side, we introduce a structured taxonomy of context types-adversarial, untouched, and guiding-and systematically analyze their individual and combined effects on model outputs. On the retrieval side, we evaluate several retrievers to measure how easily they expose LLMs to adversarial contexts. Our findings also reveal that "skeptical prompting" can activate LLMs' internal reasoning, enabling partial self-defense against adversarial passages, though its effectiveness depends strongly on the model's reasoning capacity. Together, our experiments (code available at https://github.com/JinyanSu1/eval_PoisonRaG) and analysis provide actionable insights for designing safer and more resilient RAG systems, paving the way for more reliable real-world deployments.

What the full text shows

Shown in the lab
  • Skeptical prompting improves F1 scores for advanced LLMs (GPT-4, GPT-4o, Llama-70b, Claude) under adversarial attacks, but can negatively impact less capable models (GPT-3.5, Llama-8b). (Single adversarial passage or varying pollution rates (10%-50%))
  • DPR (Dense Passage Retrieval) is more robust than other retrievers as it tends to embed incorrect passages farther from queries, reducing the likelihood of retrieving adversarial contexts. (Combined retrieval and generation on NQ dataset)
  • Increasing the number of retrieved untouched passages (k) to dilute a single adversarial passage provides minimal performance improvement. — F1 scores remain relatively flat (NQ dataset, fixing one adversarial passage and increasing k)
  • The presence of adversarial contexts degrades LLM performance compared to a Non-RAG baseline, even when skeptical prompting is used. (Across evaluated LLMs)
  • Combined retrieval and generation F1 scores vary significantly by model and retriever, with the largest gap between highest and lowest scores being 33.10% for GPT-4. — up to 33.10% difference (NQ dataset, top-10 retrieval)
Setup
Datasets: Natural Questions (NQ), HotpotQA, and MS-MARCO. LLMs: GPT-3.5, GPT-4, GPT-4o, Llama3-8b, Llama3-70b, and Claude-3.5.
How
The researchers conducted a controlled empirical study using a taxonomy of context types (adversarial, untouched, guiding) to test LLM generation and evaluated multiple retrievers (Contriever, DPR, ANCE) to measure exposure to poisoning. They compared neutral vs. skeptical prompting across various pollution rates and retrieval scales.
Limitations
Experiments were limited to common QA datasets and may not represent all RAG use cases. · Focused primarily on global corpus poisoning rather than retriever-specific optimized attacks. · Skeptical prompting does not restore performance to Non-RAG baseline levels.

Summarized by Gemma 4 from the open-access full text · 12 Nov 2026. Read it