Skip to main content
QUICK REVIEW

[论文解读] Blinded by Generated Contexts: How Language Models Merge Generated and Retrieved Contexts When Knowledge Conflicts?

Hexiang Tan, Fei Sun|arXiv (Cornell University)|Jan 22, 2024
Natural Language Processing TechniquesComputer Science被引用 3
一句话总结

本文研究了大型语言模型(LLMs)在开放域问答中如何整合生成的上下文与检索到的上下文,揭示出模型存在强烈偏好生成上下文的倾向——即使这些生成内容包含错误信息。通过设计冲突的数据集,作者发现LLMs更倾向于选择生成的上下文,原因在于其与问题的相似度更高,以及检索段落的语义不完整,凸显了混合检索-生成系统中的风险。

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.

研究动机与目标

  • 研究LLMs在知识密集型任务中,当生成与检索的上下文发生冲突时,如何整合这两种上下文。
  • 识别LLMs为何在生成上下文可能存在错误的情况下仍表现出对其的偏好。
  • 分析影响检索增强型与生成增强型LLMs中上下文选择偏见的潜在因素。
  • 评估上下文相似度与语义完整性对LLMs在混合问答系统中决策的影响。

提出的方法

  • 构建了冲突解决型数据集,其中每个问题均配对一个正确和一个错误的上下文——无论是生成的还是检索的——确保仅有一个来源包含正确答案。
  • 设计受控实验,使用GPT-3.5、GPT-4和Llama2-7b/13b评估模型在冲突上下文条件下的响应。
  • 通过截断和句子级截断改变生成上下文的完整性,以隔离语义与句法完整性的影响。
  • 使用DiffGR(生成响应差异)这一指标衡量模型对生成与检索上下文的依赖程度。
  • 比较生成与检索上下文在与问题的相似度和完整性方面的差异,以识别促成因素。
  • 开展消融研究,检验确认偏误或相似性本身是否驱动观察到的偏好。
Figure 1: Blue bars show the success number on the NQ test set with only retrieved contexts, while orange bars depict the decline in success for the same questions when generated contexts are additionally incorporated.
Figure 1: Blue bars show the success number on the NQ test set with only retrieved contexts, while orange bars depict the decline in success for the same questions when generated contexts are additionally incorporated.

实验结果

研究问题

  • RQ1当生成与检索的上下文同时存在但仅一个包含正确答案时,LLMs是否更偏好生成的上下文?
  • RQ2在存在冲突信息的情况下,哪些因素导致LLMs对生成上下文产生偏见?
  • RQ3即使生成内容错误,生成上下文与问题之间的相似性是否仍会影响模型的偏好?
  • RQ4检索上下文的语义完整性如何影响其在LLMs中的利用程度,相较于生成上下文?
  • RQ5这种偏见是由确认偏误引起的,还是其他因素(如相似性与完整性)更具影响力?

主要发现

  • GPT-3.5、GPT-4和Llama2-13b等LLMs表现出对生成上下文的强烈偏好,即使其内容错误,NQ测试集上的DiffGR值达到0.6562。
  • 无论生成上下文由同一模型还是不同LLM生成,这种偏好均持续存在,表明这是一种系统性偏好而非模型特异性行为。
  • 即使内容错误,生成上下文与问题的相似度也显著高于检索上下文,且该相似度与模型依赖度呈正相关。
  • 检索上下文因段落分割导致的语义不完整,降低了其可用性,因为LLMs更倾向于选择语义完整性更高的上下文。
  • 当生成上下文语义完整时,其偏好程度进一步上升,相比语义不完整的版本,偏好度高出20%。
  • 与语义完整性相比,句子级完整性影响较小,表明LLMs更重视语义连贯性而非句法句子边界。
(a) Retrieval-Augmented Approach
(a) Retrieval-Augmented Approach

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。