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

区分 LLM 幻觉中的无知与错误

Distinguishing Ignorance from Error in LLM Hallucinations

Technion – Israel Institute of Technology(以色列理工学院);Google Research(谷歌研究院)

Adi Simhi, Jonathan Herzig, Idan Szpektor, Yonatan Belinkov

AI总结:

本文将 LLM 幻觉划分为参数缺乏知识的 HK- 与具备知识却答错的 HK+,证明 HK+ 普遍存在且区分二者有助于缓解幻觉,并提出构建模型专属数据集训练检测器。

摘要:

大型语言模型(LLM)容易产生幻觉,即事实性错误的输出,这催生了大量关于检测和缓解此类情况的研究。我们认为,区分两类幻觉非常重要:一类是模型参数中未保存正确答案的情况,我们称之为 HK-;另一类是模型虽具备所需知识却回答错误的情况,称之为 HK+。我们首先发现,HK+ 幻觉十分普遍,并且跨模型和数据集出现。随后,我们证明区分这两种情况有助于缓解幻觉。重要的是,我们表明不同模型会在不同样本上产生幻觉,这促使我们构建用于训练检测器的、针对特定模型的幻觉数据集。总体而言,我们的发现促使人们关注对幻觉类型进行分类,并为更有效地处理幻觉提供了手段。代码可在 https://github.com/technion-cs-nlp/hallucination-mitigation 获取。

英文摘要:

Large language models (LLMs) are susceptible to hallucinations -- factually incorrect outputs -- leading to a large body of work on detecting and mitigating such cases. We argue that it is important to distinguish between two types of hallucinations: ones where the model does not hold the correct answer in its parameters, which we term HK-, and ones where the model answers incorrectly despite having the required knowledge, termed HK+. We first find that HK+ hallucinations are prevalent and occur across models and datasets. Then, we demonstrate that distinguishing between these two cases is beneficial for mitigating hallucinations. Importantly, we show that different models hallucinate on different examples, which motivates constructing model-specific hallucination datasets for training detectors. Overall, our findings draw attention to classifying types of hallucinations and provide means to handle them more effectively. The code is available at https://github.com/technion-cs-nlp/hallucination-mitigation .

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

↑