Generate-on-Graph: Treat LLM as both Agent and KG in Incomplete Knowledge Graph Question Answering

Yao Xu, Shizhu He, Jiabei Chen, Zihao Wang, Yangqiu Song +4 more
4/23/2024
cs.CLcs.AI

No official code found. Best implementation: YaooXu/GoG (76 stars, last commit 2024-10-24).

Abstract

To address the issues of insufficient knowledge and hallucination in Large Language Models (LLMs), numerous studies have explored integrating LLMs with Knowledge Graphs (KGs). However, these methods are typically evaluated on conventional Knowledge Graph Question Answering (KGQA) with complete KGs, where all factual triples required for each question are entirely covered by the given KG. In such cases, LLMs primarily act as an agent to find answer entities within the KG, rather than effectively integrating the internal knowledge of LLMs and external knowledge sources such as KGs. In fact, KGs are often incomplete to cover all the knowledge required to answer questions. To simulate these real-world scenarios and evaluate the ability of LLMs to integrate internal and external knowledge, we propose leveraging LLMs for QA under Incomplete Knowledge Graph (IKGQA), where the provided KG lacks some of the factual triples for each question, and construct corresponding datasets. To handle IKGQA, we propose a training-free method called Generate-on-Graph (GoG), which can generate new factual triples while exploring KGs. Specifically, GoG performs reasoning through a Thinking-Searching-Generating framework, which treats LLM as both Agent and KG in IKGQA. Experimental results on two datasets demonstrate that our GoG outperforms all previous methods.

View on arXivView PDF

Code Implementations(1)

YaooXu/GoGCommunity100%

Generate-on-Graph: Treat LLM as both Agent and KG for Incomplete Knowledge Graph Question Answering. EMNLP 2024 Main

768Shell, PythonFeb 14, 20241 years ago

Similar Papers

Cite this paper

@article{xu2024generateongraph,
  title  = {Generate-on-Graph: Treat LLM as both Agent and KG in Incomplete Knowledge Graph Question Answering},
  author = {Yao Xu and Shizhu He and Jiabei Chen and Zihao Wang and Yangqiu Song and Hanghang Tong and Guang Liu and Kang Liu and Jun Zhao},
  year   = {2024},
  eprint = {2404.14741},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2404.14741v3}
}

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

Discussion