Abstract
Large Language Models (LLMs) frequently suffer from hallucinations and knowledge gaps when tasked with complex reasoning. While integrating Knowledge Graphs (KGs) offers a potential solution, existing methods often fail to leverage the inherent graph structure, struggling with multi-hop reasoning and noise. This paper introduces Paths-over-Graph (PoG), a framework that guides LLMs through structured reasoning paths within a KG. PoG employs a dynamic exploration strategy and a three-step beam search pruning mechanism to identify relevant factual chains. Experimental results across five benchmark datasets demonstrate that PoG achieves state-of-the-art accuracy, with GPT-3.5-based PoG even outperforming GPT-4-based baselines while reducing token consumption by over 50%.
Introduction
While Large Language Models (LLMs) are impressive, they possess two major "Achilles' heels": hallucination (confident generation of false information) and knowledge gaps (lack of specialized or up-to-date information). To mitigate these issues, researchers have integrated LLMs with Knowledge Graphs (KGs)—massive databases of structured facts. However, existing retrieval-augmented methods often treat KGs as flat lists of sentences, ignoring the structural relationships between entities. This leads to significant challenges in multi-hop reasoning, where questions require jumping through several connected facts, and results in high costs due to the inclusion of irrelevant "noise" in the LLM prompt.
The Paths-over-Graph (PoG) Framework
The authors introduce Paths-over-Graph (PoG), which moves away from retrieving isolated facts (triples) and instead focuses on reasoning paths—chains of logic that connect the entities in a question to the final answer. The framework operates in four main stages:
- Initialization: PoG uses an LLM to decompose a complex question into simpler sub-questions and generates a "Planning" indicator. This plan predicts the necessary reasoning depth to guide the subsequent search.
- Dynamic Three-Phase Exploration:
- Topic Entity Path Exploration: Finds paths connecting the subjects mentioned in the question.
- LLM Supplement Path Exploration: Uses the LLM’s internal knowledge to suggest missing links, which are then verified against the KG.
- Node Expand Exploration: Expands the search to nearby neighbors in the graph if no initial path is found.
- Three-Step Beam Search Pruning: To maintain efficiency, PoG prunes irrelevant paths using Fuzzy Selection (SentenceBERT), Precise Selection (LLM-based), and Branch Reduced Selection (structural graph reduction).
- Question Answering: The final paths are summarized and fed back to the LLM to generate a faithful, evidence-backed answer.
Experimental Evaluation
The authors evaluated PoG on five benchmark Knowledge Graph Question Answering (KGQA) datasets using Freebase as the underlying knowledge source: CWQ (ComplexWebQuestions), WebQSP, GrailQA, SimpleQuestions, and WebQuestions. These datasets test various aspects of reasoning, from multi-hop logic to generalization across unseen relations.
Key Results
- State-of-the-Art Performance: PoG outperformed the previous leading method (ToG) by an average of 18.9% accuracy across all datasets.
- Efficiency and Power: Remarkably, PoG using GPT-3.5-Turbo outperformed the GPT-4 version of the previous state-of-the-art by up to 23.9% on certain datasets. Furthermore, PoG reduced LLM token usage by over 50% compared to standard retrieval methods.
- Faithfulness: Analysis revealed that up to 95% of PoG’s answers were derived directly from KG paths, significantly reducing the hallucinations typical of standalone LLMs.
Discussion and Insights
A key insight from this work is that Paths > Triples. By treating the KG as a series of paths rather than a bag of facts, the LLM receives a logical chain it can follow, making the reasoning process more interpretable. Additionally, the authors found that a reasoning depth of 3 is typically the "Goldilocks zone"; deeper searches often introduce more noise than useful information.
Despite its success, PoG remains dependent on initial entity linking; if the system fails to map a question's subject to the KG, the reasoning chain cannot begin. Future work will explore automated ways to handle missing data in KGs and further optimize the LLM-in-the-loop pruning process.
Conclusion
Paths-over-Graph represents a significant step forward in KG-augmented LLM reasoning. By prioritizing structured paths over isolated facts and employing sophisticated pruning, PoG achieves superior accuracy and efficiency, providing a robust map for LLMs to navigate complex factual landscapes.
Summary updated