Paths-over-Graph: Knowledge Graph Empowered Large Language Model Reasoning

Xingyu Tan, Xiaoyang Wang, Qing Liu, Xiwei Xu, Xin Yuan +1 more
10/18/2024
124 citations
cs.CL

No official code found. Best implementation: SteveTANTAN/PoG (131 stars, Python, Apache-2.0, last commit 2025-09-01).

Abstract

Large Language Models (LLMs) have achieved impressive results in various tasks but struggle with hallucination problems and lack of relevant knowledge, especially in deep complex reasoning and knowledge-intensive tasks. Knowledge Graphs (KGs), which capture vast amounts of facts in a structured format, offer a reliable source of knowledge for reasoning.

Show full abstract

However, existing KG-based LLM reasoning methods face challenges like handling multi-hop reasoning, multi-entity questions, and effectively utilizing graph structures. To address these issues, we propose Paths-over-Graph (PoG), a novel method that enhances LLM reasoning by integrating knowledge reasoning paths from KGs, improving the interpretability and faithfulness of LLM outputs. PoG tackles multi-hop and multi-entity questions through a three-phase dynamic multi-hop path exploration, which combines the inherent knowledge of LLMs with factual knowledge from KGs. In order to improve the efficiency, PoG prunes irrelevant information from the graph exploration first and introduces efficient three-step pruning techniques that incorporate graph structures, LLM prompting, and a pre-trained language model (e.g., SBERT) to effectively narrow down the explored candidate paths. This ensures all reasoning paths contain highly relevant information captured from KGs, making the reasoning faithful and interpretable in problem-solving. PoG innovatively utilizes graph structure to prune the irrelevant noise and represents the first method to implement multi-entity deep path detection on KGs for LLM reasoning tasks. Comprehensive experiments on five benchmark KGQA datasets demonstrate PoG outperforms the state-of-the-art method ToG across GPT-3.5-Turbo and GPT-4, achieving an average accuracy improvement of 18.9%. Notably, PoG with GPT-3.5-Turbo surpasses ToG with GPT-4 by up to 23.9%.

View on arXivView PDF

Code Implementations(1)

SteveTANTAN/PoGCommunity75%
Apache-2.0

[WWW 2025] Paths-over-Graph: Knowledge Graph Empowered Large Language Model Reasoning

13116PythonOct 15, 20241 years agoApache-2.0
graph-raggraphragkbqakgkgqa+3 more

Similar Papers

Cite this paper

@article{tan2024pathsovergraph,
  title  = {Paths-over-Graph: Knowledge Graph Empowered Large Language Model Reasoning},
  author = {Xingyu Tan and Xiaoyang Wang and Qing Liu and Xiwei Xu and Xin Yuan and Wenjie Zhang},
  year   = {2024},
  eprint = {2410.14211},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.14211v4}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2410.14211.svg)](https://codeofpaper.com/paper/2410.14211)

Discussion