HOLMES: Hyper-Relational Knowledge Graphs for Multi-hop Question Answering using LLMs

Pranoy Panda, Ankush Agarwal, Chaitanya Devaguptapu, Manohar Kaul, A. P. Prathosh

Abstract

Given unstructured text, Large Language Models (LLMs) are adept at answering simple (single-hop) questions. However, as the complexity of the questions increase, the performance of LLMs degrade. We believe this is due to the overhead associated with understanding the complex question followed by filtering and aggregating unstructured information in the raw text. Recent methods try to reduce this burden by integrating structured knowledge triples into the raw text, aiming to provide a structured overview that simplifies information processing. However, this simplistic approach is query-agnostic and the extracted facts are ambiguous as they lack context. To address these drawbacks and to enable LLMs to answer complex (multi-hop) questions with ease, we propose to use a knowledge graph (KG) that is context-aware and is distilled to contain query-relevant information. The use of our compressed distilled KG as input to the LLM results in our method utilizing up to 67% fewer tokens to represent the query relevant information present in the supporting documents, compared to the state-of-the-art (SoTA) method. Our experiments show consistent improvements over the SoTA across several metrics (EM, F1, BERTScore, and Human Eval) on two popular benchmark datasets (HotpotQA and MuSiQue).

Introduction

While Large Language Models (LLMs) excel at "single-hop" questions (e.g., "When was Andrew Wood born?"), they often struggle with Multi-Hop Question Answering (MHQA). These complex tasks require connecting disparate pieces of information across multiple documents—for example, identifying a band member, their date of death, and their previous musical affiliations to answer a single query.

The authors of HOLMES identify two primary hurdles in current MHQA approaches:

  1. Noise and Overhead: Feeding entire documents into an LLM introduces "distractor" information that degrades performance and increases computational costs.
  2. Context Loss in Standard KGs: Existing methods that convert text into Knowledge Graph (KG) triples—like (Apple, prices rose, 10%)—often lose the context needed to disambiguate entities (e.g., distinguishing between a technology company and a fruit).

To address these challenges, we propose HOLMES (Hyper-Relational Knowledge Graphs for Multi-hop Question Answering), a framework that distills unstructured text into a query-focused, context-aware knowledge graph.

Methodology

HOLMES introduces a multi-step pipeline to transform raw text into a curated, structured input for a "Reader" LLM:

1. Query-Dependent Knowledge Discovery

The system constructs a bipartite "entity-document" graph and performs a level-order traversal starting from entities found in the question. This ensures the extraction process is focused on facts relevant to the specific query.

2. Hyper-Relational Triples

To solve the problem of ambiguity, HOLMES creates "hyper-triples" by appending the source document title as an attribute to each triple. This ensures the LLM knows exactly where a fact originated and what it refers to, preserving vital context.

3. Knowledge Schema Construction and Pruning

HOLMES generates a query-aligned schema—a blueprint of the types of relationships needed to answer the specific question. By using an auxiliary schema built from thousands of in-domain questions, the system bridges inferential gaps. The graph is then pruned using embedding similarity to retain only the top $p$ most relevant hyper-triples.

4. Verbalization and Reading

The pruned graph is converted back into natural language sentences and fed to a Reader LLM (such as GPT-4). If the model identifies missing information, it can trigger a "Complementary Fact Retrieval" step to look up specific entities, enhancing its reasoning capabilities.

Experimental Results

The researchers evaluated HOLMES on two primary multi-hop benchmarks: HotpotQA (2-hop reasoning) and MuSiQue (2 to 4-hop questions). HOLMES was tested against state-of-the-art (SoTA) baselines like StructQA using GPT-3.5, GPT-4, and Gemini Pro.

  • Accuracy Boost: On HotpotQA, HOLMES improved Exact Match (EM) scores by 18.7% for GPT-3.5 and 20% for GPT-4 over previous SoTA methods.
  • Token Efficiency: HOLMES utilized up to 67% fewer tokens than StructQA to represent the same query-relevant information, proving that a distilled graph is more efficient than raw text.
  • Robustness: In hop-wise testing on MuSiQue, HOLMES maintained its performance lead as reasoning complexity increased from 2 to 4 hops, whereas baselines showed sharper degradation.

Conclusion

HOLMES demonstrates that providing LLMs with a small, highly relevant set of structured facts is more effective than providing a massive context window of raw text. By utilizing hyper-relational attributes to maintain context and schema-guided pruning to reduce noise, HOLMES achieves new state-of-the-art results in multi-hop reasoning. Future work will focus on improving the extraction phase to ensure higher graph coverage and exploring more complex hyper-attributes beyond document titles.

Summary updated

BibTeX
@inproceedings{panda2024holmes,
  author = {Pranoy Panda and Ankush Agarwal and Chaitanya Devaguptapu and Manohar Kaul and A. P. Prathosh},
  title = {{HOLMES: Hyper-Relational Knowledge Graphs for Multi-hop Question Answering using LLMs}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2024},
  url = {https://openreview.net/forum?id=cShTrmrO3S},
}
Figure