Skip to main content
QUICK REVIEW

[Paper Review] LLMs for Knowledge Graph Construction and Reasoning: Recent Capabilities and Future Opportunities

Yuqi Zhu, Xiaohan Wang|arXiv (Cornell University)|May 22, 2023
Semantic Web and OntologiesComputer Science36 citations
TL;DR

The paper evaluates GPT-3.5/ChatGPT/GPT-4 on KG construction and reasoning across eight datasets, introduces the Virtual Knowledge Extraction task with the VINE dataset, and proposes AutoKG using multi-agent LLMs for automated KG construction and reasoning.

ABSTRACT

This paper presents an exhaustive quantitative and qualitative evaluation of Large Language Models (LLMs) for Knowledge Graph (KG) construction and reasoning. We engage in experiments across eight diverse datasets, focusing on four representative tasks encompassing entity and relation extraction, event extraction, link prediction, and question-answering, thereby thoroughly exploring LLMs' performance in the domain of construction and inference. Empirically, our findings suggest that LLMs, represented by GPT-4, are more suited as inference assistants rather than few-shot information extractors. Specifically, while GPT-4 exhibits good performance in tasks related to KG construction, it excels further in reasoning tasks, surpassing fine-tuned models in certain cases. Moreover, our investigation extends to the potential generalization ability of LLMs for information extraction, leading to the proposition of a Virtual Knowledge Extraction task and the development of the corresponding VINE dataset. Based on these empirical findings, we further propose AutoKG, a multi-agent-based approach employing LLMs and external sources for KG construction and reasoning. We anticipate that this research can provide invaluable insights for future undertakings in the field of knowledge graphs. The code and datasets are in https://github.com/zjunlp/AutoKG.

Motivation & Objective

  • Assess zero-shot and one-shot performance of LLMs on KG construction tasks (NER, RE, EE, EL) and KG reasoning (LP) and QA.
  • Investigate generalization abilities of LLMs for information extraction via Virtual Knowledge Extraction and the VINE dataset.
  • Propose AutoKG, a multi-agent LLM framework for automatic KG construction and reasoning.
  • Provide insights and future directions for using LLMs in KG workflows.

Proposed method

  • Survey eight KG-related tasks and eight datasets covering entity, relation, event extraction, link prediction, and QA.
  • Compare zero-shot and one-shot performance of GPT-4, ChatGPT, and text-davinci-003 against SOTA baselines.
  • Create the VINE dataset to test virtual knowledge extraction on unseen entities and relations.
  • Develop AutoKG, a multi-agent framework where LLMs collaborate iteratively to construct and reason over KGs.

Experimental results

Research questions

  • RQ1Can LLMs (GPT-4, ChatGPT) achieve SOTA or near-SOTA performance on KG construction and reasoning tasks under zero-shot and one-shot settings?
  • RQ2Do LLMs exhibit strong generalization and instruction-driven learning for information extraction via virtual knowledge tasks?
  • RQ3Can a multi-agent LLM framework (AutoKG) effectively automate KG construction and reasoning?
  • RQ4What factors (dataset quality, prompts, evaluation methods) influence LLM performance on KG tasks across domains?
  • RQ5Do LLMs memorize knowledge or generalize to unseen knowledge through instruction following?

Key findings

  • GPT-4 generally outperforms ChatGPT for KG construction tasks and can surpass some fine-tuned models in certain reasoning and QA datasets.
  • LLMs show stronger performance in KG reasoning and QA than in KG construction, often approaching or matching SOTA in reasoning with zero-shot or one-shot settings.
  • A novel Virtual Knowledge Extraction task and the VINE dataset demonstrate GPT-4’s ability to generalize to unseen virtual knowledge via instructions.
  • GPT-4 can extract virtual triples with high accuracy on unseen entities and relations, indicating strong instruction-driven generalization.
  • One-shot prompts improve some results, but effects vary by task and model, with domain-specific data showing smaller gains.
  • AutoKG demonstrates that a multi-agent, dialog-based approach can effectively build and reason over KGs, highlighting future automation potential.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.