Abstract
Developing link prediction models to automatically complete knowledge graphs has recently been the focus of significant research interest. The current methods for the link prediction task have two natural problems: 1) the relation distributions in KGs are usually unbalanced, and 2) there are many unseen relations that occur in practical situations. These two problems limit the training effectiveness and practical applications of the existing link prediction models. We advocate a holistic understanding of KGs and we propose in this work a unified Generalized Relation Learning framework GRL to address the above two problems, which can be plugged into existing link prediction models. GRL conducts a generalized relation learning, which is aware of semantic correlations between relations that serve as a bridge to connect semantically similar relations. After training with GRL, the closeness of semantically similar relations in vector space and the discrimination of dissimilar relations are improved. We perform comprehensive experiments on six benchmarks to demonstrate the superior capability of GRL in the link prediction task. In particular, GRL is found to enhance the existing link prediction models making them insensitive to unbalanced relation distributions and capable of learning unseen relations.
Introduction: The Challenge of Long-Tail Knowledge Graphs
Knowledge Graphs (KGs)—structured databases representing facts like (head_entity, relation, tail_entity)—are the backbone of modern AI, from search engines to recommendation systems. However, they face two major hurdles that limit their practical utility:
- Unbalanced Distributions: Most link prediction models assume every relation has ample training data. In reality, a few relations are ubiquitous, while thousands of others might only appear a handful of times (few-shot).
- Unseen Relations: KGs are dynamic. New relations emerge constantly, and traditional models are often "blind" to them because they require existing training instances to learn an embedding (zero-shot).
Current models often treat relations as isolated islands. This research proposes that by recognizing semantic correlations (e.g., knowing that "language" and "edited by" are both related to the concept of "film"), a model can generalize better to rare or even completely unseen scenarios by "borrowing" knowledge from common relations.
Methodology: The GRL Framework
Generalized Relation Learning (GRL) is designed as a modular framework that can be integrated into existing "base" models like DistMult or ConvE. It consists of three main components:
- Attention Module: This module maintains a "Relation Memory Block" that stores information about known relations. It uses an attention mechanism to determine how semantically similar a current entity pair is to various known relations.
- Fusion Module: Inspired by pointer-generator networks, this uses a "soft switch" to blend specific features of the current entity pair with broader "relational knowledge." This allows the model to adaptively decide how much to rely on specific data versus general semantic patterns.
- Classifier Module: GRL adds a classification-aware loss, forcing the model to explicitly categorize relations. This makes the resulting vector space more organized—semantically similar relations are pushed closer together, while dissimilar ones are pushed apart.
For zero-shot relations, GRL identifies the most similar "seen" relation in the embedding space to act as a proxy, allowing the model to make an educated guess about a relation it has never encountered before.
Experimental Evaluation and Results
The researchers evaluated GRL on six diverse benchmarks, including standard datasets (YAGO3-10, FB15K-237), few-shot specific datasets (NELL-ONE), and custom zero-shot splits. Key findings include:
- General Improvement: Adding GRL to base models led to consistent gains. For example, on YAGO3-10, DistMult+GRL saw a 7.2% increase in overall performance.
- Few-Shot and Zero-Shot Mastery: On NELL-ONE, ConvE+GRL outperformed specialized few-shot models like CogKR. In zero-shot tests, GRL-enhanced models predicted triples for unseen relations with significantly higher accuracy than base models.
- Semantic Clustering: Visual analysis (t-SNE) confirmed that GRL causes relations associated with similar topics to cluster more tightly in the embedding space, effectively creating a "semantic bridge" across the distribution.
Conclusion
GRL demonstrates that semantic awareness is a fundamental missing piece in knowledge graph embedding. By anchoring rare and unseen relations to semantically similar well-known ones, the framework significantly improves link prediction accuracy across all data densities. Future work aims to incorporate external text descriptions and test GRL in downstream applications like complex question-answering.
Summary updated