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

面向大语言模型零样本幻觉检测的注意力引导自反思方法

Attention-guided Self-reflection for Zero-shot Hallucination Detection in Large Language Models

New Laboratory of Pattern Recognition (NLPR), State Key Laboratory of Multimodal Artificial Intelligence Systems (MAIS), Institute of Automation, Chinese Academy of Sciences (CASIA)(模式识别新实验室、多模态人工智能系统国家重点实验室、自动化研究所、中国科学院)

Qiang Liu, Xinlong Chen, Yue Ding, Bowen Song, Weiqiang Wang, Shu Wu, Liang Wang

AI总结:

针对大语言模型的幻觉问题,提出注意力引导自反思(AGSER)零样本检测方法,通过拆分查询计算一致性差值估计幻觉,仅需3次前向传播,在4种主流LLM、3个基准上的检测效果显著优于现有方法。

摘要:

幻觉问题已成为大语言模型(Large Language Models, LLMs)有效落地应用的重大阻碍。本文提出一种名为Attention-Guided SElf-Reflection(AGSER,注意力引导自反思)的新型零样本幻觉检测方法。AGSER利用注意力贡献度将输入查询划分为注意力查询和非注意力查询两类,随后将两类查询分别输入LLM处理,计算生成回复与原始答案之间的一致性得分,以两个一致性得分的差值作为幻觉估计指标。除幻觉检测效果优异外,AGSER还显著降低了计算开销,仅需3次LLM前向传播、使用两组token即可完成检测。我们在3个不同的幻觉基准数据集上,针对4种主流LLM开展了大量实验,结果表明该方法在零样本幻觉检测任务上的表现显著优于现有方法。

英文摘要:

Hallucination has emerged as a significant barrier to the effective application of Large Language Models (LLMs). In this work, we introduce a novel Attention-Guided SElf-Reflection (AGSER) approach for zero-shot hallucination detection in LLMs. The AGSER method utilizes attention contributions to categorize the input query into attentive and non-attentive queries. Each query is then processed separately through the LLMs, allowing us to compute consistency scores between the generated responses and the original answer. The difference between the two consistency scores serves as a hallucination estimator. In addition to its efficacy in detecting hallucinations, AGSER notably reduces computational overhead, requiring only three passes through the LLM and utilizing two sets of tokens. We have conducted extensive experiments with four widely-used LLMs across three different hallucination benchmarks, demonstrating that our approach significantly outperforms existing methods in zero-shot hallucination detection.

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

↑