Reasoning on Graphs: Faithful and Interpretable Large Language Model Reasoning

Linhao Luo, Yuan-Fang Li, Gholamreza Haffari, Shirui Pan
10/1/2023

No official code found. Best implementation: RManLuo/reasoning-on-graphs (533 stars, MIT, last commit 2025-03-05).

Abstract

Large language models (LLMs) have demonstrated impressive reasoning abilities in complex tasks. However, they lack up-to-date knowledge and experience hallucinations during reasoning, which can lead to incorrect reasoning processes and diminish their performance and trustworthiness. Knowledge graphs (KGs), which capture vast amounts of facts in a structured format, offer a reliable source of knowledge for reasoning. Nevertheless, existing KG-based LLM reasoning methods only treat KGs as factual knowledge bases and overlook the importance of their structural information for reasoning. In this paper, we propose a novel method called reasoning on graphs (RoG) that synergizes LLMs with KGs to enable faithful and interpretable reasoning. Specifically, we present a planning-retrieval-reasoning framework, where RoG first generates relation paths grounded by KGs as faithful plans. These plans are then used to retrieve valid reasoning paths from the KGs for LLMs to conduct faithful reasoning. Furthermore, RoG not only distills knowledge from KGs to improve the reasoning ability of LLMs through training but also allows seamless integration with any arbitrary LLMs during inference. Extensive experiments on two benchmark KGQA datasets demonstrate that RoG achieves state-of-the-art performance on KG reasoning tasks and generates faithful and interpretable reasoning results.

View on arXivView PDF

Code Implementations(1)

MIT

Official Implementation of ICLR 2024 paper: "Reasoning on Graphs: Faithful and Interpretable Large Language Model Reasoning"

53369Shell, PythonOct 1, 20231 years agoMIT
kgknowledgelarge-language-modelsllmreasoning+1 more

Similar Papers

Cite this paper

@article{luo2023reasoning,
  title  = {Reasoning on Graphs: Faithful and Interpretable Large Language Model Reasoning},
  author = {Linhao Luo and Yuan-Fang Li and Gholamreza Haffari and Shirui Pan},
  year   = {2023},
  eprint = {2310.01061},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2310.01061},
  journal = {ICLR 2023 2023}
}

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/2310.01061.svg)](https://codeofpaper.com/paper/2310.01061)

Discussion