scimeatlas

Research map / Large language models / Retrieval and knowledge

RAG LLMs are Not Safer: A Safety Analysis of Retrieval-Augmented Generation for Large Language Models

Bang An, Shiyue Zhang, Mark Dredze

NAACL 2025Large language models › Retrieval and knowledgeapproach: RAG robustness and evaluationopen problems in this approach60 citations (OpenAlex)

University of Maryland · Bloomberg AI · Johns Hopkins University

Read the paperPlace an idea next to itCheck your own paper ↗

10measured effects
2improved
3no clear effect
5hurt

AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Measured effects reported in the paper

What was changedWhereMeasuredEffect
add retrieved documents (RAG) instead of non-RAGLlama-3-8B · harmful questionsunsafe response rate: 0.3% -> 9.2%Hurt
add safe retrieved documents instead of no documentsLlama-3-8B · harmful questionsunsafe response probability: 0.3% -> 7.9%Hurt
add retrieved documents instead of no documentsZephyr-Beta · harmful questionsunsafe response probability: 38.5% -> 36.7%No clear effect
add safe retrieved documents instead of no documentsGemma-7B · harmful questionsunsafe response probability: 3.4% -> 2.2%No clear effect
also instruct the model to use its own knowledge, not only documents (ablation)RAG LLMs · harmful questionsunsafe response rateNo clear effect
increase number of retrieved safe documents from one upward (ablation)RAG LLMs · harmful questionsunsafe response rateHurt
retrieve unsafe documents instead of safe documentsLlama-3-8B · harmful questionsunsafe response probability: 7.9% -> 31.5%Hurt
apply jailbreak prompts optimized in non-RAG setting to RAGGCG and AutoDAN on Llama-3-8B · harmful queries (50)attack success rateHurt
optimize jailbreak prompts directly in the RAG setting instead of non-RAGGCG and AutoDAN on Llama-3-8B · harmful queries (50)attack success rateImproved
match number of documents between optimization and test (ablation)GCG and AutoDAN · harmful queries (50)attack success rateImproved

Open problems in RAG robustness and evaluation

When does retrieval help a language model, and when does it mislead it?

All 4 open problems and what was already tried →

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy