Exploring Large Language Models for Knowledge Graph Completion

Liang Yao, Jiazhen Peng, Chengsheng Mao, Yuan Luo
8/26/2023
117 citations
cs.CLcs.AI

Official code: yao8839836/kg-llm (163 stars, Python, last commit 2025-08-23).

Abstract

Knowledge graphs play a vital role in numerous artificial intelligence tasks, yet they frequently face the issue of incompleteness. In this study, we explore utilizing Large Language Models (LLM) for knowledge graph completion.

Show full abstract

We consider triples in knowledge graphs as text sequences and introduce an innovative framework called Knowledge Graph LLM (KG-LLM) to model these triples. Our technique employs entity and relation descriptions of a triple as prompts and utilizes the response for predictions. Experiments on various benchmark knowledge graphs demonstrate that our method attains state-of-the-art performance in tasks such as triple classification and relation prediction. We also find that fine-tuning relatively smaller models (e.g., LLaMA-7B, ChatGLM-6B) outperforms recent ChatGPT and GPT-4.

View on arXivView PDF

Code Implementations(1)

yao8839836/kg-llmOfficial100%

Exploring large language models for knowledge graph completion. ICASSP 2025

16312PythonMay 22, 20231 years ago
knowledge-graphlarge-language-modelsllm

Similar Papers

Cite this paper

@article{yao2023exploring,
  title  = {Exploring Large Language Models for Knowledge Graph Completion},
  author = {Liang Yao and Jiazhen Peng and Chengsheng Mao and Yuan Luo},
  year   = {2023},
  eprint = {2308.13916},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2308.13916v5}
}

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

Discussion