KGLM: Integrating Knowledge Graph Structure in Language Models for Link Prediction

Jason Youn, Ilias Tagkopoulos
11/4/2022
cs.CLcs.AI

Official code: IBPA/KGLM (19 stars, Python, Apache-2.0, last commit 2022-11-11).

Abstract

The ability of knowledge graphs to represent complex relationships at scale has led to their adoption for various needs including knowledge representation, question-answering, and recommendation systems. Knowledge graphs are often incomplete in the information they represent, necessitating the need for knowledge graph completion tasks.

Show full abstract

Pre-trained and fine-tuned language models have shown promise in these tasks although these models ignore the intrinsic information encoded in the knowledge graph, namely the entity and relation types. In this work, we propose the Knowledge Graph Language Model (KGLM) architecture, where we introduce a new entity/relation embedding layer that learns to differentiate distinctive entity and relation types, therefore allowing the model to learn the structure of the knowledge graph. In this work, we show that further pre-training the language models with this additional embedding layer using the triples extracted from the knowledge graph, followed by the standard fine-tuning phase sets a new state-of-the-art performance for the link prediction task on the benchmark datasets.

View on arXivView PDF

Code Implementations(1)

IBPA/KGLMOfficial100%
Apache-2.0
192Python, ShellApr 21, 20214 years agoApache-2.0

Similar Papers

Cite this paper

@article{youn2022kglm,
  title  = {KGLM: Integrating Knowledge Graph Structure in Language Models for Link Prediction},
  author = {Jason Youn and Ilias Tagkopoulos},
  year   = {2022},
  eprint = {2211.02744},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2211.02744}
}

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

Discussion