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

LLM 知道幻觉吗?对 LLM 隐藏状态的实证研究

Do LLMs Know about Hallucination? An Empirical Investigation of LLM's Hidden States

The Hong Kong University of Science and Technology(香港科技大学)

Hanyu Duan, Yi Yang, Kar Yan Tam

AI总结:

本研究通过引入实验框架检查 LLaMA 模型在真实回答与幻觉回答时隐藏状态的差异,并利用模型解释技术分析发现,展示了利用隐藏表示空间指导缓解幻觉的潜力。

摘要:

大型语言模型(LLMs)会编造不真实的答案,这被称为幻觉。本研究旨在探讨 LLMs 是否、如何以及在多大程度上意识到幻觉。更具体地说,我们检查 LLM 在回答正确与产生幻觉时,其隐藏状态是否存在不同的反应。为此,我们引入了一个实验框架,允许在不同幻觉情境下检查 LLM 的隐藏状态。基于此框架,我们对 LLaMA 家族(Touvron et al., 2023)的语言模型进行了一系列实验。我们的实证发现表明,LLMs 在处理真实回答与编造回答时反应不同。随后,我们应用多种模型解释技术以帮助更好地理解和解释这些发现。此外,受实证观察启发,我们展示了利用从 LLM 隐藏表示空间导出的指导来缓解幻觉的巨大潜力。我们相信,这项工作为理解 LLMs 如何产生幻觉答案以及如何减少其发生提供了见解。

英文摘要:

Large Language Models (LLMs) can make up answers that are not real, and this is known as hallucination. This research aims to see if, how, and to what extent LLMs are aware of hallucination. More specifically, we check whether and how an LLM reacts differently in its hidden states when it answers a question right versus when it hallucinates. To do this, we introduce an experimental framework which allows examining LLM's hidden states in different hallucination situations. Building upon this framework, we conduct a series of experiments with language models in the LLaMA family (Touvron et al., 2023). Our empirical findings suggest that LLMs react differently when processing a genuine response versus a fabricated one. We then apply various model interpretation techniques to help understand and explain the findings better. Moreover, informed by the empirical observations, we show great potential of using the guidance derived from LLM's hidden representation space to mitigate hallucination. We believe this work provides insights into how LLMs produce hallucinated answers and how to make them occur less often.

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

↑