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

低层很重要:通过多层融合对比解码与真实性重聚焦缓解幻觉

Lower Layers Matter: Alleviating Hallucination via Multi-Layer Fusion Contrastive Decoding with Truthfulness Refocused

Sun Yat-Sen University(中山大学);Shenzhen MSU-BIT University(深圳MSU-BIT大学);UNSW, Sydney, NSW 2052, Australia(新南威尔士大学,悉尼,新南威尔士州,2052,澳大利亚);Shenzhen Key Laboratory for High Performance Data Mining, Shenzhen Institutes of Advanced Technology, Chinese Academy of Sciences(深圳高性能数据挖掘关键实验室,深圳先进技术研究院,中国科学院)

Dingwei Chen, Feiteng Fang, Shiwen Ni, Feng Liang, Xiping Hu, Ahmadreza Argha, Hamid Alinejad-Rokny, Min Yang, Chengming Li

AI总结:

本文提出LOL对比解码框架,通过融合低层对比信息并引入真实性重聚焦模块,有效缓解大语言模型幻觉,在多个数据集上优于现有基线。

摘要:

大型语言模型(LLMs)在各种自然语言处理任务中表现出了卓越的性能。然而,它们偶尔会产生不准确且违背事实的输出,这一现象通常被称为“幻觉”。为了解决这一问题,近期研究探索了在原始模型与一个被诱导产生幻觉的业余模型之间进行对比解码,并展现出有前景的结果。尽管如此,由于粗糙的对比和简单的减法操作,这种方法可能扰乱原始LLM的输出分布,从而可能导致错误。在本文中,我们提出了一种新颖的对比解码框架,命名为LOL(LOwer Layer Matters,低层很重要)。与先前仅关注最后一层的方法不同,我们的方法整合来自低层的对比信息,以在对比解码过程中实现多层融合。此外,我们引入了一个真实性重聚焦模块,利用指令引导来进一步提升对比解码中的真实性。在四个公开可用数据集上的大量实验表明,LOL框架显著缓解了幻觉,同时在大多数情况下优于现有基线。为了可复现性,我们将在论文被接收后发布代码和数据。

英文摘要:

Large Language Models (LLMs) have demonstrated exceptional performance across various natural language processing tasks. However, they occasionally generate inaccurate and counterfactual outputs, a phenomenon commonly referred to as "hallucinations''. To tackle this issue, recent studies have explored contrastive decoding between the original model and an amateur model with induced hallucination, showing promising results. Nevertheless, this approach can disrupt the original LLM's output distribution due to coarse contrast and simple subtraction operations, potentially leading to errors. In this paper, we introduce a novel contrastive decoding framework, termed LOL (LOwer Layer Matters). Unlike prior methods that focus solely on the final layer, our approach integrates contrastive information from lower layers to enable multi-layer fusion during contrastive decoding. Additionally, we incorporate a truthfulness refocused module that leverages instruction guidance to further improve truthfulness in contrastive decoding. Extensive experiments on four publicly available datasets demonstrate that the LOL framework significantly mitigates hallucination while outperforming existing baselines in most cases. For reproducibility, we will release our code and data upon acceptance.

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

↑