MindMap: Knowledge Graph Prompting Sparks Graph of Thoughts in Large Language Models

Yilin Wen, Zifeng Wang, Jimeng Sun
8/17/2023
196 citations
cs.AIcs.CLcs.LG

Official code: wyl-willing/MindMap (389 stars, Python, last commit 2024-05-22).

Abstract

Large language models (LLMs) have achieved remarkable performance in natural language understanding and generation tasks. However, they often suffer from limitations such as difficulty in incorporating new knowledge, generating hallucinations, and explaining their reasoning process.

Show full abstract

To address these challenges, we propose a novel prompting pipeline, named \method, that leverages knowledge graphs (KGs) to enhance LLMs' inference and transparency. Our method enables LLMs to comprehend KG inputs and infer with a combination of implicit and external knowledge. Moreover, our method elicits the mind map of LLMs, which reveals their reasoning pathways based on the ontology of knowledge. We evaluate our method on diverse question \& answering tasks, especially in medical domains, and show significant improvements over baselines. We also introduce a new hallucination evaluation benchmark and analyze the effects of different components of our method. Our results demonstrate the effectiveness and robustness of our method in merging knowledge from LLMs and KGs for combined inference. To reproduce our results and extend the framework further, we make our codebase available at https://github.com/wyl-willing/MindMap.

View on arXivView PDF

Code Implementations(1)

MindMap: Knowledge Graph Prompting Sparks Graph of Thoughts in Large Language Models

38939Python, Jupyter NotebookAug 26, 20232 years ago

Similar Papers

Cite this paper

@article{wen2023mindmap,
  title  = {MindMap: Knowledge Graph Prompting Sparks Graph of Thoughts in Large Language Models},
  author = {Yilin Wen and Zifeng Wang and Jimeng Sun},
  year   = {2023},
  eprint = {2308.09729},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2308.09729v5}
}

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

Discussion