arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2405.19648cs.CLcs.AIcs.LG
收藏

检测大型语言模型生成中的幻觉:一种词元概率方法

Detecting Hallucinations in Large Language Model Generation: A Token Probability Approach

Baylor University(贝勒大学);The University of Arizona(亚利桑那大学)

Ernesto Quevedo, Jorge Yero, Rachel Koerner, Pablo Rivas, Tomas Cerny

AI总结:

本文提出一种有监督学习方法,利用两个简单分类器并仅基于来自其他LLM评估器的四个词元与词汇概率数值特征来检测大型语言模型幻觉,在三个基准上超越现有最优结果。

摘要:

关于大型语言模型(LLMs)产生不准确输出(也称为幻觉)的倾向的担忧日益加剧。检测幻觉对于确保依赖LLM生成内容的应用程序的可靠性至关重要。当前的方法通常需要大量资源,并依赖于庞大的LLM,或采用具有多维特征的有监督学习,或使用难以重现的复杂语言和语义分析,且很大程度上依赖于使用产生幻觉的同一个LLM。本文提出了一种有监督学习方法,采用两个简单的分类器,仅利用从其他LLM评估器获得的词元和词汇概率中提取的四个数值特征,这些评估器不必与原模型相同。该方法取得了有希望的结果,在三个不同基准的多个任务中超越了最先进的结果。此外,我们对方法的优缺点进行了全面检查,强调了所用特征和作为评估器的LLM的重要性。我们已在 https://github.com/Baylor-AI/HalluDetect 公开发布了代码。

英文摘要:

Concerns regarding the propensity of Large Language Models (LLMs) to produce inaccurate outputs, also known as hallucinations, have escalated. Detecting them is vital for ensuring the reliability of applications relying on LLM-generated content. Current methods often demand substantial resources and rely on extensive LLMs or employ supervised learning with multidimensional features or intricate linguistic and semantic analyses difficult to reproduce and largely depend on using the same LLM that hallucinated. This paper introduces a supervised learning approach employing two simple classifiers utilizing only four numerical features derived from tokens and vocabulary probabilities obtained from other LLM evaluators, which are not necessarily the same. The method yields promising results, surpassing state-of-the-art outcomes in multiple tasks across three different benchmarks. Additionally, we provide a comprehensive examination of the strengths and weaknesses of our approach, highlighting the significance of the features utilized and the LLM employed as an evaluator. We have released our code publicly at https://github.com/Baylor-AI/HalluDetect.

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

↑