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

在黑盒大语言模型中利用令牌级熵产率学习幻觉检测

Learned Hallucination Detection in Black-Box LLMs using Token-level Entropy Production Rate

Artefact Research Center(艺术研究中心)

Charles Moslonka, Hicham Randrianarivo, Arthur Garnier, Emmanuel Malherbe

AI总结:

本文提出一种基于令牌级熵产率的学习方法,用于在黑盒LLM中高效检测幻觉,通过单次生成过程提升问答系统响应的可信度。

摘要:

大型语言模型(LLM)在问答(QA)任务中的输出幻觉可能严重削弱其在现实中的可靠性。本文介绍了一种稳健的单次幻觉检测方法,特别适用于数据访问有限的场景,例如与黑盒LLM API交互,这些API通常只暴露每个令牌的几个顶部候选对数概率。我们的方法直接从非贪婪解码过程中生成的对数概率中推导出不确定性指标。我们首先推导出一个熵产率(EPR),提供基础性能,随后通过监督学习进行增强。我们的学习模型利用单个生成序列中可访问的顶部令牌的熵贡献,而无需每个查询多次运行。在多样化的QA数据集和多个LLM上评估,该估计器在状态-of-the-art方法上显著提高了令牌级幻觉检测性能。关键的是,仅使用通常可用的小量对数概率集(例如每个令牌的前10个)就实现了高性能,证明了其实际效率和适用于API受限部署的适用性。这项工作提供了一种轻量级技术,以增强LLM响应的可信度,在单次生成过程中,针对QA和检索增强生成(RAG)系统,在令牌级别进行改进。我们的实验验证了该方法在公共数据集以及财务框架分析年度公司报告中的性能。

英文摘要:

Hallucinations in Large Language Model (LLM) outputs for Question Answering (QA) tasks can critically undermine their real-world reliability. This paper introduces a methodology for robust, one-shot hallucination detection, specifically designed for scenarios with limited data access, such as interacting with black-box LLM APIs that typically expose only a few top candidate log-probabilities per token. Our approach derives uncertainty indicators directly from these readily available log-probabilities generated during non-greedy decoding. We first derive an Entropy Production Rate (EPR) that offers baseline performance, later augmented with supervised learning. Our learned model leverages the entropic contributions of the accessible top-ranked tokens within a single generated sequence, without multiple re-runs per query. Evaluated across diverse QA datasets and multiple LLMs, this estimator significantly improves token-level hallucination detection over state-of-the-art methods. Crucially, high performance is demonstrated using only the typically small set of available log-probabilities (e.g., top-10 per token), confirming its practical efficiency and suitability for API-constrained deployments. This work provides a lightweight technique to enhance the trustworthiness of LLM responses, at the token level, after a single generation pass, for QA and Retrieval-Augmented Generation (RAG) systems. Our experiments confirmed the performance of our method against existing approaches on public dataset as well as for a financial framework analyzing annual company reports.

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

↑