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

通过更强聚焦增强基于不确定性的幻觉检测

Enhancing Uncertainty-Based Hallucination Detection with Stronger Focus

Shanghai Jiaotong University(上海交通大学);Amazon AWS AI(亚马逊AWS人工智能);Westlake University(西湖大学);IGSNRR, Chinese Academy of Sciences(中国科学院地理科学与资源研究所)

Tianhang Zhang, Lin Qiu, Qipeng Guo, Cheng Deng, Yue Zhang, Zheng Zhang, Chenghu Zhou, Xinbing Wang, Luoyi Fu

AI总结:

本文提出一种无参考、基于不确定性的LLM幻觉检测方法,通过聚焦关键词、历史不可靠token及token属性模仿人类事实核查,在相关数据集上达到SOTA且无需额外信息。

摘要:

大型语言模型(LLMs)因其在各个领域出色的表现而获得了极大的关注。然而,LLMs 容易产生不真实或无意义的幻觉输出,在许多实际应用中无法满足用户期望。现有的检测 LLMs 幻觉的方法要么依赖外部知识进行参考检索,要么需要从 LLMs 中采样多个响应以进行一致性验证,这使得这些方法成本高昂且效率低下。在本文中,我们提出了一种新颖的无参考、基于不确定性的方法来检测 LLMs 中的幻觉。我们的方法从三个方面模仿人类在事实核查中的关注点:1)关注给定文本中最具信息量和最重要的关键词;2)关注历史上下文中可能导致幻觉级联的不可靠 token;3)关注 token 属性,如 token 类型和 token 频率。在相关数据集上的实验结果证明了我们提出方法的有效性,该方法在所有评估指标上均达到了最先进的性能,并且消除了对额外信息的需求。

英文摘要:

Large Language Models (LLMs) have gained significant popularity for their impressive performance across diverse fields. However, LLMs are prone to hallucinate untruthful or nonsensical outputs that fail to meet user expectations in many real-world applications. Existing works for detecting hallucinations in LLMs either rely on external knowledge for reference retrieval or require sampling multiple responses from the LLM for consistency verification, making these methods costly and inefficient. In this paper, we propose a novel reference-free, uncertainty-based method for detecting hallucinations in LLMs. Our approach imitates human focus in factuality checking from three aspects: 1) focus on the most informative and important keywords in the given text; 2) focus on the unreliable tokens in historical context which may lead to a cascade of hallucinations; and 3) focus on the token properties such as token type and token frequency. Experimental results on relevant datasets demonstrate the effectiveness of our proposed method, which achieves state-of-the-art performance across all the evaluation metrics and eliminates the need for additional information.

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

↑