Improving Hyper-Relational Knowledge Graph Completion

Donghan Yu, Yiming YangarXiv 2021

Abstract

Different from traditional knowledge graphs (KGs) where facts are represented as entity-relation-entity triplets, hyper-relational KGs (HKGs) allow triplets to be associated with additional relation-entity pairs (a.k.a qualifiers) to convey more complex information. How to effectively and efficiently model the triplet-qualifier relationship for prediction tasks such as HKG completion is an open challenge for research. This paper proposes to improve the best-performing method in HKG completion, namely STARE, by introducing two novel revisions: (1) Replacing the computation-heavy graph neural network module with light-weight entity/relation embedding processing techniques for efficiency improvement without sacrificing effectiveness; (2) Adding a qualifier-oriented auxiliary training task for boosting the prediction power of our approach on HKG completion. The proposed approach consistently outperforms STARE in our experiments on three benchmark datasets, with significantly improved computational efficiency.

Introduction

Traditional Knowledge Graphs (KGs) store facts as simple triplets: (Subject, Predicate, Object), such as (Alan Turing, educated at, Princeton). However, real-world information is often more nuanced. Hyper-Relational KGs (HKGs) allow for "qualifiers"—extra pieces of information attached to a triplet. For example: (Alan Turing, educated at, Princeton, (degree, Doctorate), (major, Mathematics)).

The challenge is "Knowledge Graph Completion": predicting missing pieces of these complex statements. Previous top-performing models like STARE used Graph Neural Networks (GNNs) to capture local context. However, GNNs are computationally expensive, scaling poorly as the number of facts in the graph grows. The authors developed Hy-Transformer to maintain high prediction accuracy while drastically reducing the computational overhead.

Methodology

Hy-Transformer improves upon the STARE architecture through two primary innovations:

  1. Replacing the GNN with Light-weight Processing: Instead of using a heavy GNN to update entity and relation embeddings, Hy-Transformer uses Layer Normalization (LN) and Dropout. The authors argue that the Transformer module used later in the pipeline is already expressive enough to capture the necessary context, making the GNN redundant. This shifts the complexity from quadratic to linear.
  2. Qualifier-Oriented Auxiliary Task: Most models only train to predict the missing head or tail of the main triplet. Hy-Transformer introduces a secondary task: predicting missing qualifier entities. This forces the model to better understand the interplay between the core fact and its supporting details, effectively augmenting the training data.
Architecture comparison between STARE (a) and Hy-Transformer (b). Hy-Transformer replaces the GNN with LN and Dropout layers and adds an auxiliary qualifier prediction task.

Experimental Setup

The model was evaluated on three standard HKG benchmarks: JF17K (derived from Freebase), WikiPeople (focused on Wikipedia entities), and WD50K (large-scale Wikidata). The authors also tested variants of WD50K with different "qualifier ratios" (33%, 66%, and 100%) to assess performance under varying levels of complexity.

Key Results and Discussion

Hy-Transformer achieved new state-of-the-art results across all three datasets. Notably, it saw a 7.0% improvement in H@1 on WikiPeople compared to STARE.

One of the most significant findings is that removing the GNN actually improved performance. This suggests that in the presence of a powerful Transformer encoder, the "local context" provided by graph convolutions might just be adding noise or computational bloat. Using Layer Normalization on embeddings provides a crucial inductive bias by re-centering and re-scaling the data, which helps the Transformer converge better.

Efficiency gains are dramatic. On the WikiPeople dataset, Hy-Transformer reached a high Mean Reciprocal Rank (MRR) in 2 hours, while STARE took 10 hours. On WD50K, the gap reached a 10x speedup.

Training efficiency comparison (MRR vs. GPU hours) showing Hy-Transformer achieving superior performance significantly faster than STARE.

Conclusion

Hy-Transformer demonstrates that simplifying architecture by removing redundant GNN layers and adding targeted auxiliary tasks can lead to both better performance and significantly higher efficiency in hyper-relational KG completion. Future work includes scaling the model to the full Wikidata set and incorporating additional context like textual descriptions.

Summary updated

BibTeX
@misc{yu2021improving,
  author = {Donghan Yu and Yiming Yang},
  title = {{Improving Hyper-Relational Knowledge Graph Completion}},
  year = {2021},
  eprint = {2104.08167},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2104.08167},
}
Figure