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

HaluNet:从LLM问答内部信号学习幻觉风险

HaluNet: Learning Hallucination Risk from Internal Signals in LLM Question Answering

Institute of Information Engineering, Chinese Academy of Sciences(中国科学院信息工程研究所);School of Cyber Security, University of Chinese Academy of Sciences(中国科学院大学网络安全学院);China Industrial Control Systems Cyber Emergency Response Team(中国工业控制系统网络应急响应团队)

Chaodong Tong, Qi Zhang, Zhuojun Jiang, Lei Jiang, Yanbing Liu

AI总结:

提出HaluNet,利用单次生成的内部信号(token似然、预测熵和隐藏状态)估计答案级幻觉风险,通过LLM-as-a-Judge弱监督训练,在多个QA数据集上显著提升风险排序和错误检测率。

摘要:

大型语言模型(LLM)在问答(QA)任务中表现出色,但可能生成流畅但缺乏证据支持的答案。现有的幻觉检测器通常依赖外部验证、重复采样或测试时评判调用,这对于实时问答来说成本高昂。我们提出 extbf{HaluNet},一种轻量级幻觉风险估计器,利用单次模型生成的内部信号。HaluNet联合建模token似然、预测熵和隐藏状态信息,从而允许概率、分布和语义证据共同构成答案级风险评分。它使用LLM-as-a-Judge标签作为可扩展的弱监督进行训练,并通过独立的人工和多评判评估进行验证。在SQuAD、TriviaQA和Natural Questions上的实验表明,HaluNet在领域内和跨领域设置中均改进了答案级风险排序。在300个样本的人工评估中,HaluNet达到了0.874的AUROC和0.869的AUPRC;其前20%高风险答案包含96.5%的错误,相比基础错误率实现了2.06倍的提升。

英文摘要:

Large language models (LLMs) achieve strong question answering (QA) performance but can produce fluent answers unsupported by available evidence. Existing hallucination detectors often rely on external verification, repeated sampling, or test-time judge calls, which can be costly for real-time QA. We propose \textbf{HaluNet}, a lightweight hallucination risk estimator that uses internal signals from one model generation. HaluNet jointly models token likelihood, predictive entropy, and hidden-state information, allowing probabilistic, distributional, and semantic evidence to inform an answer-level risk score. It is trained with LLM-as-a-Judge labels as scalable weak supervision and evaluated with independent human and multi-judge assessments. Experiments on SQuAD, TriviaQA, and Natural Questions show that HaluNet improves answer-level risk ranking across in-domain and out-of-domain settings. On a 300-example human evaluation, HaluNet achieves 0.874 AUROC and 0.869 AUPRC; its top 20\% highest-risk answers contain 96.5\% errors, yielding a 2.06$\times$ lift over the base error rate.

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

↑