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

ICR探针:追踪隐藏状态动态以实现大语言模型中可靠的幻觉检测

ICR Probe: Tracking Hidden State Dynamics for Reliable Hallucination Detection in LLMs

Wangxuan Institute of Computer Technology, Peking University(北京大学王璇计算机技术研究所);School of Software and Microelectronics, Peking University(北京大学软件与微电子学院)

Zhenliang Zhang, Xinyu Hu, Huixuan Zhang, Junzhe Zhang, Xiaojun Wan

AI总结:

本文针对大语言模型幻觉检测中忽略隐藏状态跨层动态演化的问题,提出ICR分数量化模块对残差流更新的贡献,并基于此设计ICR探针,以更少参数实现更优检测性能。

摘要:

大语言模型(LLMs)在各种自然语言处理任务中表现出色,但其产生幻觉的倾向削弱了其可靠性。现有利用隐藏状态的幻觉检测方法主要关注静态且孤立的表示,忽视了它们跨层的动态演化,从而限制了效果。为解决这一局限,我们将关注点转向隐藏状态更新过程,并提出一种新指标——ICR分数(残差流信息贡献,Information Contribution to Residual Stream),用于量化各模块对隐藏状态更新的贡献。我们通过实验验证了ICR分数在区分幻觉方面有效且可靠。基于这些发现,我们提出了一种幻觉检测方法——ICR探针(ICR Probe),该方法捕捉隐藏状态的跨层演化。实验结果表明,ICR探针以显著更少的参数实现了优越的性能。此外,消融研究和案例分析为该方法的内在机制提供了更深入的见解,提升了其可解释性。

英文摘要:

Large language models (LLMs) excel at various natural language processing tasks, but their tendency to generate hallucinations undermines their reliability. Existing hallucination detection methods leveraging hidden states predominantly focus on static and isolated representations, overlooking their dynamic evolution across layers, which limits efficacy. To address this limitation, we shift the focus to the hidden state update process and introduce a novel metric, the ICR Score (Information Contribution to Residual Stream), which quantifies the contribution of modules to the hidden states' update. We empirically validate that the ICR Score is effective and reliable in distinguishing hallucinations. Building on these insights, we propose a hallucination detection method, the ICR Probe, which captures the cross-layer evolution of hidden states. Experimental results show that the ICR Probe achieves superior performance with significantly fewer parameters. Furthermore, ablation studies and case analyses offer deeper insights into the underlying mechanism of this method, improving its interpretability.

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

↑