Command Palette
Search for a command to run...
KGLM: Integrating Knowledge Graph Structure in Language Models for Link Prediction
Jason Youn Ilias Tagkopoulos

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. 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.
Code Repositories
Benchmarks
| Benchmark | Methodology | Metrics |
|---|---|---|
| link-prediction-on-fb15k-237 | KGLM | Hits@1: 0.200 Hits@10: 0.468 Hits@3: 0.314 MR: 125.9 MRR: .289 |
| link-prediction-on-umls | KGLM | Hits@10: 0.995 MR: 1.19 |
| link-prediction-on-wn18rr | KGLM | Hits@1: 0.330 Hits@10: 0.741 Hits@3: 0.538 MR: 40.18 MRR: 0.467 |
Build AI with AI
From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.