RAG-Safety-Bench: Reliable Evaluation of Retrieval-Augmented LLM Safety
Abstract
Allowing large language models (LLMs) to retrieve information from a set of trusted documents can increase reliability and reduce hallucination. However, recent work has demonstrated that retrieval-augmented generation (RAG) can have unintended side effects on the overall safety of the generated responses, when prompted for harmful or dangerous content. A clearer understanding of the mechanisms leading to this result is needed, as increasing numbers of end users turn to RAG to incorporate corporate documents and knowledge bases into LLM-based systems. We introduce RAG-Safety-Bench, a benchmark to measure the safety impact of RAG on LLM models. By removing the confounding effect of retriever quality, and cleanly separating the problem into four conditions -- non-RAG, RAG with an oracle document containing the answer to the harmful request, RAG with documents related to the harmful request but without the specific answer, and RAG with random, safe documents -- the benchmark isolates the impacts of different factors in the observed safety degradation. We report results across five open-source LLMs, showing an inverse relationship between benign and unsafe capability, strong evidence that baseline safety guardrails do not lead to downstream safety guarantees in the RAG case, and model-specific support for previous findings that even benign documents can lead to unsafe generation in retrieval-enabled systems.
Create a lesson
Metadata
- Categories
- cs.CL, cs.IR
- Comments
- Proceedings of EMNLP 2026 (main conference)
Related papers
The Attribution-Compression Frontier in Retrieval-Augmented Generation
Shared title terminologycs.CLDeepanshu Mody
ShopEase: A Generative AI-Based Multi-Agent Framework for Intelligent Enterprise Customer Support Using Hybrid Retrieval-Augmented Generation
Shared title terminologycs.CLAakash Kumar Tiwari, Somesh Kumar
EAR: Entity-Aware Partitioning Approach for Retrieval-Augmented Generation Development
Shared title terminologycs.CLCenab Batu Bora, Oylum Alatlı, Sebnem Bora et al.
Multimodal Safety Evaluation of Vision-Language Models in Japanese
Shared title terminologycs.CLSu Myat Noe, Hisami Suzuki, Kouta Nakayama et al.
E2A-Bench: Benchmarking Evidence-to-Action Reliability in Financial Chart Reasoning
Shared title terminologycs.CLXiaoya Wang, Yutong Xu, Junjie Wang
When Consistency Does Not Mean Reliability: Evaluating Local LLM Judges Against Human Ratings
Shared title terminologycs.CLAakash Kumar Tiwari