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

询问本地模型:利用专用模型分歧检测幻觉

Ask a Local: Detecting Hallucinations With Specialized Model Divergence

Fundación Centro Tecnolóxico de Telecomunicacións de Galicia (GRADIANT)(加利西亚电信技术中心基金会 (GRADIANT))

Aldan Creo, Héctor Cerezo-Costas, Pedro Alonso-Doval, Maximiliano Hormazábal-Lagos

AI总结:

本文提出“Ask a Local”方法,通过比较语言专用模型的困惑度分布分歧来检测大语言模型幻觉,无需训练或外部数据即可跨14种语言稳定运行,并在意大利语和加泰罗尼亚语上表现最佳。

摘要:

大语言模型(LLMs)中的幻觉——即模型生成看似合理但事实错误的信息——对人工智能构成了重大挑战。我们提出“Ask a Local”,这是一种新颖的幻觉检测方法,其核心直觉是:专用模型在遇到特定领域的错误信息时会表现出更大的惊讶。我们的方法通过计算语言专用模型困惑度分布之间的分歧来识别可能产生幻觉的文本片段。该方法特别适合多语言场景,因为它无需适配、无需依赖外部数据源、也无需训练,即可自然扩展到多种语言。此外,我们选择了计算高效的模型,提供了一种可扩展的解决方案,可应用于广泛的语言和领域。我们在一个涵盖14种语言的人工标注问答数据集上的结果表明,该方法在不同语言间表现一致,交并比(IoU)分数约为0.3,且Spearman相关值相当。我们的模型在意大利语和加泰罗尼亚语上表现尤为突出,IoU分数分别为0.42和0.38,同时在无需针对特定语言适配的情况下保持了跨语言有效性。我们公开了代码和架构,以促进多语言幻觉检测领域的进一步研究。

英文摘要:

Hallucinations in large language models (LLMs) - instances where models generate plausible but factually incorrect information - present a significant challenge for AI. We introduce "Ask a Local", a novel hallucination detection method exploiting the intuition that specialized models exhibit greater surprise when encountering domain-specific inaccuracies. Our approach computes divergence between perplexity distributions of language-specialized models to identify potentially hallucinated spans. Our method is particularly well-suited for a multilingual context, as it naturally scales to multiple languages without the need for adaptation, relying on external data sources, or performing training. Moreover, we select computationally efficient models, providing a scalable solution that can be applied to a wide range of languages and domains. Our results on a human-annotated question-answer dataset spanning 14 languages demonstrate consistent performance across languages, with Intersection-over-Union (IoU) scores around 0.3 and comparable Spearman correlation values. Our model shows particularly strong performance on Italian and Catalan, with IoU scores of 0.42 and 0.38, respectively, while maintaining cross-lingual effectiveness without language-specific adaptations. We release our code and architecture to facilitate further research in multilingual hallucination detection.

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

↑