Abstract
Most existing retrieval-augmented language models (LMs) assume a naive dichotomy within a retrieved document set: query-relevance and irrelevance. Our work investigates a more challenging scenario in which even the "relevant" documents may contain misleading or incorrect information, causing conflict among the retrieved documents and thereby negatively influencing model decisions as noise. We observe that existing LMs are highly brittle to the presence of conflicting information in both the fine-tuning and in-context few-shot learning scenarios. We propose approaches for handling knowledge conflicts among retrieved documents by explicitly fine-tuning a discriminator or prompting GPT-3.5 to elicit its discriminative capability. Our empirical results on open-domain QA show that these approaches significantly enhance model robustness. We also provide our findings on incorporating the fine-tuned discriminator's decision into the in-context learning process, proposing a way to exploit the benefits of two disparate learning schemes. Alongside our findings, we provide MacNoise, a machine-generated, conflict-induced dataset to further encourage research in this direction.
Introduction
Retrieval-Augmented Generation (RAG) has become the standard for grounding Large Language Models (LLMs) in factual data. However, most RAG research assumes a simple dichotomy: a retrieved document is either relevant or irrelevant. In reality, the web is full of "relevant but wrong" information—outdated facts, hallucinations, or intentional misinformation. When a model is presented with documents where some support the truth and others support a "counterfactual" (a plausible but false alternative), it faces knowledge conflict. Current models are surprisingly gullible, often prioritizing provided incorrect context over their own internal knowledge, leading to a sharp decline in accuracy as the "noise level" increases.
The "Discern and Answer" Framework
To address this vulnerability, we propose a framework that explicitly identifies and ignores misleading documents before generating an answer. We implement this in three distinct ways:
- FiD with Jointly Learned Discriminator: Building on the Fusion-in-Decoder (FiD) architecture, we add a one-layer feed-forward network (the discriminator) to the encoder. The model is trained with a multi-task objective including generative QA loss, binary cross-entropy loss to classify perturbed documents, and contrastive loss to differentiate document representations.
- Instruction-Based Discrimination (GPT-3.5): A prompting strategy where the LLM is explicitly instructed to identify and ignore perturbed passages before generating an answer.
- Hybrid Approach (GPT-3.5 + FiD Disc): Recognizing that small, fine-tuned models can be more precise at specific tasks than general LLMs, we inject the output of the fine-tuned FiD discriminator directly into the GPT-3.5 prompt.
Experimental Setup and MACNOISE
The study utilizes NQ-Open (Natural Questions) and TriviaQA. To simulate realistic knowledge conflict, we introduce MACNOISE (Machine-Generated Noise). Unlike simple entity swapping, MACNOISE uses GPT-4 to generate sophisticated counterfactual documents with global and local revisions, making the misinformation harder to detect.
Key Results and Analysis
Our experiments demonstrate that adding a discriminator significantly enhances model robustness against counterfactual noise.
- Robustness Gains: On NQ-Open with 35% perturbed documents, the FiD model with a discriminator saw an absolute gain of +5.8% in Exact Match (EM) over the baseline. Injecting FiD's discriminator output into GPT-3.5's prompt improved its EM by +4.4% in high-noise scenarios.
- Discriminator Precision: Fine-tuned discriminators (even on smaller models like T5-base) achieve remarkably high precision, often exceeding 90%, in identifying perturbed documents. They significantly outperform zero-shot LLMs in this specific "BS detection" task.
- Generalization: A discriminator trained on NQ-Open transfers effectively to TriviaQA without further fine-tuning, suggesting it learns the general characteristics of noise rather than specific facts.
Conclusion
Existing RAG models are highly susceptible to "strong prompt-following," often parroting incorrect information even when they possess the correct internal knowledge. The "Discern and Answer" approach mitigates this by combining the high-precision detection of small, fine-tuned models with the broad reasoning of large LLMs. Future research should explore reconciling conflicting information rather than just suppressing it, and testing these models against human-crafted misinformation.
Summary updated