arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2401.11911cs.CLcs.AI
收藏

被生成上下文蒙蔽:当知识冲突时,语言模型如何合并生成上下文与检索上下文?

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

Institute of Computing Technology, Chinese Academy of Sciences(中国科学院计算技术研究所);University of Chinese Academy of Sciences(中国科学院大学)

Hexiang Tan, Fei Sun, Wanli Yang, Yuanzhuo Wang, Qi Cao, Xueqi Cheng

AI总结:

本文研究大语言模型在知识冲突时如何合并生成上下文与检索上下文,发现GPT-4/3.5和Llama2存在偏向生成上下文的显著偏差,并揭示了上下文相似性和检索分段破坏完整性两个关键成因。

摘要:

尽管辅助信息已成为增强大语言模型(LLMs)的关键,但关于LLMs如何合并这些上下文——特别是由LLMs生成的上下文与从外部来源检索的上下文——人们所知相对较少。为研究这一问题,我们构建了一个系统性框架,用于识别LLMs的回答是归因于生成上下文还是检索上下文。为便于追踪回答的来源,我们构建了具有冲突上下文的数据集,即每个问题同时配有一个生成上下文和一个检索上下文,但其中只有一个包含正确答案。我们的实验揭示出多个LLMs(GPT-4/3.5和Llama2)存在显著偏向生成上下文的倾向,即使生成上下文提供了错误信息。我们进一步确定了导致这一偏差的两个关键因素:i)由LLMs生成的上下文通常与问题具有更高的相似性,从而增加了其被选中的可能性;ii)检索上下文中使用的分段过程破坏了其完整性,从而阻碍了它们在LLMs中的充分利用。我们的分析增进了对LLMs如何合并多样化上下文的理解,为推进当前LLM增强方法提供了有价值的见解,并凸显了生成错误信息对检索增强型LLMs的风险。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑