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

大语言模型幻觉的理论基础与缓解方法

Theoretical Foundations and Mitigation of Hallucination in Large Language Models

Department of Computer Science, University of Sana'a(桑加大学计算机科学系)

Esmail Gumaan

AI总结:

该研究对大语言模型幻觉问题给出形式化定义与理论分析,推导幻觉风险边界,调研检测与缓解方法,提出统一工作流与评估协议,为解决该挑战提供理论基础与实践指南。

摘要:

大语言模型(Large Language Models, LLMs)中的幻觉指生成的内容不符合输入信息或现实世界事实。本文对大语言模型的幻觉问题展开严谨研究,包含形式化定义与理论分析。我们区分了内在幻觉与外在幻觉,并定义了模型的“幻觉风险”。我们利用学习理论框架(PAC-Bayes与Rademacher复杂度)推导了该风险的边界。随后我们调研了幻觉检测策略,例如token级不确定性估计、置信度校准以及注意力对齐检查。在缓解方法方面,我们讨论了检索增强生成、幻觉感知微调、logit校准以及事实验证模块整合等方案。我们提出了一套统一的检测与缓解工作流程,并辅以示意图说明以整合这些策略。最后,我们概述了幻觉的评估协议,推荐了用于量化并减少幻觉的数据集、指标与实验设置。本研究为解决大语言模型幻觉这一关键挑战奠定了理论基础并提供了实践指南。

英文摘要:

Hallucination in Large Language Models (LLMs) refers to the generation of content that is not faithful to the input or the real-world facts. This paper provides a rigorous treatment of hallucination in LLMs, including formal definitions and theoretical analyses. We distinguish between intrinsic and extrinsic hallucinations, and define a \textit{hallucination risk} for models. We derive bounds on this risk using learning-theoretic frameworks (PAC-Bayes and Rademacher complexity). We then survey detection strategies for hallucinations, such as token-level uncertainty estimation, confidence calibration, and attention alignment checks. On the mitigation side, we discuss approaches including retrieval-augmented generation, hallucination-aware fine-tuning, logit calibration, and the incorporation of fact-verification modules. We propose a unified detection and mitigation workflow, illustrated with a diagram, to integrate these strategies. Finally, we outline evaluation protocols for hallucination, recommending datasets, metrics, and experimental setups to quantify and reduce hallucinations. Our work lays a theoretical foundation and practical guidelines for addressing the crucial challenge of hallucination in LLMs.

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

↑