Why So Gullible? Enhancing the Robustness of Retrieval-Augmented Models against Counterfactual Noise

Giwon Hong, Jeonghwan Kim, Junmo Kang, Sung-Hyon Myaeng, Joyce Jiyoung Whang · DOI

TL;DR

Retrieval-augmented language models (LMs) are surprisingly brittle when "relevant" documents contain conflicting or misleading information, leading to incorrect answers. This paper introduces methods to improve their robustness by training discriminators to identify these conflicts, and shows that combining this with large language models (LLMs) like GPT-3.5 significantly enhances performance. They also release MACNOISE, a new dataset of machine-generated conflicting documents to further research this problem.

What Problem Does This Paper Address?

Modern question-answering systems often rely on retrieval-augmented language models (LMs). These models first retrieve relevant documents and then use a language model to extract an answer. A common assumption is that retrieved documents are either relevant or irrelevant. However, in real-world scenarios, even "relevant" documents can contain subtle misinformation, outdated facts, or even fabricated content, especially with the rise of LLM-generated text. This "counterfactual noise" can confuse LMs, leading them to produce incorrect answers. The paper investigates how susceptible existing retrieval-augmented LMs are to this noise and proposes methods to make them more robust.

Methods

The authors tackle the problem of counterfactual noise in two main ways:

  1. Fine-tuning a Discriminator: They propose training a discriminator alongside the main retrieval-augmented model (specifically, a FiD model). This discriminator learns to identify documents that contain conflicting information. By incorporating this discriminative signal, the model's encoder can produce "corrupt-aware" embeddings, helping the decoder to better distinguish reliable information. This involves a multi-task learning setup with a generative QA loss, a binary cross-entropy loss for discrimination, and a contrastive loss.
  2. Prompting LLMs (GPT-3.5): They explore eliciting the discriminative capabilities of LLMs like GPT-3.5 through in-context learning. This involves two strategies:
  3. Instruction-Based Discrimination: Prompting GPT-3.5 to explicitly identify and ignore perturbed documents before answering the question.
  4. Discriminator-Grounded Prompting: Injecting the output of the fine-tuned FiD discriminator into the prompt for GPT-3.5. This combines the LLM's broad knowledge with the fine-tuned discriminator's precise conflict detection.

Datasets

  • NQ-Open: A standard open-domain question-answering dataset used for training and evaluating models.
  • TQA-Open: Another English-oriented QA dataset used for evaluating transferability.
  • MACNOISE: A newly introduced benchmark dataset created by the authors. It consists of machine-generated counterfactual documents designed to be more realistic and challenging than previous entity-replacement methods. MACNOISE uses GPT-3.5-turbo for training data and GPT-4 for evaluation data, employing various perturbation strategies like Global Revision, Local Revision, and Additional Context.

Key Insights and Ideas

  • Gullibility of RAG Models: Even sophisticated retrieval-augmented models are surprisingly "gullible" and easily misled by conflicting information in retrieved documents, performing significantly worse as the proportion of noisy documents increases.
  • Discriminator as a Shield: Explicitly training a discriminator to detect counterfactuals is a highly effective way to improve the robustness of retrieval-augmented models, even when the "gold" documents are provided.
  • Synergy between Fine-tuning and Prompting: Combining a fine-tuned discriminator with the in-context learning capabilities of LLMs like GPT-3.5 offers a powerful synergistic effect, enhancing both robustness and stability.
  • Limitations of Entity Replacement: Simple entity replacement, while a useful proxy, has limitations in realism and can lead to models exploiting synthetic cues. MACNOISE aims to overcome these by using more sophisticated LLM-generated perturbations.

Key Results

  • Significant Performance Gains: The proposed methods (Semi-Parametric w/ DiscFiD and Semi-Parametric w/ DiscInst) significantly improve performance (Exact Match scores) compared to standard Semi-Parametric models, especially under higher perturbation percentages (e.g., 35% perturbation). For FiD, the average gain was 4.7 points.
  • Improved LLM Stability: Injecting the fine-tuned discriminator's output into GPT-3.5 prompts greatly improves the stability of its predictions, reducing variance across different in-context samples.
  • Discriminator Transferability: The fine-tuned discriminator, trained on NQ-Open, shows good transferability to the TQA-open dataset, indicating it learns generalizable features for detecting counterfactuals.
  • MACNOISE is Challenging: The new MACNOISE benchmark, using GPT-4 generated perturbations, poses a greater challenge to models, demonstrating the need for more robust evaluation methods.

Limitations and Future Work

  • Cost of LLM Usage: Generating datasets and performing experiments with LLMs like GPT-3.5 and GPT-4 incurs substantial costs.
  • Input Length Constraints: For LLMs like GPT-3.5, the top 5 retrieved documents were used due to context window limitations, which might not capture all relevant information.
  • Synthetic Nature of Data: While MACNOISE is more realistic than entity replacement, LLM-generated data can still have inherent synthetic artifacts.
  • Incomplete Suppression of Noise: The authors acknowledge that their fine-tuned discriminator framework, while effective, does not completely suppress the influence of counterfactual information, suggesting room for further improvement.
  • Future Work: The paper suggests future work could explore further mitigating the influence of counterfactual information and integrating the benefits of both fine-tuning and in-context learning paradigms more deeply.

Summary updated

BibTeX
@inproceedings{hong2024why,
  author = {Giwon Hong and Jeonghwan Kim and Junmo Kang and Sung-Hyon Myaeng and Joyce Jiyoung Whang},
  title = {{Why So Gullible? Enhancing the Robustness of Retrieval-Augmented Models against Counterfactual Noise}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.findings-naacl.159},
}
Figure