TasksSotADatasetsPapersMethodsSubmitAbout
Papers With Code 2

A community resource for machine learning research: papers, code, benchmarks, and state-of-the-art results.

Explore

Notable BenchmarksAll SotADatasetsPapersMethods

Community

Submit ResultsAbout

Data sourced from the PWC Archive (CC-BY-SA 4.0). Built by the community, for the community.

Papers/KGLM: Integrating Knowledge Graph Structure in Language Mo...

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

Jason Youn, Ilias Tagkopoulos

2022-11-04Question AnsweringKnowledge GraphsKnowledge Graph CompletionRecommendation SystemsFraud DetectionLanguage ModellingLink Prediction
PaperPDFCode(official)

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.

Results

TaskDatasetMetricValueModel
Link PredictionUMLSHits@100.995KGLM
Link PredictionUMLSMR1.19KGLM
Link PredictionWN18RRHits@10.33KGLM
Link PredictionWN18RRHits@100.741KGLM
Link PredictionWN18RRHits@30.538KGLM
Link PredictionWN18RRMR40.18KGLM
Link PredictionWN18RRMRR0.467KGLM
Link PredictionFB15k-237Hits@10.2KGLM
Link PredictionFB15k-237Hits@100.468KGLM
Link PredictionFB15k-237Hits@30.314KGLM
Link PredictionFB15k-237MR125.9KGLM
Link PredictionFB15k-237MRR0.289KGLM

Related Papers

Visual-Language Model Knowledge Distillation Method for Image Quality Assessment2025-07-21IP2: Entity-Guided Interest Probing for Personalized News Recommendation2025-07-18A Reproducibility Study of Product-side Fairness in Bundle Recommendation2025-07-18From Roots to Rewards: Dynamic Tree Reasoning with RL2025-07-17Enter the Mind Palace: Reasoning and Planning for Long-term Active Embodied Question Answering2025-07-17Vision-and-Language Training Helps Deploy Taxonomic Knowledge but Does Not Fundamentally Alter It2025-07-17City-VLM: Towards Multidomain Perception Scene Understanding via Multimodal Incomplete Learning2025-07-17SMART: Relation-Aware Learning of Geometric Representations for Knowledge Graphs2025-07-17