CrAM:大语言模型中基于可信度的注意力修改以对抗RAG中的错误信息
CrAM: Credibility-Aware Attention Modification in LLMs for Combating Misinformation in RAG
AI总结:
针对RAG中外部文档错误信息误导LLM生成的问题,提出即插即用的CrAM方法,通过识别并调整注意力头权重来降低低可信度文档影响,在多个模型和数据集上性能提升超20%。
摘要:
检索增强生成(RAG)通过引用外部文档可以缓解大语言模型(LLMs)的幻觉问题。然而,外部文档中的错误信息可能会误导LLMs的生成。为解决这一问题,我们探索了“基于可信度的RAG”任务,其中LLMs根据文档的可信度分数自动调整检索文档的影响,以对抗错误信息。为此,我们提出了一种即插即用的方法,名为基于可信度的注意力修改(CrAM)。CrAM识别LLMs中有影响力的注意力头,并根据文档的可信度调整其注意力权重,从而减少低可信度文档的影响。在自然问题(Natural Questions)和TriviaQA上使用Llama2-13B、Llama3-8B和Qwen1.5-7B进行的实验表明,CrAM将LLMs在错误信息污染下的RAG性能提升了超过20%,甚至超越了监督微调方法。
英文摘要:
Retrieval-Augmented Generation (RAG) can alleviate hallucinations of Large Language Models (LLMs) by referencing external documents. However, the misinformation in external documents may mislead LLMs' generation. To address this issue, we explore the task of "credibility-aware RAG", in which LLMs automatically adjust the influence of retrieved documents based on their credibility scores to counteract misinformation. To this end, we introduce a plug-and-play method named $\textbf{Cr}$edibility-aware $\textbf{A}$ttention $\textbf{M}$odification (CrAM). CrAM identifies influential attention heads in LLMs and adjusts their attention weights based on the credibility of the documents, thereby reducing the impact of low-credibility documents. Experiments on Natual Questions and TriviaQA using Llama2-13B, Llama3-8B, and Qwen1.5-7B show that CrAM improves the RAG performance of LLMs against misinformation pollution by over 20%, even surpassing supervised fine-tuning methods.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。