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

CORTEX:通过比较内部表示在检索增强生成中进行令牌级幻觉检测

CORTEX: Token-Level Hallucination Detection in RAG via Comparative Internal Representations

KDDI Research, Inc.(KDDI研究所)

Kazuaki Furumai, Shuichiro Haruta, Kazunori Matsumoto, Daisuke Kamisaka

AI总结:

提出CORTEX方法,通过比较有无检索文档时LLM的内部表示,实现RAG中令牌级幻觉检测,并利用前序令牌传播和连续性平滑提升性能。

摘要:

在本文中,我们提出了CORTEX,一种用于检索增强生成(RAG)的令牌级幻觉检测方法。在长文本RAG输出中,幻觉通常出现在局部片段而非整个响应中。因此,CORTEX在令牌级别识别无根据的内容,从而实现幻觉的细粒度定位。CORTEX背后的关键直觉是,基于检索文档的令牌应比幻觉令牌受到这些文档的更强影响。为了捕捉这种文档诱导效应,CORTEX比较大型语言模型(LLM)在两种条件下的内部表示:有检索文档和无检索文档。CORTEX不仅依赖每个令牌对检索文档的即时敏感性,还利用文档基础信息通过前序令牌的传播,从而减少那些证据已被吸收到上下文中的令牌的误报。最后,CORTEX应用后处理平滑步骤,模拟幻觉标签在连续片段中持续存在的倾向,减少局部噪声并鼓励片段一致的预测。在两个RAG基准测试和三个LLM上的实验表明,CORTEX显著改善了令牌级幻觉检测,每个组件都持续贡献于性能提升。

英文摘要:

In this paper, we propose CORTEX, a token-level hallucination detection method for Retrieval-Augmented Generation (RAG). In long-form RAG outputs, hallucinations often arise in localized spans rather than throughout an entire response. CORTEX therefore identifies ungrounded content at the token level, enabling fine-grained localization of hallucinations. The key intuition behind CORTEX is that tokens grounded in retrieved documents should be more strongly influenced by those documents than hallucinated tokens. To capture this document-induced effect, CORTEX compares internal representations of a large language model (LLM) under two conditions: with and without the retrieved documents. Instead of relying solely on each token's immediate sensitivity to the retrieved documents, CORTEX also leverages the propagation of document-grounded information through preceding tokens, reducing false positives for tokens whose evidence has already been absorbed into the context. Finally, CORTEX applies post-processing smoothing step that models the tendency of hallucination labels to persist over contiguous spans, reducing local noise and encouraging span-consistent predictions. Experiments on two RAG benchmarks and three LLMs show that CORTEX substantially improves token-level hallucination detection, with each component consistently contributing to performance gains.

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

↑