Think-on-Graph: Deep and Responsible Reasoning of Large Language Model on Knowledge Graph
Authors:
- Jiashuo SunJSJiashuo Sun
- Lumingyuan TangLTLumingyuan Tang
- Saizhuo WangSWSaizhuo Wang
- Heung-Yeung ShumHSHeung-Yeung Shum
- Jian GuoJGJian Guo
Preprint
Abstract
Although large language models (LLMs) have achieved significant success in various tasks, they often struggle with hallucination problems, especially in scenarios requiring deep and responsible reasoning. These issues could be partially addressed by introducing external knowledge graphs (KG) in LLM reasoning. In this paper, we propose a new LLM-KG integrating paradigm ``$\hbox{LLM}\otimes\hbox{KG}$'' which treats the LLM as an agent to interactively explore related entities and relations on KGs and perform reasoning based on the retrieved knowledge. We further implement this paradigm by introducing a new approach called Think-on-Graph (ToG), in which the LLM agent iteratively executes beam search on KG, discovers the most promising reasoning paths, and returns the most likely reasoning results. We use a number of well-designed experiments to examine and illustrate the following advantages of ToG: 1) compared with LLMs, ToG has better deep reasoning power; 2) ToG has the ability of knowledge traceability and knowledge correctability by leveraging LLMs reasoning and expert feedback; 3) ToG provides a flexible plug-and-play framework for different LLMs, KGs and prompting strategies without any additional training cost; 4) the performance of ToG with small LLM models could exceed large LLM such as GPT-4 in certain scenarios and this reduces the cost of LLM deployment and application. As a training-free method with lower computational cost and better generality, ToG achieves overall SOTA in 6 out of 9 datasets where most previous SOTAs rely on additional training.Keywords
All Related Versions
This publication has 33 references indexed in Scilit:
- Joint Multi-Facts Reasoning Network for Complex Temporal Question Answering Over Knowledge Graph2024
- Graph of Thoughts: Solving Elaborate Problems with Large Language ModelsProceedings of the AAAI Conference on Artificial Intelligence, 2024
- A Survey of Knowledge Enhanced Pre-Trained Language ModelsIEEE Transactions on Knowledge and Data Engineering, 2023
- BeamQA: Multi-hop Knowledge Graph Question Answering with Sequence-to-Sequence Prediction and Beam Search2023
- GETT-QA: Graph Embedding Based T2T Transformer for Knowledge Graph Question Answering2023
- Complex Knowledge Base Question Answering: A SurveyIEEE Transactions on Knowledge and Data Engineering, 2022
- QALD-9-plus: A Multilingual Dataset for Question Answering over DBpedia and Wikidata Translated by Native Speakers2022
- Beyond I.I.D.: Three Levels of Generalization for Question Answering on Knowledge Bases2021
- Improving Multi-hop Knowledge Base Question Answering by Learning Intermediate Supervision Signals2021
- WikidataCommunications of the ACM, 2014