Blinded by Generated Contexts: How Language Models Merge Generated and Retrieved Contexts When Knowledge Conflicts?

Hexiang Tan, Fei Sun, Wanli Yang, Yuanzhuo Wang, Qi Cao +1 more
1/22/2024
70 citations
cs.CLcs.AI

Official code: Tan-Hexiang/RetrieveOrGenerated (4 stars, Python, last commit 2024-10-17).

Abstract

While auxiliary information has become a key to enhancing Large Language Models (LLMs), relatively little is known about how LLMs merge these contexts, specifically contexts generated by LLMs and those retrieved from external sources. To investigate this, we formulate a systematic framework to identify whether LLMs' responses are attributed to either generated or retrieved contexts.

Show full abstract

To easily trace the origin of the response, we construct datasets with conflicting contexts, i.e., each question is paired with both generated and retrieved contexts, yet only one of them contains the correct answer. Our experiments reveal a significant bias in several LLMs (GPT-4/3.5 and Llama2) to favor generated contexts, even when they provide incorrect information. We further identify two key factors contributing to this bias: i) contexts generated by LLMs typically show greater similarity to the questions, increasing their likelihood of being selected; ii) the segmentation process used in retrieved contexts disrupts their completeness, thereby hindering their full utilization in LLMs. Our analysis enhances the understanding of how LLMs merge diverse contexts, offers valuable insights for advancing current LLM augmentation methods, and highlights the risk of generated misinformation for retrieval-augmented LLMs.

View on arXivView PDF

Code Implementations(1)

This is the code repository for the ACL2024 paper "Blinded by Generated Contexts: How Language Models Merge Generated and Retrieved Contexts for Open-Domain QA?"

41Python, ShellMay 22, 20242 years ago

Similar Papers

Cite this paper

@article{tan2024blinded,
  title  = {Blinded by Generated Contexts: How Language Models Merge Generated and Retrieved Contexts When Knowledge Conflicts?},
  author = {Hexiang Tan and Fei Sun and Wanli Yang and Yuanzhuo Wang and Qi Cao and Xueqi Cheng},
  year   = {2024},
  eprint = {2401.11911},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2401.11911v6}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2401.11911.svg)](https://codeofpaper.com/paper/2401.11911)

Discussion