Evaluating Class Membership Relations in Knowledge Graphs using Large Language Models

Bradley P. Allen, Paul T. Groth
4/25/2024
cs.CLcs.AI

No official code found. Best implementation: bradleypallen/evaluating-kg-class-memberships-using-llms (7 stars, MIT, last commit 2024-05-03).

Abstract

A backbone of knowledge graphs are their class membership relations, which assign entities to a given class. As part of the knowledge engineering process, we propose a new method for evaluating the quality of these relations by processing descriptions of a given entity and class using a zero-shot chain-of-thought classifier that uses a natural language intensional definition of a class. We evaluate the method using two publicly available knowledge graphs, Wikidata and CaLiGraph, and 7 large language models. Using the gpt-4-0125-preview large language model, the method's classification performance achieves a macro-averaged F1-score of 0.830 on data from Wikidata and 0.893 on data from CaLiGraph. Moreover, a manual analysis of the classification errors shows that 40.9% of errors were due to the knowledge graphs, with 16.0% due to missing relations and 24.9% due to incorrectly asserted relations. These results show how large language models can assist knowledge engineers in the process of knowledge graph refinement. The code and data are available on Github.

View on arXivView PDF

Code Implementations(1)

MIT

Code and data for experiments on the evaluation of class membership relations in knowledge graphs using LLMs

70Python, Jupyter NotebookSep 30, 20232 years agoMIT

Similar Papers

Cite this paper

@article{allen2024evaluating,
  title  = {Evaluating Class Membership Relations in Knowledge Graphs using Large Language Models},
  author = {Bradley P. Allen and Paul T. Groth},
  year   = {2024},
  eprint = {2404.17000},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2404.17000v1}
}

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

Discussion