Improving Inductive Link Prediction Using Hyper-relational Facts

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

Abstract

Knowledge Graph (KG) completion typically assumes a transductive setting where all entities are known at training time. However, real-world KGs are dynamic, requiring inductive link prediction for unseen entities. This paper demonstrates that leveraging hyper-relational facts—triples augmented with contextual qualifiers—significantly enhances inductive performance. By introducing the WD20K benchmark and evaluating qualifier-aware models like QBLP and STARE, we show that qualifiers provide a crucial inductive bias, leading to absolute gains of up to 6% in Hits@10.

Introduction

Knowledge Graphs (KGs) such as Wikidata and Freebase serve as foundational structures for numerous AI applications. Despite their scale, they are often incomplete. Traditional link prediction methods operate in a transductive setting, assuming the set of entities is fixed between training and inference. In contrast, real-world scenarios are inherently dynamic, with new entities (e.g., new movies, actors, or scientific discoveries) appearing constantly.

Inductive link prediction addresses this by predicting relations involving entities not seen during training. While previous work focused on simple (subject, predicate, object) triples, modern KGs are "hyper-relational," containing extra contextual information known as qualifiers. For instance, a statement about a movie nomination might include qualifiers for the specific award category or the year. This research explores how these qualifiers can serve as a powerful inductive bias to improve predictions for novel entities.

Illustration of inductive link prediction scenarios and hyper-relational facts.

Inductive Scenarios and Methodology

The authors distinguish between two primary inductive settings:

  1. Semi-inductive (SI): Predicting a link between a brand-new entity and the existing, known graph.
  2. Fully-inductive (FI): Predicting links within an entirely new subgraph composed of unseen entities.

To handle these settings, the paper adapts two architectures to be qualifier-aware:

  • QBLP (Qualifier-aware BLP): Utilizes a linear projection to encode entity features (derived from text descriptions via Sentence-BERT) and a Transformer-based decoder to process the sequence of triples and their associated qualifiers.
  • STARE: A Graph Neural Network (GNN) encoder that aggregates neighborhood information while explicitly accounting for hyper-relational qualifiers.

Experimental Setup: The WD20K Dataset

To evaluate these models, the researchers introduced WD20K, a benchmark derived from Wikidata. WD20K features various splits (V1 and V2) to test different ratios of training versus inference graph sizes. Crucially, the dataset includes varying "qualifier ratios"—the percentage of statements containing extra contextual pairs—ranging from 25% to 100%, allowing for a granular analysis of how hyper-relational data impacts performance.

Key Results and Insights

The experimental results demonstrate that incorporating qualifiers consistently improves performance across all inductive settings.

Performance comparison of triple-only baselines vs. qualifier-aware models on WD20K (100).

Key findings include:

  • Significant Performance Gains: Qualifier-aware models achieved an absolute improvement of over 6% in Hits@10 compared to triple-only baselines like CompGCN and BLP.
  • Qualifiers as Shortcuts: In inductive settings where an entity's connection history is missing, qualifiers provide vital context. For example, knowing a movie was "nominated for: Best Actor" strongly suggests a "cast member" relation, even if the movie entity itself is new.
  • GNN Advantage in FI: In fully-inductive scenarios where a local subgraph is available, GNN-based models like STARE outperform simpler linear models by reasoning over the local structure of unseen entities.
  • Efficiency of Context: Qualitative analysis showed that even a single qualifier pair can drastically improve the predicted rank of a missing link.

Conclusion

This work highlights the importance of hyper-relational facts in the evolution of Knowledge Graph completion. By leveraging the rich contextual qualifiers already present in modern KGs, models can overcome the limitations of traditional inductive link prediction. Future research may focus on "zero-shot" relations and the inverse task of predicting missing qualifiers themselves.

Summary updated

Abstract

For many years, link prediction on knowledge graphs (KGs) 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{ali2021improving,
  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}},
  booktitle = {ISWC},
  year = {2021},
  doi = {10.1007/978-3-030-88361-4\_5},
}
Figure