Skip to main content
QUICK REVIEW

[논문 리뷰] Making Retrieval-Augmented Language Models Robust to Irrelevant Context

Ori Yoran, Tomer Wolfson|arXiv (Cornell University)|2023. 10. 02.
Topic ModelingComputer Science인용 수 20
한 줄 요약

이 논문은 검색 보강 언어 모델(RALM)이 관련 없는 검색 맥락에 의해 어떻게 손상될 수 있는지 분석하고, 강건성을 향상시키기 위한 두 가지 방법을 제안한다: NLI 기반 필터링 기반선과 관련 맥락과 무관한 맥락을 섞은 학습 데이터로의 미세조정 방식.

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.

연구 동기 및 목표

  • 무관한 검색 맥락이 오픈 도메인 QA 벤치마크에서 RALM 성능에 미치는 영향을 평가한다.
  • 모델 재학습 없이 무관한 맥락을 식별하고 완화하는 방법을 제안한다.
  • 생성된 데이터로의 소규모 미세조정이 단일 홉 및 다중 홉 QA 작업에서 강건성을 향상시킨다는 것을 입증한다.

제안 방법

  • QA 쌍과 관련이 없다고 간주되는 검색 구절을 필터링하는 NLI 기반 백오프를 통한 모델 비의존적 강건성.
  • 작고 자동으로 생성된 데이터 세트를 사용해 LLM을 미세조정하여 검색 보강 분해(단일 홉 및 다중 홉)를 생성하는 데이터 생성 파이프라인.
  • Llama-2-13B를 1,000개의 단일 홉 또는 500개의 다중 홉 예제에서 관련/무관 맥락을 혼합해 미세조정하고(더 큰 모델과 비교).
  • ODQA 벤치마크 다섯 가지에서 top-1, 낮은 순위, 무작위 검색 구절 및 ColBERTV2 검색기를 사용한 테스트로 강건성 평가.
  • 무관한 맥 context가 실패를 유발하는 상황을 분류하고 강건성 학습이 이러한 오류를 어떻게 완화하는지 분석한다.
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).

실험 결과

연구 질문

  • RQ1무관한 검색 맥 context가 오픈 도메인 QA 벤치마크에서 RALM 성능에 어떤 영향을 미치는가?
  • RQ2LLM 재학습 없이도 무관한 검색 구절을 신뢰성 있게 식별할 수 있는 간단한 NLI 기반 필터가 있는가?
  • RQ3관련 및 무관 맥락을 혼합한 미세조정이 검색 강건성을 개선하되 관련 케이스의 성능을 해치지 않는가?
  • RQ4단일 홉 및 다중 홉 QA에서 소음이 있는 검색에 대한 강건성을 달성하기에 충분한 학습 예제 수는 얼마인가?
  • RQ5강건성 이득이 서로 다른 검색기(Google Search, ColBERTV2) 및 모델 규모에서도 유지되는가?

주요 결과

  • 검색 보강은 강력한 검색기를 사용할 때에도 여러 벤치마크에서 성능 저하를 유발할 수 있다.
  • NLI 기반 백오프는 무관한 맥락을 식별하고 성능 하락을 방지할 수 있지만, 일부 관련 구절을 제거할 수 있다.
  • 관련 및 무관 맥락을 자동으로 생성된 데이터로 혼합해 미세조정하면 다양한 데이터셋에서 강건한 성능을 얻으며 기준선을 능가한다.
  • 강건한 모델은 무작위이거나 낮은 순위의 검색 맥락에 직면해도 정확도를 유지하거나 개선하여 소음 있는 검색에 대한 회복력을 보여준다.
  • 혼합 맥 context로 학습된 모델은 프롬프트 기반 기준선보다 우수하며 top-1 및 노이즈 검색 설정 모두에서 강건성을 보인다.
  • 작은 NLI 모델도 무관한 증거를 효과적으로 식별할 수 있지만, 검색이 실제로 도움이 될 때 이득이 감소할 수 있다.
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

이 논문 읽기

누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.

누빈트에서 이 논문 읽기

이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.