arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2504.04335cs.CLcs.AIcs.LG
收藏

使用多视角注意力特征进行幻觉片段检测

Hallucinated Span Detection with Multi-View Attention Features

Grad. Sch. of Information Science and Tech.(信息科学与技术研究生院);The University of Osaka(大阪大学);School of Computing(计算学部);Institute of Science(科学研究所);LY Corporation(LY公司)

Yuya Ogasa, Yuki Arase

AI总结:

本研究提出一种基于多视角注意力特征的Transformer分类器,通过序列标注识别大语言模型输出中的幻觉片段,在长上下文任务上优于强基线。

摘要:

本研究探讨大语言模型输出中的幻觉片段检测问题。尽管其具有实际重要性,但相比输出级幻觉检测,它受到的关注较少。先前工作表明,幻觉发生时注意力常呈现不规则模式。受此启发,我们从注意力矩阵中提取特征,这些特征提供互补视角,以捕捉生成过程中以下情况:(a)某些词元是否具有影响力或被忽略,(b)注意力是否偏向特定子集,以及(c)生成词元时是否参考了狭窄或广泛的上下文。这些特征被输入到基于Transformer的分类器中,进行序列标注以识别幻觉片段。实验结果表明,在输入上下文较长的幻觉片段检测任务(如data-to-text和summarisation)上,所提方法优于强基线。

英文摘要:

This study addresses the problem of hallucinated span detection in the outputs of large language models. It has received less attention than output-level hallucination detection despite its practical importance. Prior work has shown that attentions often exhibit irregular patterns when hallucinations occur. Motivated by these findings, we extract features from the attention matrix that provide complementary views capturing (a) whether certain tokens are influential or ignored, (b) whether attention is biased toward specific subsets, and (c) whether a token is generated referring to a narrow or broad context, in the generation. These features are input to a Transformer-based classifier to conduct sequential labelling to identify hallucinated spans. Experimental results indicate that the proposed method outperforms strong baselines on hallucinated span detection with longer input contexts, such as data-to-text and summarisation tasks.

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

↑