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

MuDAF:通过对注意力头进行对比学习实现长上下文多文档注意力聚焦

MuDAF: Long-Context Multi-Document Attention Focusing through Contrastive Learning on Attention Heads

Microsoft Corporation(微软公司)

Weihao Liu, Ning Wu, Shiping Yang, Wenbiao Ding, Shining Liang, Ming Gong, Dongmei Zhang

AI总结:

针对LLM长上下文中的注意力分散问题,本文提出MuDAF,通过对比学习在注意力头层面优化注意力分布,显著提升多文档长上下文问答性能。

摘要:

大型语言模型(LLM)经常因输入中的无关信息而表现出注意力分散,这严重损害了其长上下文能力。受近期关于检索头在长上下文事实性中有效性研究的启发,我们旨在通过直接改进此类检索头来解决这一注意力分散问题。我们提出了多文档注意力聚焦(Multi-Document Attention Focusing,MuDAF),这是一种通过对比学习在注意力头层面显式优化注意力分布的新颖方法。实验结果表明,MuDAF能够显著提升LLM的长上下文问答性能,尤其是在多文档问答中。对检索分数和注意力可视化的广泛评估表明,MuDAF在使注意力头更聚焦于相关信息并减少注意力干扰方面具有巨大潜力。

英文摘要:

Large Language Models (LLMs) frequently show distracted attention due to irrelevant information in the input, which severely impairs their long-context capabilities. Inspired by recent studies on the effectiveness of retrieval heads in long-context factutality, we aim at addressing this distraction issue through improving such retrieval heads directly. We propose Multi-Document Attention Focusing (MuDAF), a novel method that explicitly optimizes the attention distribution at the head level through contrastive learning. According to the experimental results, MuDAF can significantly improve the long-context question answering performance of LLMs, especially in multi-document question answering. Extensive evaluations on retrieval scores and attention visualizations show that MuDAF possesses great potential in making attention heads more focused on relevant information and reducing attention distractions.

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

↑