Graph Chain-of-Thought: Augmenting Large Language Models by Reasoning on Graphs

Bowen Jin, Chulin Xie, Jiawei Zhang, Kashob Kumar Roy, Yu Zhang +6 more
4/10/2024
cs.CLcs.IRcs.LG

Official code: PeterGriffinJin/Graph-CoT (311 stars, Apache-2.0, last commit 2024-12-24).

Abstract

Large language models (LLMs), while exhibiting exceptional performance, suffer from hallucinations, especially on knowledge-intensive tasks. Existing works propose to augment LLMs with individual text units retrieved from external knowledge corpora to alleviate the issue. However, in many domains, texts are interconnected (e.g., academic papers in a bibliographic graph are linked by citations and co-authorships) which form a (text-attributed) graph. The knowledge in such graphs is encoded not only in single texts/nodes but also in their associated connections. To facilitate the research of augmenting LLMs with graphs, we manually construct a Graph Reasoning Benchmark dataset called GRBench, containing 1,740 questions that can be answered with the knowledge from 10 domain graphs. Then, we propose a simple and effective framework called Graph Chain-of-thought (Graph-CoT) to augment LLMs with graphs by encouraging LLMs to reason on the graph iteratively. Each Graph-CoT iteration consists of three sub-steps: LLM reasoning, LLM-graph interaction, and graph execution. We conduct systematic experiments with three LLM backbones on GRBench, where Graph-CoT outperforms the baselines consistently. The code is available at https://github.com/PeterGriffinJin/Graph-CoT.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Graph Chain-of-Thought: Augmenting Large Language Models by Reasoning on Graphs (ACL 2024)

31131Shell, PythonFeb 14, 20241 years agoApache-2.0
agentgraphllmrag

Similar Papers

Cite this paper

@article{jin2024graph,
  title  = {Graph Chain-of-Thought: Augmenting Large Language Models by Reasoning on Graphs},
  author = {Bowen Jin and Chulin Xie and Jiawei Zhang and Kashob Kumar Roy and Yu Zhang and Zheng Li and Ruirui Li and Xianfeng Tang and Suhang Wang and Yu Meng and Jiawei Han},
  year   = {2024},
  eprint = {2404.07103},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2404.07103v3}
}

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

Discussion