ClashEval:量化大语言模型内部先验与外部证据之间的拉锯战
ClashEval: Quantifying the tug-of-war between an LLM's internal prior and external evidence
AI总结:
ClashEval通过构建1200余个多领域问题并施加答案扰动,系统量化了LLMs在内部先验与外部检索证据冲突时的取舍行为,发现模型在60%以上情况下会错误采纳检索内容,并提出利用置信度提升准确率的简单方法。
摘要:
检索增强生成(RAG)经常被用于缓解大语言模型(LLMs)的幻觉问题,并为其提供最新知识。然而,鉴于文档检索是一项不精确的任务,有时会导致错误甚至有害的内容出现在上下文中,这就提出了一个问题:LLMs如何处理检索到的信息?如果提供的内容是错误的,模型是否知道忽略它,还是会重复这一错误?相反,当模型的初始回答错误时,它是否总是知道利用检索到的信息来纠正自己,还是会坚持其错误的先验回答?为了回答这些问题,我们构建了一个包含超过1200个问题的数据集,涵盖六个领域(例如药物剂量、奥运纪录、地理位置),并附有与回答每个问题相关的内容。我们进一步对内容中的答案施加从细微到明显错误的精确扰动。我们在该数据集上对六个性能领先的LLMs(包括GPT-4o)进行基准测试,发现LLMs容易采纳错误的检索内容,在超过60%的情况下会覆盖其自身正确的先验知识。然而,检索内容越不真实(即偏离事实越远),模型采纳它的可能性就越低。此外,模型对其初始回答越不自信(通过测量token概率),就越有可能采纳检索内容中的信息。我们利用这一发现,展示了在检索内容存在冲突时提高模型准确率的简单方法。我们的结果突显了LLMs面临的一项困难任务和基准——即它们在面对正确检索内容时正确识别自身错误的能力,以及在提供的内容不正确时予以拒绝的能力。
英文摘要:
Retrieval augmented generation (RAG) is frequently used to mitigate hallucinations and provide up-to-date knowledge for large language models (LLMs). However, given that document retrieval is an imprecise task and sometimes results in erroneous or even harmful content being presented in context, this raises the question of how LLMs handle retrieved information: If the provided content is incorrect, does the model know to ignore it, or does it recapitulate the error? Conversely, when the model's initial response is incorrect, does it always know to use the retrieved information to correct itself, or does it insist on its wrong prior response? To answer this, we curate a dataset of over 1200 questions across six domains (e.g., drug dosages, Olympic records, locations) along with content relevant to answering each question. We further apply precise perturbations to the answers in the content that range from subtle to blatant errors. We benchmark six top-performing LLMs, including GPT-4o, on this dataset and find that LLMs are susceptible to adopting incorrect retrieved content, overriding their own correct prior knowledge over 60% of the time. However, the more unrealistic the retrieved content is (i.e. more deviated from truth), the less likely the model is to adopt it. Also, the less confident a model is in its initial response (via measuring token probabilities), the more likely it is to adopt the information in the retrieved content. We exploit this finding and demonstrate simple methods for improving model accuracy where there is conflicting retrieved content. Our results highlight a difficult task and benchmark for LLMs -- namely, their ability to correctly discern when it is wrong in light of correct retrieved content and to reject cases when the provided content is incorrect.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。