arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2511.02626cs.CL
收藏

理解大语言模型中新知识诱导的事实幻觉:分析与解释

Understanding New-Knowledge-Induced Factual Hallucinations in LLMs: Analysis and Interpretation

National Key Laboratory for Novel Software Technology, Nanjing University(南京大学新型软件技术国家重点实验室);Huawei Translation Services Center(华为翻译服务中心)

Renfei Dang, Peng Hu, Zhejian Lai, Changjiang Gao, Min Zhang, Shujian Huang

AI总结:

研究探讨了新知识微调导致的大语言模型事实幻觉现象,通过设计Biography-Reasoning数据集,分析不同知识类型和任务类型中的幻觉表现,发现知识类型中不熟悉程度是幻觉的主要驱动因素。

摘要:

先前研究表明,对新知识的微调会引发大语言模型(LLMs)的事实幻觉,导致在评估已知信息时产生错误输出。然而,此类幻觉的具体表现及其内在机制尚不明确。本文通过设计受控数据集Biography-Reasoning,并在多种知识类型和两种任务类型(知识问答和知识推理任务)上进行细粒度分析,发现幻觉不仅严重影响涉及新知识的任务,还传播到其他评估任务。此外,当微调的数据集中的特定知识类型完全由新知识组成时,LLMs表现出更高的幻觉倾向。这表明,知识类型中的不熟悉程度,而非整体新知识比例,是幻觉的更强驱动因素。通过可解释性分析,我们发现学习新知识会削弱模型对输入问题中关键实体的关注,导致过度依赖上下文并增加幻觉风险。相反,在训练后期重新引入少量已知知识可恢复对关键实体的关注,并显著减轻幻觉行为。最后,我们证明了破坏的注意力模式会传播到词法相似的上下文中,从而在原始任务之外促进幻觉的扩散。

英文摘要:

Prior works have shown that fine-tuning on new knowledge can induce factual hallucinations in large language models (LLMs), leading to incorrect outputs when evaluated on previously known information. However, the specific manifestations of such hallucination and its underlying mechanisms remain insufficiently understood. Our work addresses this gap by designing a controlled dataset \textit{Biography-Reasoning}, and conducting a fine-grained analysis across multiple knowledge types and two task types, including knowledge question answering (QA) and knowledge reasoning tasks. We find that hallucinations not only severely affect tasks involving newly introduced knowledge, but also propagate to other evaluation tasks. Moreover, when fine-tuning on a dataset in which a specific knowledge type consists entirely of new knowledge, LLMs exhibit elevated hallucination tendencies. This suggests that the degree of unfamiliarity within a particular knowledge type, rather than the overall proportion of new knowledge, is a stronger driver of hallucinations. Through interpretability analysis, we show that learning new knowledge weakens the model's attention to key entities in the input question, leading to an over-reliance on surrounding context and a higher risk of hallucination. Conversely, reintroducing a small amount of known knowledge during the later stages of training restores attention to key entities and substantially mitigates hallucination behavior. Finally, we demonstrate that disrupted attention patterns can propagate across lexically similar contexts, facilitating the spread of hallucinations beyond the original task.

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

↑