Skip to main content
QUICK REVIEW

[Paper Review] Knowledge Graph Prompting for Multi-Document Question Answering

Yu Wang, Nedim Lipka|arXiv (Cornell University)|Aug 22, 2023
Topic ModelingComputer Science13 citations
TL;DR

The paper introduces Knowledge Graph Prompting (KGP) for multi-document QA, constructing a knowledge graph over passages and document structures and using an LLM-based traversal agent to retrieve contextual evidence for answering questions across documents.

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.

Motivation & Objective

  • Motivate MD-QA beyond open-domain QA by requiring cross-document reasoning and structured content understanding.
  • Propose a generally-applicableKG construction method that encodes lexical/semantic similarity and document structure relations.
  • Develop an LLM-guided graph traversal agent to adaptively retrieve relevant contexts.
  • Demonstrate that graph-based prompting improves MD-QA performance and retrieval efficiency across multiple datasets.

Proposed method

  • Construct knowledge graphs where nodes are passages or document structures (pages/tables) and edges encode lexical/semantic similarity or structural relations.
  • Augment graphs with structural nodes (pages, tables) and use markdown content for tables to aid LLM understanding.
  • Train or fine-tune an LLM-based graph traversal agent that, given visited passages, selects the next best neighbor to visit to approach the answer.
  • Employ instruction-finetuning to enhance the reasoning capability of the traversal agent to mitigate hallucinations.
  • Explore multiple KG construction strategies (TF-IDF, KNN-MDR, KNN-ST, TAGME) and compare their effectiveness and trade-offs.
  • Integrate the traversal process with a prompt design that uses the retrieved passages to answer MD-QA questions.

Experimental results

Research questions

  • RQ1How can a knowledge graph over documents improve MD-QA prompting and retrieval compared to baseline methods?
  • RQ2What KG construction strategies best capture the necessary cross-document reasoning for MD-QA?
  • RQ3Can an LLM-guided KG traversal agent effectively navigate the graph to retrieve relevant context for answering questions?
  • RQ4How does incorporating document structures (pages/tables) influence MD-QA performance?
  • RQ5What are the performance and efficiency trade-offs as KG density and traversal strategies vary?

Key findings

  • KGP-T5 achieves top performance on MD-QA benchmarks, often outperforming baselines except for the Golden context.
  • MDR-based traversals and KGs tuned with domain-specific pretraining yield stronger results than generic embedding-based methods (DPR).
  • KGs incorporating structural nodes enable handling structural questions (e.g., differences between Page 1 and Page 2) with substantial Struct-EM gains (67% reported in Table 1).
  • 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.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.