Benchmarking the Abilities of Large Language Models for RDF Knowledge Graph Creation and Comprehension: How Well Do LLMs Speak Turtle?

Johannes Frey, Lars-Peter Meyer, Natanael Arndt, Felix Brei, Kirill Bulert
9/29/2023
cs.AIcs.CLcs.DB

No official code found. Best implementation: zjukg/KG-LLM-Papers (2,231 stars, MIT, last commit 2026-03-02). 2 more below.

Abstract

Large Language Models (LLMs) are advancing at a rapid pace, with significant improvements at natural language processing and coding tasks. Yet, their ability to work with formal languages representing data, specifically within the realm of knowledge graph engineering, remains under-investigated. To evaluate the proficiency of various LLMs, we created a set of five tasks that probe their ability to parse, understand, analyze, and create knowledge graphs serialized in Turtle syntax. These tasks, each embodying distinct degrees of complexity and being able to scale with the size of the problem, have been integrated into our automated evaluation system, the LLM-KG-Bench. The evaluation encompassed four commercially available LLMs - GPT-3.5, GPT-4, Claude 1.3, and Claude 2.0, as well as two freely accessible offline models, GPT4All Vicuna and GPT4All Falcon 13B. This analysis offers an in-depth understanding of the strengths and shortcomings of LLMs in relation to their application within RDF knowledge graph engineering workflows utilizing Turtle representation. While our findings show that the latest commercial models outperform their forerunners in terms of proficiency with the Turtle language, they also reveal an apparent weakness. These models fall short when it comes to adhering strictly to the output formatting constraints, a crucial requirement in this context.

View on arXivView PDF

Code Implementations(3)

zjukg/KG-LLM-PapersCommunity100%
MIT

[Paper List] Papers integrating knowledge graphs (KGs) and large language models (LLMs)

2,231159Jun 12, 20237 months agoMIT
awesomeawesome-kgawesome-llmawsome-listcommonsense+10 more
AKSW/LLM-KG-BenchCommunity100%
MPL-2.0

LLM-KG-Bench is a Framework and task collection for automated benchmarking of Large Language Models (LLMs) on Knowledge Graph (KG) related tasks.

595HTML, ShellMay 24, 20237 months agoMPL-2.0
knowledge-graphlarge-language-modelsllmllm-benchmarkingrdf+1 more

Collection of results generated with LLM-KG-Bench

40ShellJul 4, 202310 months ago

Similar Papers

Cite this paper

@article{frey2023benchmarking,
  title  = {Benchmarking the Abilities of Large Language Models for RDF Knowledge Graph Creation and Comprehension: How Well Do LLMs Speak Turtle?},
  author = {Johannes Frey and Lars-Peter Meyer and Natanael Arndt and Felix Brei and Kirill Bulert},
  year   = {2023},
  eprint = {2309.17122},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2309.17122v1}
}

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

Discussion