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

基于神经探针的大型语言模型幻觉检测

Neural Probe-Based Hallucination Detection for Large Language Models

Faculty of Computing, Harbin Institute of Technology(计算机学院,哈尔滨工业大学)

Shize Liang, Hongzhi Wang

AI总结:

本文提出基于神经网络的token级幻觉检测框架,通过冻结语言模型参数并使用MLP探针进行非线性建模,结合多目标损失函数和贝叶斯优化,实现对LLMs幻觉内容的高效检测。

摘要:

大型语言模型(LLMs)在文本生成和知识问答任务中表现出色,但它们容易生成幻觉内容,严重限制了其在高风险领域的应用。当前基于不确定性估计和外部知识检索的幻觉检测方法存在局限性,即在高置信度水平下仍会产生错误内容,并且依赖检索效率和知识覆盖范围。相比之下,利用模型隐藏层状态的探针方法具有实时性和轻量级优势。然而,传统线性探针难以捕捉深度语义空间中的非线性结构。为克服这些限制,我们提出了一种基于神经网络的token级幻觉检测框架。通过冻结语言模型参数,我们使用轻量级MLP探针对高级隐藏状态进行非线性建模。设计了一个多目标联合损失函数以增强检测稳定性和语义歧义性。此外,我们建立了层位置-探针性能响应模型,利用贝叶斯优化自动搜索最优探针插入层并实现更优的训练结果。实验结果表明,在低误报条件下,MLP探针在准确性、召回率和检测能力方面显著优于现有最先进方法。

英文摘要:

Large language models(LLMs) excel at text generation and knowledge question-answering tasks, but they are prone to generating hallucinated content, severely limiting their application in high-risk domains. Current hallucination detection methods based on uncertainty estimation and external knowledge retrieval suffer from the limitation that they still produce erroneous content at high confidence levels and rely heavily on retrieval efficiency and knowledge coverage. In contrast, probe methods that leverage the model's hidden-layer states offer real-time and lightweight advantages. However, traditional linear probes struggle to capture nonlinear structures in deep semantic spaces.To overcome these limitations, we propose a neural network-based framework for token-level hallucination detection. By freezing language model parameters, we employ lightweight MLP probes to perform nonlinear modeling of high-level hidden states. A multi-objective joint loss function is designed to enhance detection stability and semantic disambiguity. Additionally, we establish a layer position-probe performance response model, using Bayesian optimization to automatically search for optimal probe insertion layers and achieve superior training results.Experimental results on LongFact, HealthBench, and TriviaQA demonstrate that MLP probes significantly outperform state-of-the-art methods in accuracy, recall, and detection capability under low false-positive conditions.

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

↑