Skip to main content
QUICK REVIEW

[Paper Review] Making Retrieval-Augmented Language Models Robust to Irrelevant Context

Ori Yoran, Tomer Wolfson|arXiv (Cornell University)|Oct 2, 2023
Topic ModelingComputer Science20 citations
TL;DR

The paper analyzes how retrieval-augmented language models (RALMs) can be harmed by irrelevant retrieved context and proposes two methods to improve robustness: an NLI-based filtering baseline and a finetuning approach with training data that mixes relevant and irrelevant contexts.

ABSTRACT

Retrieval-augmented language models (RALMs) hold promise to produce language understanding systems that are are factual, efficient, and up-to-date. An important desideratum of RALMs, is that retrieved information helps model performance when it is relevant, and does not harm performance when it is not. This is particularly important in multi-hop reasoning scenarios, where misuse of irrelevant evidence can lead to cascading errors. However, recent work has shown that retrieval augmentation can sometimes have a negative effect on performance. In this work, we present a thorough analysis on five open-domain question answering benchmarks, characterizing cases when retrieval reduces accuracy. We then propose two methods to mitigate this issue. First, a simple baseline that filters out retrieved passages that do not entail question-answer pairs according to a natural language inference (NLI) model. This is effective in preventing performance reduction, but at a cost of also discarding relevant passages. Thus, we propose a method for automatically generating data to fine-tune the language model to properly leverage retrieved passages, using a mix of relevant and irrelevant contexts at training time. We empirically show that even 1,000 examples suffice to train the model to be robust to irrelevant contexts while maintaining high performance on examples with relevant ones.

Motivation & Objective

  • Assess how irrelevant retrieved context harms RALM performance on open-domain QA benchmarks.
  • Propose methods to identify and mitigate irrelevant contexts without retraining the model.
  • Demonstrate that modest finetuning with generated data improves robustness across single-hop and multi-hop QA tasks.

Proposed method

  • Model-agnostic robustness via an NLI-based back-off that filters out retrieved passages deemed irrelevant to the QA pair.
  • A data-generation pipeline to fine-tune LLMs, creating retrieval-augmented decompositions (single-hop and multi-hop) using a small, automatically generated dataset.
  • Finetune Llama-2-13B (and compare with larger models) on 1,000 single-hop or 500 multi-hop examples with mixed relevant/irrelevant contexts.
  • Evaluate robustness by testing with top-1, low-ranked, and random retrieved passages, and with ColBERTV2 retriever, across five ODQA benchmarks.
  • Analyze errors to categorize when irrelevant context causes failures and how robustness training mitigates these errors.
Figure 1: An example from NQ where retrieval augmentation causes Llama-2-13B to err. Augmenting with irrelevant retrieved context leads to an error (right), although the model is able to answer the question without retrieval (left).
Figure 1: An example from NQ where retrieval augmentation causes Llama-2-13B to err. Augmenting with irrelevant retrieved context leads to an error (right), although the model is able to answer the question without retrieval (left).

Experimental results

Research questions

  • RQ1How does retrieved context, when irrelevant, affect RALM performance on open-domain QA benchmarks?
  • RQ2Can a simple NLI-based filter reliably identify irrelevant retrieved passages without training the LLM?
  • RQ3Does finetuning with a mixture of relevant and irrelevant contexts improve retrieval robustness without sacrificing performance on relevant cases?
  • RQ4How many training examples are sufficient to achieve robustness to noisy retrieval in single-hop and multi-hop QA?
  • RQ5Do robustness gains hold across different retrievers (Google Search, ColBERTV2) and model scales?

Key findings

  • Retrieval augmentation can degrade performance on several benchmarks, even with strong retrievers.
  • An NLI-based back-off can identify irrelevant contexts and prevent performance drops, but may discard some relevant passages.
  • Finetuning with automatically generated data that mixes relevant and irrelevant contexts yields robust performance across datasets, outperforming baselines.
  • Robust models maintain or improve accuracy when faced with random or low-ranked retrieved contexts, indicating improved resilience to noisy retrieval.
  • Models trained with mixed contexts outperform prompting-based baselines and show robustness with both top-1 and noisy retrieval settings.
  • Small NLI models can identify irrelevant evidence effectively, but may reduce gains when retrieval is truly helpful.
Figure 2: Accuracy for Llama-2-13B few-shot prompted on five QA tasks, in three settings: (a) without retrieval, (b) with top-1 retrieval from a strong search engine, and (c) with a randomly-retrieved passage. Retrieval augmentation can boost performance, but even strong retrieval hurts performance
Figure 2: Accuracy for Llama-2-13B few-shot prompted on five QA tasks, in three settings: (a) without retrieval, (b) with top-1 retrieval from a strong search engine, and (c) with a randomly-retrieved passage. Retrieval augmentation can boost performance, but even strong retrieval hurts performance

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.