arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2601.19918cs.CL
收藏

最低跨度置信度:一种用于高效且黑盒幻觉检测的零样本度量

Lowest Span Confidence: Zero-Shot Hallucination Detection from a Single LLM Response

Zhejiang University(浙江大学);Ant Group(蚂蚁集团);Institute of Computing Technology, Chinese Academy of Sciences(中国科学院计算技术研究所)

Yitong Qiao, Licheng Pan, Yu Mi, Lei Liu, Yue Shen, Jian Wang, Jinjie Gu, Fei Sun, Zhixuan Chu

AI总结:

本文提出了一种名为最低跨度置信度(LSC)的零样本度量,用于高效且黑盒检测大型语言模型中的幻觉问题。

摘要:

大型语言模型(LLMs)中的幻觉,即生成合理但非事实性内容的倾向,对它们在高风险环境中的可靠部署构成了重大挑战。然而,现有的幻觉检测方法通常基于不现实的假设,即要么需要昂贵且密集的采样策略进行一致性检查,要么需要白盒LLM状态,这些在常见的API场景中不可用或效率低下。为此,我们提出了一种新的高效零样本度量,称为最低跨度置信度(LSC),用于在最小资源假设下进行幻觉检测,仅需一次正向传播和输出概率。具体而言,LSC通过滑动窗口机制评估语义上连贯的跨度的联合概率。通过在可变长度n-gram中识别最低边际置信度的区域,LSC可以很好地捕捉与事实不一致强烈相关的局部不确定性模式。重要的是,LSC可以缓解困惑度的稀释效应和最小令牌概率的噪声敏感性,提供更稳健的事实不确定性的估计。在多个最先进的(SOTA)LLM和多样本基准上的广泛实验表明,LSC在资源受限条件下始终优于现有的零样本基线,提供强大的检测性能。

英文摘要:

Hallucinations in Large Language Models (LLMs), i.e., plausible but non-factual generations, pose a significant challenge to reliable deployment in high-stakes environments. However, many existing hallucination detectors require expensive repeated sampling for consistency checks or access to model-internal states unavailable in common API-based scenarios. To this end, we propose an efficient zero-shot metric called Lowest Span Confidence (LSC) for hallucination detection under minimal resource assumptions. Concretely, LSC evaluates the local confidence of adjacent complete-word spans. By selecting the lowest aggregated confidence across neighboring words whose token widths can vary, LSC captures localized uncertainty associated with factual inconsistency. This boundary-aligned smoothing reduces the global dilution of perplexity and the sensitivity of minimum token probability to isolated noise. Our main evaluation spans four model families {Llama-2, Qwen2.5, Gemma-2, Mistral} and seven benchmarks {NQ, TriviaQA, SQuAD, CoQA, HotpotQA, RAGTruth, FELM}. Additional analyses examine word reconstruction, span width, and the role of adjacency in preserving local confidence. Across these settings, LSC is competitive with methods that use multiple responses or model-internal information while requiring only one response and its output token probabilities, without training a separate detector or using an auxiliary model.

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

↑