After Retrieval, Before Generation: Enhancing the Trustworthiness of Large Language Models in RAG

Xinbang Dai, Huikang Hu, Yuncheng Hua, Jiaqi Li, Yongrui Chen, Rihui Jin, Nan Hu, Guilin QiarXiv 2025 · OpenReview

Abstract

Retrieval-augmented generation (RAG) is a promising paradigm, yet its trustworthiness remains a critical concern. A major vulnerability arises prior to generation: models often fail to balance parametric (internal) and retrieved (external) knowledge, particularly when the two sources conflict or are unreliable. To analyze these scenarios comprehensively, we construct the Trustworthiness Response Dataset (TRD) with 36,266 questions spanning four RAG settings. We reveal that existing approaches address isolated scenarios—prioritizing one knowledge source, naively merging both, or refusing answers—but lack a unified framework to handle different real-world conditions simultaneously. Therefore, we propose the BRIDGE framework, which dynamically determines a comprehensive response strategy of large language models (LLMs). BRIDGE leverages an adaptive weighting mechanism named soft bias to guide knowledge collection, followed by a Maximum Soft-bias Decision Tree to evaluate knowledge and select optimal response strategies (trust internal/external knowledge, or refuse). Experiments show BRIDGE outperforms baselines by 5-15% in accuracy while maintaining balanced performance across all scenarios. Our work provides an effective solution for LLMs' trustworthy responses in real-world RAG applications.

Introduction: The RAG Trust Gap

Standard Retrieval-Augmented Generation (RAG) systems typically follow a linear "retrieve then generate" pipeline. This approach assumes that retrieved information is inherently helpful and that internal model knowledge is either irrelevant or perfectly complementary. In practice, however, RAG systems encounter four distinct and often conflicting scenarios that challenge model trustworthiness:

  1. Consistent: Both internal and external sources provide correct information.
  2. Poisoned: The model possesses the correct answer, but the retrieved context is malicious or incorrect.
  3. Outdated: The model’s internal training data is obsolete, while the retrieved context contains the latest facts.
  4. Unreliable: Neither the model nor the search results contain the correct answer.
The four RAG scenarios (Consistent, Poisoned, Outdated, and Unreliable) and their corresponding response strategies.

Existing solutions often struggle with these dynamics, frequently exhibiting "sycophancy"—a tendency to follow retrieved context even when it is wrong—or failing to admit ignorance when both sources are insufficient.

The BRIDGE Framework

To address these challenges, we propose BRIDGE (Biased Retrieval and Generation Evaluation), a unified framework that dynamically balances internal and external knowledge. BRIDGE operates through two primary stages:

1. Bias-Guided Knowledge Collection

Instead of a static search, BRIDGE utilizes an Allocator module (trained via Group Relative Policy Optimization or In-Context Learning) to analyze the query and determine a "soft bias." This bias estimates whether a question requires deep internal fact-checking or broad external retrieval. The system then generates multiple "probes" (sub-queries) to gather a diverse pool of internal and external evidence.

2. Bias-Guided Knowledge Evaluation

With four knowledge pools established—raw internal, raw external, and their respective generated probes—a Knowledge Scorer computes similarity metrics. These scores are processed by a Maximum Soft-bias Decision Tree to select the optimal response strategy:

  • Faithful to All (FA): Merging both sources when they are consistent.
  • Faithful to Internal (FI): Prioritizing internal knowledge to avoid poisoned context.
  • Faithful to External (FE): Trusting search results over outdated internal memory.
  • Refuse to Answer (RA): Admitting ignorance when evidence is unreliable.
The BRIDGE framework architecture, illustrating the flow from bias-guided collection to the decision tree evaluation.

Experimental Results and Insights

We evaluated BRIDGE using the Trustworthiness Response Dataset (TRD), a new benchmark of 36,266 questions designed to test the four RAG scenarios. BRIDGE demonstrated a significant performance leap, outperforming state-of-the-art baselines like Self-RAG and InstructRAG by 5–15% in overall accuracy.

Key findings include:

  • Closing the Refusal Gap: Standard LLMs often hallucinate rather than refuse to answer. BRIDGE significantly improved model "honesty," achieving a combined Accuracy and Refusal Rate of 100% on the CONFLICTBANK dataset using GPT-3.5-Turbo and Qwen72B.
  • Robustness via Soft Bias: Unlike rigid "hard rules" that force a model to follow one source, BRIDGE’s adaptive soft-bias weighting allows it to remain robust across diverse question types, such as time-sensitive queries versus general factual knowledge.
  • Consistency as Reliability: By comparing multiple internal and external probes, BRIDGE uses internal consistency as a proxy for truth, effectively identifying when a model should distrust its own parametric memory.

Conclusion

BRIDGE provides a comprehensive solution for the "trust gap" in RAG by moving beyond simple retrieval. By intelligently evaluating the reliability of both internal and external knowledge before generation, it ensures that LLMs provide accurate, up-to-date, and honest responses in complex real-world environments.

Summary updated

BibTeX
@misc{dai2025after,
  author = {Xinbang Dai and Huikang Hu and Yuncheng Hua and Jiaqi Li and Yongrui Chen and Rihui Jin and Nan Hu and Guilin Qi},
  title = {{After Retrieval, Before Generation: Enhancing the Trustworthiness of Large Language Models in RAG}},
  year = {2025},
  eprint = {2505.17118},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.17118},
}
Figure