[论文解读] The Dawn After the Dark: An Empirical Study on Factuality Hallucination in Large Language Models
论文构建 HaluEval 2.0 来研究大语言模型的事实性幻觉,提出一个两步检测框架,分析在训练与使用阶段的幻觉来源,并评估减缓技术。
In the era of large language models (LLMs), hallucination (i.e., the tendency to generate factually incorrect content) poses great challenge to trustworthy and reliable deployment of LLMs in real-world applications. To tackle the LLM hallucination, three key questions should be well studied: how to detect hallucinations (detection), why do LLMs hallucinate (source), and what can be done to mitigate them (mitigation). To address these challenges, this work presents a systematic empirical study on LLM hallucination, focused on the the three aspects of hallucination detection, source and mitigation. Specially, we construct a new hallucination benchmark HaluEval 2.0, and designs a simple yet effective detection method for LLM hallucination. Furthermore, we zoom into the different training or utilization stages of LLMs and extensively analyze the potential factors that lead to the LLM hallucination. Finally, we implement and examine a series of widely used techniques to mitigate the hallucinations in LLMs. Our work has led to several important findings to understand the hallucination origin and mitigate the hallucinations in LLMs. Our code and data can be accessed at https://github.com/RUCAIBox/HaluEval-2.0.
研究动机与目标
- 调查为什么LLMs会产生幻觉(来源),覆盖预训练、监督微调、RLHF 和推理。
- 开发并验证一个可靠的LLM输出幻觉检测框架。
- 分析常见缓解策略(RLHF、检索增强、自我反思、解码、提示设计)在跨领域中的有效性。
- 提供关于数据和训练选择如何影响LLMs的事实性的领域特定洞见。
提出的方法
- 构建 HaluEval 2.0,涵盖生物医学、金融、科学、教育和开放领域共 8,770 个问题。
- 提出两步检测框架:从回答中提取事实陈述,然后使用一个LLM判断其真实性。
- 在基准上评估一系列开源和闭源LLM。
- 系统分析预训练、SFT、提示设计和推理中影响幻觉的因素。
- 通过在数据子集上将LLM判断与人类标注进行比较,评估检测可靠性。
- 研究包括 RLHF、检索增强、自我反思、先进解码和提示改进等缓解技术。
实验结果
研究问题
- RQ1在跨领域的LLM中,预训练、监督微调、提示设计和推理中的哪些因素会影响事实性幻觉?
- RQ2所提出的两步幻觉检测框架在识别事实性错误方面有多有效?
- RQ3哪些缓解策略在跨领域中最能减少幻觉,且效果如何因领域而异?
- RQ4开源与闭源LLM在产生幻觉的倾向以及识别幻觉方面有何差异?
主要发现
- 预训练:更多的令牌对幻觉的影响有限或呈现振荡;在预训练中加入专门化数据可以显著减少领域特异性的幻觉。
- 微调:改进的指令有助于减少幻觉;平衡指令复杂性有益,而过于复杂的提示可能增加幻觉;RLHF 在不同领域的有效性存在差异。
- 推理:面向多样性的解码在专业领域可能增加幻觉;逐字(逐令牌)生成会强化先前的错误;量化可能增加幻觉。
- 提示设计:增加细节和利用上下文学习可以减少幻觉;更易读、正式且具体的语言可以降低幻觉;重新排序任务描述可能影响幻觉水平。
- 闭源模型(如 ChatGPT、Claude 2)显示较低的幻觉率,但在开放领域设置中可能过度回避;开源模型表现出更大的方差和更高的领域特异性幻觉,尤其是在开放域问题中。
- 该检测框架对人类判断具有高可靠性,在人工标注子集的各领域匹配率约为 92-95%。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。