arXiv:2604.06393cs.CL2026-04ACL被引 3

用局部注意力替换浅层均匀注意力,有效降低大模型幻觉。

ART: Attention Replacement Technique to Improve Factuality in LLMs

  • 浅层模型用均匀注意力易产生幻觉,改用局部注意力可聚焦关键信息。
  • 无需微调或额外数据,多模型验证幻觉率显著下降。
  • 适合关注生成准确性、想提升模型可信度的研究者和开发者。

大型语言模型在问答等任务中仍存在严重幻觉问题,常生成看似合理却错误的信息。本文分析了模型各层与注意力头的注意力分布,发现浅层普遍采用均匀注意力模式,导致模型无法聚焦关键信息。为此提出无需训练的注意力替换技术(ART),将浅层的均匀注意力替换为局部注意力,引导模型关注相关上下文,从而减少幻觉。大量实验表明,ART在多种模型架构上均能显著降低幻觉,且无需微调或额外数据,具有广泛适用性。

原文摘要 · Abstract (English)

Hallucination in large language models (LLMs) continues to be a significant issue, particularly in tasks like question answering, where models often generate plausible yet incorrect or irrelevant information. Although various methods have been proposed to mitigate hallucinations, the relationship between attention patterns and hallucinations has not been fully explored. In this paper, we analyze the distribution of attention scores across each layer and attention head of LLMs, revealing a common and intriguing phenomenon: shallow layers of LLMs primarily rely on uniform attention patterns, where the model distributes its attention evenly across the entire sequence. This uniform attention pattern can lead to hallucinations, as the model fails to focus on the most relevant information. To mitigate this issue, we propose a training-free method called Attention Replacement Technique (ART), which replaces these uniform attention patterns in the shallow layers with local attention patterns. This change directs the model to focus more on the relevant contexts, thus reducing hallucinations. Through extensive experiments, ART demonstrates significant reductions in hallucinations across multiple LLM architectures, proving its effectiveness and generalizability without requiring fine-tuning or additional training data.

大模型幻觉抑制注意力机制

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。