Skip to main content
QUICK REVIEW

[Paper Review] Enhancing Knowledge Graph Construction Using Large Language Models

Milena Trajanoska, Riste Stojanov|arXiv (Cornell University)|May 8, 2023
Topic ModelingComputer Science35 citations
TL;DR

The paper compares REBEL and ChatGPT for automatic knowledge graph construction from sustainability-related texts, showing ChatGPT with a refined prompt can generate higher-quality ontologies and instances. It also demonstrates automatic ontology generation using foundation LLMs enhances KG relevance.

ABSTRACT

The growing trend of Large Language Models (LLM) development has attracted significant attention, with models for various applications emerging consistently. However, the combined application of Large Language Models with semantic technologies for reasoning and inference is still a challenging task. This paper analyzes how the current advances in foundational LLM, like ChatGPT, can be compared with the specialized pretrained models, like REBEL, for joint entity and relation extraction. To evaluate this approach, we conducted several experiments using sustainability-related text as our use case. We created pipelines for the automatic creation of Knowledge Graphs from raw texts, and our findings indicate that using advanced LLM models can improve the accuracy of the process of creating these graphs from unstructured text. Furthermore, we explored the potential of automatic ontology creation using foundation LLM models, which resulted in even more relevant and accurate knowledge graphs.

Motivation & Objective

  • Investigate how foundational LLMs compare with specialized pretrained models for joint entity and relation extraction.
  • Evaluate end-to-end pipelines that create Knowledge Graphs from unstructured web texts in a sustainability use case.
  • Assess whether prompting strategies can induce ontology creation and improve KG quality.
  • Explore the role of entity linking and ontology alignment in producing usable KGs from text.

Proposed method

  • Use REBEL to perform end-to-end relation extraction on 94 sustainability news articles, batching 256-token chunks due to 512-token limit.
  • Use ChatGPT in two experiments: (i) extract relations and build a KG with post-processing and entity linking; (ii) iteratively prompt to generate an OWL ontology and instances in RDF Turtle format.
  • Apply DBpedia-based entity linking to normalize entities.
  • Compare outputs to assess triplets, entities, and relations produced by each method.
  • Qualitatively evaluate KG quality using an 18-principle framework for knowledge graph quality.
Figure 1: Subset of the Knowledge Base generated using the REBEL model. The Knowledge Base is displayed in a graph format where entities are represented as nodes and relations are represented as edges.
Figure 1: Subset of the Knowledge Base generated using the REBEL model. The Knowledge Base is displayed in a graph format where entities are represented as nodes and relations are represented as edges.

Experimental results

Research questions

  • RQ1Can foundation LLMs like ChatGPT outperform specialized RE models like REBEL in automatic relation extraction and KG creation from unstructured text?
  • RQ2Does prompting ChatGPT to generate an ontology improve the usability and coherence of the resulting knowledge graph?
  • RQ3What is the impact of entity linking and ontology generation on KG quality in the sustainability domain?

Key findings

  • REBEL extracted 805 entities, 105 relations, and 854 triples from the same corpus where ChatGPT extracted 1158 entities, 677 relations, and 826 triples.
  • ChatGPT produces more entities but with many phrases rather than abstract concepts, leading to a less usable ontology without prompt refinement.
  • A second ChatGPT approach that explicitly generates an ontology and instances yields higher-quality KGs, with clearer concept–instance relationships.
  • Ontology-based outputs from ChatGPT can link organizations, practices, and policies, enabling more complex sustainability queries.
  • Qualitative evaluation favored the second ChatGPT approach for KG quality under the proposed 18-principle framework.
Figure 2: Subset of the Knowledge Base generated using the first experiment with ChatGPT. The Knowledge Base is displayed in a graph format where entities are represented as nodes and relations are represented as edges.
Figure 2: Subset of the Knowledge Base generated using the first experiment with ChatGPT. The Knowledge Base is displayed in a graph format where entities are represented as nodes and relations are represented as edges.

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.