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
Large Language Models (LLMs) have demonstrated remarkable capabilities in answering "single-hop" questions where the answer is contained within a single passage. However, they frequently struggle with "multi-hop" queries that require connecting disparate pieces of information across multiple documents. For example, answering a question like "For the board meeting with the most divided votes in the last year, what was the agenda and who voted against it?" requires the model to identify the specific meeting, locate its agenda, and then aggregate voting records from potentially different sources.
HOLMES (Hyper-Relational Knowledge Graphs for Multi-hop Question Answering) is a framework designed to bridge this gap. By distilling unstructured text into query-focused, hyper-relational knowledge graphs, HOLMES provides LLMs with a structured, high-signal input that simplifies the reasoning process.
The Challenge of Multi-hop QA
Multi-hop question answering (MHQA) is difficult because it requires an LLM to filter, aggregate, and reason over information spread across multiple sources. Current approaches typically face two main issues:
- Information Overload: Feeding all supporting documents directly to the LLM often leads to the "lost in the middle" phenomenon, where the model misses key details buried in long, noisy prompts.
- Ambiguity in Standard KGs: Extracting simple (subject, relation, object) triples often strips away vital context. For instance, a triple like
{Apple, prices rose, 10%}is ambiguous without knowing if it refers to the fruit market or the technology company.
HOLMES addresses these by ensuring that the extracted knowledge is both context-aware and strictly relevant to the user's query.
Methodology
The HOLMES pipeline transforms unstructured supporting documents into a distilled, natural language representation of a knowledge graph.
1. Hyper-Relational KG Construction
Instead of simple triples, HOLMES extracts "hyper-triples" that include the source document title as an attribute. This grounding allows the model to disambiguate entities that might share names but exist in different contexts.
2. Query-Dependent Discovery and Pruning
The system builds a bipartite graph linking documents and entities. It performs a level-order traversal starting from entities mentioned in the question to find relevant facts across multiple "hops." To prevent overwhelming the reader LLM, HOLMES uses a "Query-Aligned Graph Schema" to prune the KG, retaining only the most relevant hyper-triples.
3. Verbalization and Reasoning
The final, pruned graph is converted into concise natural language sentences and fed to a "Reader" LLM (such as GPT-4 or Gemini Pro). If the LLM identifies a gap in its knowledge during reasoning, it can perform a one-time "Complementary Fact Retrieval" from the original document-entity graph.
Experimental Results
The researchers evaluated HOLMES on two major multi-hop benchmarks: HotpotQA (Wikipedia-based reasoning) and MuSiQue (a dataset designed to minimize reasoning shortcuts).
Key Findings
- Superior Accuracy: HOLMES significantly outperformed the previous state-of-the-art, StructQA. On HotpotQA, HOLMES improved Exact Match (EM) scores by 20% when using GPT-4 as the reader.
- Efficiency Gains: By distilling the input, HOLMES used up to 67% fewer tokens than StructQA and 60% fewer than the original raw text. This reduction in "noise" directly contributed to higher accuracy.
- Self-Awareness: HOLMES achieved higher "Self-Aware Exact Match" scores, indicating the model is better at recognizing when it lacks sufficient information to answer a question, rather than hallucinating.
Conclusion
HOLMES demonstrates that for complex reasoning tasks, "less is more." By providing LLMs with a highly distilled, structured, and contextually grounded representation of facts, the framework significantly improves both the accuracy and efficiency of multi-hop question answering. Future work will focus on improving the initial triple extraction process and further automating the generation of auxiliary schemas to handle diverse domains.
Summary updated