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

DSAS:一种用于多文档问答中注意力优化的通用即插即用框架

DSAS: A Universal Plug-and-Play Framework for Attention Optimization in Multi-Document Question Answering

Institute of Intelligent Computing, University of Electronic Science and Technology of China(电子科技大学智能计算研究院);School of Information and Software Engineering, University of Electronic Science and Technology of China(电子科技大学信息与软件工程学院)

Jiakai Li, Rongzheng Wang, Yizhuo Ma, Shuang Liang, Guangchun Luo, Ke Qin

AI总结:

DSAS提出双阶段自适应锐化框架,通过上下文门控加权和互惠注意力抑制模块,无需修改架构或训练参数,即插即用地解决多文档问答中的长距离依赖和中间丢失问题,在四个基准上平均F1提升4.2%。

摘要:

尽管大型语言模型(LLMs)在各个领域展现出相当大的潜力,但在处理多文档问答(Multi-doc QA)任务时存在显著局限性。第一个挑战是长距离依赖建模,LLMs难以在长文本中聚焦关键信息,这削弱了重要的语义联系。其次,大多数LLMs存在“中间丢失”(lost-in-the-middle)问题,即难以处理长输入中间部分的信息。当前的解决方案要么截断全局依赖,要么需要昂贵的微调,最终缺乏一种通用且简单的解决方案来应对这些挑战。为解决这些局限,我们提出了双阶段自适应锐化(DSAS)框架,包含两个模块:(i)上下文门控加权(CGW)模块通过逐层注意力跟踪和位置感知加权来评估段落相关性,从而缓解“中间丢失”问题。(ii)互惠注意力抑制(RAS)模块通过抑制关键文本与不相关文本之间的信息交换来增强对关键段落的关注,从而缓解长距离依赖建模的局限性。值得注意的是,DSAS作为一种即插即用的解决方案,无需修改架构或增加额外训练参数。在四个基准上的大量实验证明了DSAS在主流LLMs(Llama、Qwen、Mistral和Deepseek)上的有效性,在Llama-3.1-8B-Instruct和Qwen2.5-14B-Instruct上的多文档问答任务中平均F1分数提升了4.2%。消融研究证实了CGW和RAS模块的重要贡献。此外,附录中的详细讨论进一步验证了DSAS的鲁棒性和可扩展性。

英文摘要:

While large language models (LLMs) show considerable promise across various fields, they have notable limitations in handling multi-document question answering (Multi-doc QA) tasks. The first challenge is long-range dependency modeling, where LLMs struggle to focus on key information in long texts, which weakens important semantic connections. Second, most LLMs suffer from the ''lost-in-the-middle'' issue, where they have difficulty processing information in the middle of long inputs. Current solutions either truncate global dependencies or demand costly finetuning, ultimately lacking a universal and simple solution for these challenges. To resolve these limitations, we propose Dual-Stage Adaptive Sharpening (DSAS) containing two modules. (i) The Contextual Gate Weighting (CGW) module alleviates ''lost-in-the-middle'' by assessing paragraph relevance through layer-wise attention tracking and position-aware weighting. (ii) The Reciprocal Attention Suppression (RAS) module enhances focus on critical paragraphs by suppressing information exchange between key and irrelevant texts, thus mitigating the limitations in long-range dependency modeling. Notably, DSAS functions as a plug-and-play solution requiring no architectural modifications or extra training parameters. Extensive experiments on four benchmarks demonstrate DSAS's efficacy across mainstream LLMs (Llama, Qwen, Mistral, and Deepseek), with an average F1-score improvement of 4.2% in Multi-doc QA tasks on Llama-3.1-8B-Instruct and Qwen2.5-14B-Instruct. Ablation studies confirm the essential contributions of both the CGW and RAS modules. In addition, detailed discussions in the Appendix further validate the robustness and scalability of DSAS.

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

↑