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

预算受限下的幻觉检测:语义熵的高效贝叶斯估计

Hallucination Detection on a Budget: Efficient Bayesian Estimation of Semantic Entropy

Spotify

Kamil Ciosek, Nicolò Felicioni, Sina Ghiassian

AI总结:

本文提出一种基于贝叶斯方法的语义熵高效估计算法,用于在有限采样预算下检测LLM幻觉,显著减少所需样本量并保持检测性能。

摘要:

检测大型语言模型(LLM)是否产生幻觉是一个重要的研究挑战。一种有前景的方法是估计生成序列分布的语义熵(Farquhar等人,2024)。我们提出了一种新的算法来实现这一目标,该算法具有两个主要优势。首先,由于我们采用了贝叶斯方法,在给定LLM采样预算的情况下,我们能够获得质量更高的语义熵估计。其次,我们能够自适应地调整样本数量,使得“更困难”的上下文获得更多样本。我们通过实验证明,我们的方法在系统上优于基线方法,仅需Farquhar等人(2024)所用样本的53%即可达到相同的幻觉检测质量(以AUROC衡量)。此外,出乎意料的是,即使仅使用一个样本,我们的估计器也是有用的。

英文摘要:

Detecting whether an LLM hallucinates is an important research challenge. One promising way of doing so is to estimate the semantic entropy (Farquhar et al., 2024) of the distribution of generated sequences. We propose a new algorithm for doing that, with two main advantages. First, due to us taking the Bayesian approach, we achieve a much better quality of semantic entropy estimates for a given budget of samples from the LLM. Second, we are able to tune the number of samples adaptively so that `harder' contexts receive more samples. We demonstrate empirically that our approach systematically beats the baselines, requiring only 53% of samples used by Farquhar et al. (2024) to achieve the same quality of hallucination detection as measured by AUROC. Moreover, quite counterintuitively, our estimator is useful even with just one sample from the LLM.

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

↑