Improving Inductive Link Prediction Using Hyper-Relational Facts (Extended Abstract)

Mehdi Ali, Max Berrendorf, Mikhail Galkin, Veronika Thost, Tengfei Ma, Volker Tresp, Jens Lehmann

Introduction

Knowledge Graphs (KGs) serve as the backbone for numerous AI applications, from search engines to recommendation systems. However, a persistent challenge in KG research is the "Inductive Gap." Most existing models are transductive, meaning they are restricted to reasoning about entities present during the training phase. When new entities are introduced—such as a newly released film or a recently discovered protein—these models typically require complete retraining to incorporate the new data.

Furthermore, traditional link prediction (LP) models often simplify facts into basic triples: (Subject, Predicate, Object). This approach ignores the rich "hyper-relational" context available in modern KGs like Wikidata, where facts are augmented with qualifiers (e.g., specifying the role of an actor in a movie nomination). This paper, originally presented at IJCAI-22, explores how these qualifiers can be leveraged to bridge the inductive gap and improve reasoning over unseen entities.

Inductive Reasoning Scenarios

The authors define two distinct inductive settings to rigorously test model performance:

  1. Fully-Inductive (FI): The model must predict links within a completely new subgraph consisting entirely of entities unseen during training.
  2. Semi-Inductive (SI): The model must predict links between a new, unseen entity and the existing, known knowledge graph.

Methodology: Qualifier-Aware Models

To handle hyper-relational data in these inductive settings, the research adapts two primary architectures:

  • QBLP (Qualifier-aware BLP): This model employs a linear encoder to map entity features into a shared latent space. A Transformer-based decoder then processes the entire hyper-relational statement—including the subject, relation, object, and all associated qualifiers—as a single sequence.
  • StarE: This architecture utilizes a Graph Neural Network (GNN) encoder. StarE is specifically designed to aggregate qualifier information during the message-passing phase, allowing node representations to be updated based on the specific context of their neighborhood connections.

Experimental Evaluation

The models were evaluated using the WD20K dataset, a Wikidata-derived benchmark designed for hyper-relational link prediction. The researchers created multiple versions (V1, V2) with varying "qualifier ratios" to test the models' robustness under different levels of data sparsity. The datasets were split to create rigorous testing environments where the entities being predicted were entirely absent from the training set.

Results and Analysis

The experimental results demonstrate that incorporating hyper-relational qualifiers provides a significant inductive bias, helping models reason about unseen entities more effectively. Qualifiers act as "hints"; for instance, knowing a "subject has role" or "member of" can drastically narrow down the search space for missing links.

Table 1: Performance comparison on WD20K (100) V1 and V2 datasets in Fully-Inductive settings.

As shown in Table 1, models that utilize qualifiers consistently outperform triple-only baselines. In the Fully-Inductive setting, the inclusion of qualifier pairs (#QP) leads to substantial improvements. For example, on the WD20K (100) V1 dataset, the best qualifier-aware model achieves an absolute gain of more than 6% in Hits@10 compared to the best triple-only baseline.

Table 2: Performance comparison on Semi-Inductive (SI) datasets.

The benefits extend to the Semi-Inductive setting as well. Table 2 illustrates that QBLP significantly improves MRR and Hits@X metrics when qualifiers are present, even in sparse environments like WD20K (25) SI. The research found that even a single qualifier pair is often enough to significantly improve a model's prediction rank.

Conclusion

This work highlights that hyper-relational context is not just extra data but a vital signal for inductive reasoning. By moving beyond simple triples, AI systems can better generalize to new information, a crucial step for maintaining up-to-date Knowledge Graphs in dynamic real-world environments. Future directions include applying these methods to specialized domains like life sciences, where hyper-relational context such as dosage and conditions is vital for reasoning about new entities.

Summary updated

Abstract

For many years, link prediction on knowledge. graphs has been a purely transductive task, not allowing for reasoning on unseen entities. Recently, increasing efforts are put into exploring semi- and fully inductive scenarios, enabling inference over unseen and emerging entities. Still, all these approaches only consider triple-based KGs, whereas their richer counterparts, hyper-relational KGs (e.g., Wikidata), have not yet been properly studied. In this work, we classify different inductive settings and study the benefits of employing hyper-relational KGs on a wide range of semi- and fully inductive link prediction tasks powered by recent advancements in graph neural networks. Our experiments on a novel set of benchmarks show that qualifiers over typed edges can lead to performance improvements of 6% of absolute gains (for the Hits@10 metric) compared to triple-only baselines. Our code is available at https://github.com/mali-git/hyper_relational_ilp.
BibTeX
@inproceedings{ali2022improving,
  author = {Mehdi Ali and Max Berrendorf and Mikhail Galkin and Veronika Thost and Tengfei Ma and Volker Tresp and Jens Lehmann},
  title = {{Improving Inductive Link Prediction Using Hyper-Relational Facts (Extended Abstract)}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.24963/ijcai.2022/731},
}
Figure