Skip to main content
QUICK REVIEW

[论文解读] Knowledge Graph Prompting for Multi-Document Question Answering

Yu Wang, Nedim Lipka|arXiv (Cornell University)|Aug 22, 2023
Topic Modeling被引用 13
一句话总结

本文提出面向多文档问答的知识图提示(KGP),在段落与文档结构上构建知识图谱,并使用基于大语言模型的遍历代理来检索跨文档回答问题所需的上下文证据。

ABSTRACT

The `pre-train, prompt, predict' paradigm of large language models (LLMs) has achieved remarkable success in open-domain question answering (OD-QA). However, few works explore this paradigm in the scenario of multi-document question answering (MD-QA), a task demanding a thorough understanding of the logical associations among the contents and structures of different documents. To fill this crucial gap, we propose a Knowledge Graph Prompting (KGP) method to formulate the right context in prompting LLMs for MD-QA, which consists of a graph construction module and a graph traversal module. For graph construction, we create a knowledge graph (KG) over multiple documents with nodes symbolizing passages or document structures (e.g., pages/tables), and edges denoting the semantic/lexical similarity between passages or intra-document structural relations. For graph traversal, we design an LLM-based graph traversal agent that navigates across nodes and gathers supporting passages assisting LLMs in MD-QA. The constructed graph serves as the global ruler that regulates the transitional space among passages and reduces retrieval latency. Concurrently, the graph traversal agent acts as a local navigator that gathers pertinent context to progressively approach the question and guarantee retrieval quality. Extensive experiments underscore the efficacy of KGP for MD-QA, signifying the potential of leveraging graphs in enhancing the prompt design for LLMs. Our code: https://github.com/YuWVandy/KG-LLM-MDQA.

研究动机与目标

  • 通过要求跨文档推理和对结构化内容的理解,将MD-QA的动机提升到超越开放域问答。
  • 提出一种通用适用的KG构建方法,编码词汇/语义相似性及文档结构关系。
  • 开发一个由LLM引导的图遍历代理,能自适应地检索相关上下文。
  • 证明基于图的提示在多个数据集上提升MD-QA表现和检索效率。

提出的方法

  • 构建知识图谱,其中节点是段落或文档结构(页面/表格),边缘编码词汇/语义相似性或结构关系。
  • 为图引入结构节点(页面、表格),并对表格使用Markdown内容以帮助LLM理解。
  • 训练或微调一个基于LLM的图遍历代理,在给定已访问的段落时,选择下一个最佳相邻节点以接近答案。
  • 采用指令微调以提升遍历代理的推理能力,从而减轻幻觉。
  • 探索多种KG构建策略(TF-IDF、KNN-MDR、KNN-ST、TAGME),并比较它们的有效性与权衡。
  • 将遍历过程与使用检索得到的段落来回答MD-QA问题的提示设计相结合。

实验结果

研究问题

  • RQ1相较于基线方法,基于文档的知识图如何提升MD-QA的提示与检索?
  • RQ2哪些KG构建策略能够最好地捕捉MD-QA所需的跨文档推理?
  • RQ3LLM引导的KG遍历代理是否能有效导航图以检索回答问题所需的相关上下文?
  • RQ4引入文档结构(页面/表格)如何影响MD-QA的性能?
  • RQ5随着KG密度和遍历策略的变化,性能与效率的权衡有哪些?

主要发现

方法HotpotQA 准确率HotpotQA EMHotpotQA F1IIRC 准确率IIRC EMIIRC F12WikiMQA 准确率2WikiMQA EM2WikiMQA F1MuSiQue 准确率MuSiQue EMMuSiQue F1PDFTriage Struct-EM带PDFTriage 准确率带PDFTriage EM带PDFTriage F1
None41.8019.0030.5019.508.6013.1744.4018.6025.0730.404.6010.580.008.539.00
KNN71.5740.7357.9743.8225.1537.2452.4031.2042.1344.7018.8630.047.007.33
TF-IDF76.6445.9764.6447.4727.2240.8058.4034.6044.5044.4021.5932.504.855.00
BM2571.9541.4659.7341.9323.4835.5555.8030.8040.5544.4721.1131.156.927.25
DPR73.4343.6162.1148.1126.8941.8562.4035.6051.1044.2720.3231.645.315.50
MDR75.3045.5565.1650.8427.5243.4763.0036.0052.4448.3923.4937.033.073.08
IRCoT74.3645.2964.1249.7827.7341.6561.8137.7550.1745.1422.4634.214.004.08
KGP-T576.5346.5166.7748.2826.9441.5463.5039.8053.5050.9227.9041.1967.002.692.75
Golden82.1950.2071.0662.6835.6454.7672.6040.2059.6957.0030.6047.75100.001.001.00
  • KGP-T5在MD-QA基准测试中达到最高表现,通常优于基线,唯独在Golden context时例外。
  • 基于MDR的遍历和经过领域特定预训练的KG比通用嵌入方法(DPR)产生更强的结果。
  • 包含结构节点的KG能够处理结构性问题(如Page 1与Page 2的差异),在Struct-EM上实现显著提升(表1中报道67%)。
  • GPT/LMM-based traversal agents significantly outperform random traversal and can surpass several baseline retrievers in accuracy and F1 across HotpotQA, 2WikiMQA, MuSiQue, and IIRC.
  • Trade-offs exist between KG density and retrieval latency: higher density improves EM/F1 but increases latency; a well-tuned branching factor is crucial for maximizing performance under a fixed context budget.

更好的研究,从现在开始

从论文设计到论文写作,大幅缩短您的研究时间。

无需绑定信用卡

本解读由 AI 生成,并经人工编辑审核。