NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Hyperbolic Knowledge Graph Embeddings for Knowledge Base Completion

Prodromos Kolyvakis, Alexandros Kalousis, Dimitris Kiritsis

TL;DR

This paper introduces HyperKG, a novel approach to knowledge base completion that leverages hyperbolic geometry. By embedding knowledge graph entities and relations in a hyperbolic space, HyperKG better captures the inherent hierarchical and scale-free properties of knowledge graphs, significantly closing the performance gap between traditional translational and more complex bilinear models.

What Problem Does This Paper Address?

Knowledge bases (KBs) are vast repositories of structured information, but they are often incomplete. Knowledge base completion (KBC) aims to predict missing facts. A common approach is to learn vector embeddings for entities and relations, allowing models to infer plausible connections. While many models exist, translational models, which represent relations as vector translations, have historically lagged behind more complex bilinear models in performance. This gap suggests that existing models might not be fully capturing the underlying structure of KBs. The authors hypothesize that the geometric space used for embeddings plays a crucial role, and that the power-law degree distributions common in KBs are naturally suited to hyperbolic geometry.

Methods

The core contribution is the HyperKG model, which extends translational models by embedding entities and relations into the Poincaré-ball model of hyperbolic geometry.

Key methodological aspects include:

  • Hyperbolic Embeddings: Entities and relations are represented as vectors within the Poincaré ball, a space where distances naturally reflect hierarchical relationships.
  • Möbius Addition (and its alternative): While the paper initially considers using the Möbius addition (a hyperbolic-specific operation) for composing subject and object embeddings, they empirically find that standard Euclidean addition, combined with a circular permutation matrix applied to the object embedding, performs better. This permutation introduces non-commutativity, crucial for modeling asymmetric relations.
  • Hyperbolic Distance for Implausibility: The implausibility score of a fact is calculated using the hyperbolic distance between the composed subject-object embedding and the relation embedding.
  • Regularization: A novel regularization scheme is proposed that penalizes vectors for being too close to the origin in the Poincaré ball, promoting a "tree-like" structure and implicitly penalizing crowding. This is crucial for stabilizing training and improving generalization in hyperbolic space.
  • Riemannian SGD (RSGD): The optimization process uses Riemannian Stochastic Gradient Descent to handle the curved geometry of the Poincaré ball.

Datasets

The paper evaluates HyperKG on several datasets:

  • WN18RR: A subset of the WordNet dataset, designed to mitigate issues with reversible relations found in earlier benchmarks.
  • FB15k-237: A subset of the Freebase dataset, also curated to address issues with reversible relations.
  • WD and WD++: Two custom datasets created from Wikidata to specifically test the model's ability to capture quasi-chained rules (a subset of Datalog rules). WD focuses on one type of rule, while WD++ includes a second, related rule.

Key Insights and Ideas

  • Geometry Matters: The choice of geometric space for embeddings is not just an implementation detail but fundamentally impacts a model's ability to capture KB structure and achieve high performance. Hyperbolic geometry, with its natural fit for hierarchical data, proves particularly effective.
  • Bridging the Gap: HyperKG demonstrates that the performance limitations of translational models are not inherent but can be overcome by moving to a more suitable geometric space, significantly narrowing the gap with bilinear models.
  • Rule Representation: The hyperbolic space, combined with the proposed methods, allows HyperKG to represent certain types of logical rules (specifically, quasi-chained rules) more effectively, leading to more logically consistent reasoning.
  • Regularization for Hyperbolic Spaces: Standard regularization techniques don't always translate well to hyperbolic geometry. The proposed regularization scheme is vital for stable training and improved performance in the Poincaré ball.

Key Results

  • Performance Improvement: HyperKG achieves significantly better MRR scores on the WN18RR dataset compared to TransE (almost double), demonstrating the benefit of hyperbolic geometry over Euclidean space for translational models.
  • Competitive Performance: On WN18RR, HyperKG performs comparably to other state-of-the-art models. On FB15k-237, it matches the performance of TransE, outperforming DISTMULT and ComplEx.
  • Rule Capturing: On the custom WD and WD++ datasets, HyperKG shows superior performance compared to TransE and ComplEx, indicating its effectiveness in capturing the specific quasi-chained rules.
  • Regularization Benefits: Experiments show that the proposed regularization scheme improves both MRR and Hits@10 scores across datasets.

Limitations and Future Work

  • Hyperparameter Tuning: The paper notes that the small performance gap between TransE and HyperKG on FB15k-237 might be due to less fine-grained hyperparameter tuning for TransE.
  • Möbius vs. Euclidean Addition: While Euclidean addition with permutation was found to be better empirically, the theoretical implications of this choice versus pure Möbius addition warrant further investigation.
  • Hybrid Models: The authors acknowledge recent work on hybrid models that combine Euclidean and hyperbolic spaces, suggesting this as a promising direction for future research.
  • Broader Rule Sets: While HyperKG shows promise for quasi-chained rules, exploring its expressiveness for larger and more complex rule sets (e.g., full Datalog) is a natural next step.

Summary updated

BibTeX
@inproceedings{kolyvakis2020hyperbolic,
  author = {Prodromos Kolyvakis and Alexandros Kalousis and Dimitris Kiritsis},
  title = {{Hyperbolic Knowledge Graph Embeddings for Knowledge Base Completion}},
  booktitle = {ESWC},
  year = {2020},
  url = {https://openreview.net/forum?id=G9pe17Y3vgy},
}
Figure