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,Xueqi Cheng
2024-06-05
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. 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.
Computation and Language,Artificial Intelligence
What problem does this paper attempt to address?
The problem that this paper attempts to address is the bias issue in large language models (LLMs) when merging generated context and retrieved context. Specifically, researchers have found that when the generated context and the retrieved context contain conflicting information, LLMs tend to prioritize the generated context, even if this generated context provides incorrect information. This bias can lead to deficiencies in LLMs when handling diverse information from different sources, especially when combining generated and retrieved contexts in hybrid methods. To explore this issue, the researchers designed a systematic framework to identify whether the LLMs' responses are based on generated context or retrieved context and constructed a dataset with conflicting contexts to ensure that each question is paired with both a generated and a retrieved context, but only one context contains the correct answer. Through experiments, they revealed several key factors contributing to this bias, including text similarity and semantic completeness. These findings help to understand how LLMs merge different types of contexts and provide valuable insights for improving current LLM enhancement methods.