Source-linked AI summary
Towards Trustworthy Retrieval Augmented Generation for Large Language Models: A Survey
Bo Ni, Zheyuan Liu, Leyao Wang, Yongjia Lei, Yuying Zhao, Xueqi Cheng, Qingkai Zeng, Luna Dong, Yinglong Xia, Krishnaram Kenthapadi, Ryan Rossi, Franck Dernoncourt, Md Mehrab Tanjim, Nesreen Ahmed, Xiaorui Liu, Wenqi Fan, Erik Blasch, Yu Wang, Meng Jiang, Tyler Derr
TL;DR
RAG improves LLM generation by incorporating external knowledge but introduces trustworthiness risks across reliability, privacy, safety, fairness, explainability, and accountability. This survey systematically reviews these challenges, solutions, evaluations, and applications through a unified framework, taxonomy, and future research roadmap. It emphasizes broader adoption through safer and more ethical deployment in critical applications.
Problem
Research on trustworthy RAG has developed heterogeneous definitions, implementations, and evaluation metrics, but lacks a unified survey of its challenges and solutions.
Method
The survey categorizes trustworthy RAG challenges and solutions across six aspects, reviews evaluation protocols, and discusses downstream applications and future research directions.
Results
The survey provides a comprehensive roadmap for trustworthy RAG research, including structured taxonomies, evaluation protocols, application coverage, and cross-aspect future directions.
Takeaways & Limitations
Trustworthy RAG research should address interacting trustworthiness dimensions to support safe and ethical deployment in critical applications.
Takeaways & Limitations
Dedicated adversarial-defense research for RAG remains limited, with current mechanisms described as rudimentary and lacking scope and sophistication.
Abstract
from arXiv · showhide
Retrieval-Augmented Generation (RAG) is an advanced technique designed to address the challenges of Artificial Intelligence-Generated Content (AIGC). By integrating context retrieval into content generation, RAG provides reliable and up-to-date external knowledge, reduces hallucinations, and ensures relevant context across a wide range of tasks. However, despite RAG's success and potential, recent studies have shown that the RAG paradigm also introduces new risks, including robustness issues, privacy concerns, adversarial attacks, and accountability issues. Addressing these risks is critical for future applications of RAG systems, as they directly impact their trustworthiness. Although various methods have been developed to improve the trustworthiness of RAG methods, there is a lack of a unified perspective and framework for research in this topic. Thus, in this paper, we aim to address this gap by providing a comprehensive roadmap for developing trustworthy RAG systems. We place our discussion around five key perspectives: reliability, privacy, safety, fairness, explainability, and accountability. For each perspective, we present a general framework and taxonomy, offering a structured approach to understanding the current challenges, evaluating existing solutions, and identifying promising future research directions. To encourage broader adoption and innovation, we also highlight the downstream applications where trustworthy RAG systems have a significant impact.
1 Introduction
RAG improves LLM outputs by adding external, current context, but introduces trustworthiness challenges across reliability, privacy, safety, fairness, explainability, and accountability. This survey organizes these challenges and existing research to address the lack of a systematic review.
- RAG incorporates external information into generation, improving accuracy and reliability while reducing reliance on outdated model knowledge and extensive retraining.Its external context can help address hallucinations, outdated knowledge, and limited explainability.
- RAG systems face reliability and robustness issues because outputs must remain accurately grounded in retrieved content and withstand changing database distributions.Evolving databases can introduce new knowledge and distribution shifts that cause underperformance without dedicated robustness measures.
- External databases create privacy leakage channels, while retrieval and generation can introduce fairness issues that affect generated content.Retrieved content may amplify implicit bias by increasing model confidence, and systems must protect both external and training data.
- Trustworthy RAG also requires explainable decisions, accountable provenance, and safety defenses against adversarial attacks and harmful outputs.These concerns are especially consequential in medication, legal consulting, and education, where errors or bias can have significant effects.
- The survey addresses heterogeneous research through a systematic discussion of trustworthy RAG’s current advancements and challenges.Figure 1 presents the survey’s covered components and trustworthiness dimensions.
2 Preliminaries
RAG systems retrieve and augment external knowledge before generating responses, supporting tasks such as question answering and chatbots. This survey examines their trustworthiness across applications, evaluations, and research directions, noting that holistic chatbot evaluation remains nonstandardized.
- A typical RAG framework comprises information retrieval, knowledge augmentation, and content generation stages.Retrieval commonly includes indexing diverse documents into chunks and retrieving matching chunks or nodes for a query.
- RAG’s retrieval, augmentation, and generation stages introduce distinct trustworthiness challenges, including retrieval bias, hallucination, and irrelevant information injection.These challenges require mitigation to produce trusted responses.
- Question Answering: RAG supports question-answering subtasks including long-form, multi-hop, domain-specific, and open-domain question answering by integrating relevant external context.Evaluation paradigms vary; structured QA commonly uses metrics such as hits@n and F1.
- Chatbots: RAG-based chatbots use external knowledge for task-oriented and open-domain dialogue, including information that may be newer than the model’s training corpus.Chatbot evaluation considers dialogue quality and coherence through utility, understanding, aesthetics, and human-response similarity metrics.
- Chatbots: No standardized holistic evaluation currently exists for chatbots, whose assessment varies between broad subtasks and business- or industry-specific datasets.Beyond language tasks, RAG applications include recommendation systems, software engineering, and scientific discovery, where trustworthiness remains underexplored.
- The survey provides a unified literature review that categorizes trustworthiness challenges and solutions across RAG applications rather than focusing primarily on empirical generation experiments.It aims to guide future research and development in trustworthy RAG systems.
3 Reliability of Retrieval Augmented Generation
RAG reliability depends on both retrieval quality and generation conditioned on retrieved information, creating challenges beyond standalone language models. The survey organizes these challenges around uncertainty quantification, robustness to changing or noisy contexts, evaluation, and integrated future directions.
- RAG reliability requires evaluating both retrieval and generation because retrieved information conditions the model’s output.
- Uncertainty Quantification: Uncertainty quantification in RAG must address uncertainty from both LLM generation and retrieval-generation interactions.Standard LLM techniques such as conformal prediction can address generation uncertainty with few adaptations, but retrieval introduces additional dynamics.
- Uncertainty Quantification: Directly applying LLM uncertainty methods to multi-component RAG systems can produce less accurate, sub-optimal results.The retrieval-to-generation pipeline motivates specialized uncertainty techniques tailored to RAG’s structure.
- Robust Generalization: RAG robustness must handle evolving databases, irrelevant context, and corrupted or misinformation contexts.The survey distinguishes adversarially constructed corrupted context as a separate adversarial-robustness topic.
- Robust Generalization: RAAT generates sensitivity-based adversarial noise samples to regulate noisy retrieval and improves robustness without substantial computational overhead.
- Robust Generalization: Fine-tuning on noisy contexts improves robustness to irrelevant passages across five open-domain datasets for both single-hop and multi-hop retrieval QA.
- Future Directions: Future reliability research should integrate uncertainty quantification with robustness and address conflicts caused by knowledge shifts in evolving databases.The survey also points to dynamic knowledge graphs and active learning as possible routes toward more adaptive RAG systems.
4 Privacy of Retrieval Augmented Generation
RAG privacy research addresses leakage from external retrieval databases and internal LLM training data, but the area lacks established evaluation resources and application-specific understanding. The survey organizes existing attacks, defenses, metrics, datasets, and future directions around these challenges.
- Privacy Attacks: Current privacy research focuses on document extraction, training-data extraction, and membership inference attacks.Membership inference determines whether specific passages are present in the retrieval database, while document extraction targets confidential information such as PII.
- Privacy Threats: RAG privacy threats include leakage from external retrieval databases and exposure of internal LLM training data.External leakage can involve sensitive proprietary or privacy-relevant information, while internal leakage concerns data encoded in model parameters.
- Privacy Attacks: Attackers may use structured prompts, backdoor-triggered outputs, or masked-document prediction to extract or infer sensitive retrieval data.These methods exploit similarity-based retrieval, trained triggers, or language-model predictions over obscured document content.
- Training-Data Leakage: Incorporating retrieved passages greatly reduces LLM reproduction of memorized training content, outperforming a 50-token random-noise prefix.The comparison isolates retrieval-data integration from another leakage-mitigation mechanism.
- Privacy Defenses: Proposed defenses include summarizing retrieved documents, applying retrieval-distance thresholds, and generating synthetic data to avoid exposing real records.These approaches abstract sensitive information, restrict retrieved documents, or replace sensitive data with privacy-preserving surrogates.
- Future Directions: The field lacks established privacy datasets, baselines, comprehensive benchmarks, and application-specific techniques for domains such as healthcare, finance, and legal services.Future evaluations should cover both direct leakage and inferential attacks across diverse scenarios.
5 Safety of Retrieval Augmented Generation
RAG safety research examines how external databases, retrievers, and generators create adversarial attack surfaces, including targeted manipulation and jailbreaking. The survey finds that defenses and evaluation remain underdeveloped, especially across downstream generation tasks and alternative knowledge modalities.
- Threat Model: RAG safety depends on interactions among the external database, context retriever, and output generator.The survey models attackers as able to write to, but not read or delete from, the external database.
- Threat Model: Retriever threats include white-box manipulation of ranking mechanisms and black-box poisoning with misleading or noisy database entries.White-box attackers inspect retriever internals, whereas black-box attackers infer behavior from ranked outputs.
- Attack Taxonomy: RAG adversarial attacks comprise targeted attacks that distort responses to specific inputs and jailbreak attacks that seek unrestricted harmful outputs.Jailbreak attacks threaten reliability and trustworthiness across a broad range of inputs rather than one topic.
- Targeted Attacks: PoisonedRAG injects passages designed around specific questions to induce attacker-chosen answers, while BadRAG extends targeting to semantic query groups.BadRAG can use group triggers associated with political affiliations, race, or religion.
- Open Challenges: Dense-retrieval attacks can transfer across domains, but their effects on downstream generated outputs remain unclear.Safety guardrails may reduce the impact of adversarially retrieved passages, leaving retrieval-generation interaction an open research question.
- Future Directions: Dedicated adversarial defenses are rudimentary, and standardized evaluation frameworks are needed to compare robustness, generalization, and adversarial performance.The survey also calls for safety methods and benchmarks adapted to knowledge graphs and other non-vector representations.
6 Fairness of Retrieval Augmented Generation
The survey frames RAG fairness as a two-stage problem spanning retrieval and generation, while reviewing evaluation resources and future challenges involving personalization, modality, and competing objectives.
- Fairness Challenges: RAG fairness requires addressing biases in both external-data retrieval and output generation.The retrieval stage can reflect biased sources or ranking mechanisms, while generation can introduce additional unfair behavior.
- Fairness in Retrieval: Retrieval-stage fairness concerns arise from retrieval models, retrieval processes, and re-ranking mechanisms.Reviewed work measures gender-related ranking bias and explores re-ranking approaches for mitigating bias in initial results.
- Fairness in Generation: Generation-stage fairness is evaluated through accuracy, toxicity, representation bias, and demographic imbalance.The survey distinguishes answer-quality metrics from fairness metrics such as Group Disparity and Equalized Odds.
- Evaluation Resources: TREC Fair Ranking, BBQ, and LaMP provide complementary resources for studying fair exposure, ambiguity, and personalized retrieval-augmented prediction.These datasets cover ranking across demographic attributes, ambiguous contexts, and classification, regression, and generation tasks.
- Future Directions: Future fairness research must address application-specific constraints, fairness-accuracy-relevance trade-offs, and biases across text and image modalities.The survey identifies personalized fairness, multi-objective optimization, and cross-modal fairness as open directions.
7 Explainabilty of Retrieval Augmented Generation
RAG explainability must account for its multi-stage architecture by clarifying retrieval, generation, and their interaction. The survey organizes existing explanation methods, evaluation practices, and open challenges around these components.
- Scope: RAG explainability must clarify both why contexts are retrieved and how retrieved content influences generation.Post-retrieval processing and ranking decisions add further explanation requirements beyond the generator itself.
- Taxonomy: The survey distinguishes explainability work on retrieval, generation, and dual enhancement.It notes limited dedicated research on RAG retrieval explanation and summarizes related information-retrieval techniques.
- Generation: Generator explanations include perturbation-based post-hoc methods and knowledge-graph reasoning paths.RAG-Ex tests token and feature importance through perturbations, while RoG produces interpretable reasoning paths from graph relations.
- Dual Enhancement: Explanations can improve RAG components, while RAG can also generate explanations for other tasks.ExaRanker uses explanations to train ranking models, and other work uses RAG in scene understanding to produce feature-sensitive explanations.
- Evaluation: Explainability evaluation commonly uses fidelity and stability, but these metrics may not capture context-dependent user needs.The survey highlights significance and plausibility as additional measures and calls for domain-specific evaluation.
- Open Challenges: Jointly trained retrievers and generators complicate attribution, while standardized datasets for evaluating RAG explanations remain limited.Shared representations make component contributions difficult to disentangle, and researchers often adapt existing question-answering datasets.
8 Accountability of Retrieval Augmented Generation
The survey treats accountability as determining whether AI outputs meet procedural and substantive standards and identifying responsibility when they do not. It focuses technically on ownership and watermarking across retrieval and generation.
- Accountability Scope: AI accountability requires determining whether outputs follow standards and who is responsible when standards are violated.Generative AI makes ownership attribution difficult because generated speech may not map cleanly to one responsible party.
- Retrieval: Retrieval accountability uses text and data watermarking to protect source ownership and enable traceability.Watermarks are embedded in retrieved sources to support ownership verification within RAG systems.
- Generation: Generation watermarking can be applied before generation during training or during inference as text is produced.Pre-generation methods create inherent identifiable markers, whereas in-generation methods embed markers directly during text generation.
8.2 Accountability in Retrieval
The survey describes text watermarking for protecting textual ownership and data watermarking for protecting training datasets. Trigger-based methods support ownership verification but require careful design for persistence and detectability.
- Text Watermarking: Text watermarking embeds identifiable markers in textual content to protect copyright and authenticate authorship.Format-based methods alter text formatting rather than the author’s content, including line, word, and Unicode-based approaches.
- Data Watermarking: Data watermarking embeds ownership information into trained models to attribute datasets and deter unauthorized use.Backdoor watermarking uses trigger-specific input modifications that produce identifiable model behaviors.
- Trigger Design: Trigger-based watermarking can use word-, sentence-, code-, or format-level input modifications for ownership verification.These triggers allow verification through model behavior even when the original dataset is unavailable.
- Limitations: Trigger-based watermarking requires inconspicuous yet detectable triggers and must address persistence and unintended activation.The survey identifies these requirements as continuing challenges for robust and scalable dataset protection.
8.3 Accountability in Generation
Generation-stage accountability uses watermarking before, during, or after text generation to trace outputs and ownership. These approaches trade detection coverage, robustness, text quality, and adaptability in different ways.
- Pre-generation watermarking: Pre-generation watermarking embeds ownership markers during LLM training through trigger-based or global watermarks.Trigger-based methods minimize effects on regular outputs but may limit detection, whereas global methods provide pervasive traceability while requiring imperceptibility and robustness safeguards.
- Pre-generation watermarking: Hybrid pre-generation methods are proposed to combine trigger specificity with global watermark universality for scalable accountability.The intended balance is between protection and practical deployment.
- In-generation watermarking: In-generation watermarking dynamically modifies outputs during inference through logit generation or token sampling without changing model parameters.Logit-based methods can bias token selection using vocabulary partitions, while sampling methods can use token- or sentence-level procedures.
- In-generation watermarking: In-generation watermarking remains limited by text-quality effects, removal attacks, and public-verifiability challenges.Proposed directions include fine-grained vocabulary partitioning, semantic-aware watermarking, and hybrid logit-sampling methods.
- Post-generation watermarking: Post-generation watermarking modifies existing text through format-, lexical-, syntactic-, or generation-based methods.Lexical and syntactic approaches can preserve semantics but may compromise quality, language portability, style, or fluency.
8.4 Accountability in RAG Systems
RAG accountability requires watermarking that spans retrieval and generation rather than treating them as independent stages. WARD embeds persistent signals across the pipeline to support ownership attribution in transformed and complex data settings.
- Watermarking across RAG: Existing watermarking research usually treats retrieval and generation independently, leaving a gap for end-to-end RAG accountability.RAG requires traceability across both stages and their interactions.
- WARD: WARD embeds imperceptible dataset signals that remain detectable through retrieval, generation, paraphrasing, and reformatting.Its token-probability modifications provide a unified approach to dataset ownership attribution.
- WARD: WARD’s red-green token scheme preserves statistically significant ownership signals despite fact redundancy, blended sources, and generative transformations.This addresses failures that can occur when watermarking covers only retrieval or only generation.
- WARD: WARD provides statistical detection guarantees and aggregated queries that reduce false positives and negatives while supporting scalable, practical use.The approach is described as suitable for large-scale datasets and complex RAG systems.
- WARD: WARD is presented as an advancement because it integrates retrieval and generation watermarking for robust dataset ownership attribution.The broader goal is protection of intellectual property and responsible data usage in RAG systems.
8.5 Accountability Evaluation
Watermarking evaluation measures whether signals are detectable while preserving text quality, downstream performance, diversity, and resistance to attacks. Benchmarks and toolkits support more standardized assessment of these dimensions.
- Evaluation framework: Watermarking evaluation covers detectability, quality impact, output performance, output diversity, and robustness.The framework aims to measure effectiveness while limiting quality degradation and attack vulnerability.
- Detectability: Detectability uses z-scores or p-values for zero-bit watermarks and BER or bit accuracy for multi-bit watermarks.Watermark size also matters because longer text generally improves detection but reduces applicability to short content.
- Quality and performance: Quality metrics compare watermarked and non-watermarked text using surface-level, semantic-level, and single-text measures.Examples include BLEU, Meteor, Semantic Score, and Entailment Score.
- Quality and performance: Output performance metrics test whether watermarking preserves downstream capabilities, including text completion and code generation.Examples include PPL, GPT-4-based scoring, semantic similarity, CodeBLEU, and Edit Sim.
- Diversity and robustness: Output diversity metrics quantify lexical and semantic variation, while robustness measures resistance to untargeted and targeted attacks.Examples include Seq-Rep-N, Log Diversity, Ent-3, and Sem-Ent.
- Evaluation resources: WaterBench, WaterJudge, Mark My Words, and MarkLLM are benchmarks or toolkits for standardizing text-watermarking evaluation.The paper associates these resources with the discussed datasets and metrics.
8.6 Future Direction of RAG Accountability
Future RAG accountability research should unify retrieval and generation watermarking, make watermarking adaptive to changing systems, and connect technical methods with governance. These directions target traceability, robustness, and responsible deployment.
- Unified watermarking: Unified watermarking frameworks should embed traceability across the full retrieval-generation pipeline.The proposed benefits include stronger intellectual-property protection, responsible attribution, and preserved data and model integrity.
- Adaptive accountability: Dynamic watermarking should adapt to real-time inputs, system updates, adversarial attacks, and shifts in model behavior.The goal is to maintain robustness and traceability in changing RAG environments.
- Governance and ethics: Governance research should coordinate technologists, policymakers, and ethicists to align watermarking with legal and ethical frameworks.The paper positions watermarking as a foundational tool for accountability and intellectual-property protection.
9 Applications
Trustworthy RAG applications span healthcare, legal, and education, where domain-specific benefits are paired with reliability, privacy, safety, fairness, explainability, and accountability challenges.
- Healthcare: Healthcare applications include clinical decision support, patient communication, knowledge discovery, and precharting, with retrieval improving personalization and contextual relevance.RAG can support medical professionals with diagnostic guidelines, treatment plans, and patient history, while patient-facing systems address questions and dialogue.
- Healthcare: Healthcare RAG requires high reliability and privacy because medical decisions are high stakes and applications may retrieve sensitive personal records.Uncertainty quantification remains largely unexplored in LLM-based healthcare applications, while precharting raises personal-identification leakage risks.
- Legal: Legal applications include question answering and document summarization, but fairness, reliability, privacy, explainability, and accountability remain essential concerns.Biases may cause prejudiced precedents to be retrieved or relevant cases to be overlooked, while legal outputs require factual grounding and robust uncertainty estimation.
- Education: Educational RAG applications support teachers with current resources and student queries, yet require high-quality domain-specific datasets and more adaptable models.Educational systems must also address bias, reliability, privacy, safety, explainability, and accountability when handling student information and generating content.
10 Conclusion
The survey addresses the lack of a unified perspective on trustworthy RAG by organizing research across six trustworthiness aspects and charting future directions. It aims to support evaluation, benchmark development, and broader adoption in critical applications.
- Survey scope: The survey reviews RAG through six aspects: reliability, privacy, safety, fairness, explainability, and accountability.It provides definitions, key concepts, and structured taxonomies for navigating approaches within each aspect.
- Evaluation: The survey discusses evaluation protocols, datasets, and metrics to facilitate benchmarks tailored to trustworthiness challenges.This extends the review beyond methodological summaries toward systematic evaluation.
- Future directions: Future research directions cover individual trustworthiness aspects and potential synergies across multiple areas to support safer and more ethical deployment.The survey presents itself as a roadmap for researchers and highlights broader adoption in critical applications.