Abstract
In the task of Knowledge Graph Completion (KGC), existing datasets and their inherent subtasks carry a wealth of shared knowledge that can be utilized to enhance the representation of knowledge triplets and overall performance. However, no current studies specifically address the shared knowledge within KGC. To bridge this gap, we introduce a multi-level Shared Knowledge Guided learning method (SKG) that operates at both the dataset and task levels. On the dataset level, SKG-KGC broadens the original dataset by identifying shared features within entity sets via text summarization. On the task level, for the three typical KGC subtasks—head entity prediction, relation prediction, and tail entity prediction—we present an innovative multi-task learning architecture with dynamically adjusted loss weights. This approach allows the model to focus on more challenging and underperforming tasks, effectively mitigating the imbalance of knowledge sharing among subtasks. Experimental results demonstrate that SKG-KGC outperforms existing text-based methods significantly on three well-known datasets, with the most notable improvement on WN18RR.
Introduction
Knowledge Graphs (KGs) are the backbone of modern AI, yet they are notoriously incomplete. Knowledge Graph Completion (KGC) aims to predict missing links within triples of $(head\ entity, relation, tail\ entity)$. Current research often overlooks "Shared Knowledge" at two critical levels:
- Dataset Level: Entities often share common features across different triples. For instance, multiple actors might share the same relation and tail entity in a film database. Current models often treat these as isolated facts rather than learning from the "set" of entities.
- Task Level: KGC subtasks (predicting head, tail, or relation) vary in difficulty due to data distribution imbalances, such as one-to-many relations. Most models treat these tasks with equal weight, leading to imbalanced performance.
Methodology
The proposed SKG-KGC (Shared Knowledge Guided KGC) framework addresses these gaps through a dual-tier approach.
Dataset Expansion via Text Summarization
To capture shared features without causing information overload, SKG-KGC groups entities sharing the same $(h, r)$ or $(r, t)$ contexts. The TextRank algorithm is employed to summarize these entity sets, providing a condensed, "essential" description of the shared knowledge surrounding a triple.
Bi-Encoder Architecture and Multi-Task Learning
The model utilizes a bi-encoder architecture to facilitate efficient inference. One encoder processes "known" elements while the other handles "candidate" missing elements. This allows candidate embeddings to be pre-computed, significantly speeding up inference.
A key innovation is the dynamic loss weight allocation scheme inspired by focal loss. By adjusting loss weights based on subtask performance (e.g., increasing weight for the more challenging head entity prediction), the model stops "over-learning" easy tasks and focuses its parameters on the harder ones.
Experimental Results
The model was evaluated on three standard benchmarks: WN18RR, FB15k-237, and Wikidata5M. SKG-KGC achieved state-of-the-art (SOTA) results among text-based methods.
On the WN18RR benchmark, SKG-KGC reached an MRR (Mean Reciprocal Rank) of 72.2%, a significant jump from the previous best text-based model (SimKGC at 66.6%). Hit@1 performance also saw a substantial increase from 58.7% to 67.0%. Furthermore, the model demonstrated high efficiency: training on WN18RR takes about 2.5 hours compared to the 7.8 hours required by previous MTL-KGC models, and inference is over 20x faster.
Conclusion and Future Work
SKG-KGC demonstrates that leveraging shared knowledge at both dataset and task levels significantly enhances KGC performance. While highly effective on text-heavy datasets like WN18RR, the model shows room for improvement on datasets with complex structural rules like FB15k-237, where structure-based methods still hold an edge. Future work will focus on integrating structural graph embeddings with this text-based approach to capture both semantic and structural nuances in knowledge graphs.
Summary updated