arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2410.04790cs.CL
收藏

PECAN:面向长文档问答的、采用注意力引导分层加权图的 LLM 引导动态进度控制

PECAN: LLM-Guided Dynamic Progress Control with Attention-Guided Hierarchical Weighted Graph for Long-Document QA

Department of Computer Science, University of Warwick(沃里克大学计算机科学系);Department of Informatics, King’s College London(伦敦国王学院信息学系);The Alan Turing Institute(艾伦·图灵研究所)

Xinyu Wang, Yanzheng Xiang, Lin Gui, Yulan He

AI总结:

本文提出 PECAN,利用 LLM 动态控制检索进度,并基于注意力权重构建分层加权图,在四个长文档问答数据集上以接近 RAG 的复杂度达到 LLM 级性能。

摘要:

长文档问答因大规模文本和长距离依赖而面临挑战。大型语言模型(LLM)的最新进展使整篇文档能够在一次处理中完成。然而,其计算成本显著偏高。检索增强生成(RAG)方法将文本切分为较小的块,但往往产生较差的结果,并可能丢失全局上下文。近期通过迭代摘要将 LLM 集成到 RAG 中的方法,要么未能充分利用 LLM 能力,要么仍会产生高昂计算成本。本文将 LLM 的高准确性与 RAG 的高效性相结合,提出了基于注意力分层加权图的 LLM 引导动态进度控制(PECAN)。该方法引入两项关键改进:(1)LLM 引导动态进度控制:利用 LLM 动态控制检索过程,根据不同查询调整检索信息的数量,从而在效果与效率之间取得更好平衡。(2)注意力引导检索:提出一种新颖检索方法,构建由 LLM 注意力权重推导边的分层图。实验结果表明,在两个单文档和两个多文档问答数据集上,PECAN 达到 LLM 级性能,同时保持与 RAG 方法相当的计算复杂度。

英文摘要:

Long-document QA presents challenges with large-scale text and long-distance dependencies. Recent advances in Large Language Models (LLMs) enable entire documents to be processed in a single pass. However, their computational cost is significantly high. Retrieval-Augmented Generation (RAG) methods split text into smaller chunks, but they often yield inferior results and may lose global context. Recent approaches that integrate LLMs into RAG via iterative summarization either underutilize LLM capabilities or still incur high computational costs. In this paper, we combine the high accuracy of LLMs with the efficiency of RAG and propose LLM-Guided Dynamic Progress Control with Attention-Based Hierarchical Weighted Graph (PECAN). Our method introduces two key improvements: (1) LLM-Guided Dynamic Progress Control: We leverage LLMs to dynamically control the retrieval process, adjusting the amount of retrieved information based on different queries to achieve a better balance of effectiveness and efficiency. (2) Attention-Guided Retrieval: We propose a novel retrieval method that constructs a hierarchical graph where edges are derived by LLM attention weights. Experimental results demonstrate that PECAN achieves LLM-level performance while maintaining computational complexity comparable to that of RAG methods on two single-document and two multi-document QA datasets.

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

↑