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

HyperKG: Hyperbolic Knowledge Graph Embeddings for Knowledge Base Completion

Prodromos Kolyvakis, Alexandros Kalousis, Dimitris Kiritsis

Abstract

Learning embeddings of entities and relations in knowledge bases (KBs) is essential for discovering hidden patterns and completing missing information. This work introduces HyperKG, a translational model that operates within hyperbolic space—specifically the Poincaré ball—to better reflect the topological properties of KBs. By exploiting the exponential growth of space near the hyperbolic boundary, HyperKG naturally captures the hierarchical, tree-like structures common in scale-free knowledge graphs. Our empirical results demonstrate that hyperbolic geometry significantly narrows the performance gap between simple translational models and more complex bilinear models, nearly doubling performance on key benchmarks like WN18RR.

Introduction: The Geometric Bottleneck

Knowledge Bases like WordNet and Freebase are massive repositories of facts, but they are often incomplete. Knowledge Base Completion (KBC) aims to predict missing links by mapping entities and relations into continuous vector spaces. Traditionally, models fall into two categories: translational models (e.g., TransE), which are geometrically intuitive but limited in expressiveness, and bilinear models (e.g., ComplEx), which are powerful but lack clear geometric interpretation.

A major hurdle for these models is that KBs are fundamentally "scale-free" and hierarchical. Euclidean space is "flat" and lacks the necessary "room" at its edges to represent branching tree structures without significant distortion. HyperKG addresses this by moving embeddings into hyperbolic space, where the available volume grows exponentially with the distance from the origin.

Power-law distributions of node degrees in WN18RR and FB15k-237 compared to word frequencies in Moby Dick, justifying the use of hyperbolic space.

Methodology: HyperKG

HyperKG embeds entities and relations in the Poincaré-ball model of hyperbolic geometry. The model introduces several key technical innovations to handle the unique properties of KBs:

  • Hyperbolic Translation: Instead of the Euclidean $s + r \approx o$, HyperKG defines an implausibility score based on the hyperbolic distance between a composite entity vector and a relation vector.
  • Non-Commutativity: To represent asymmetric relations (e.g., "Paris is_in France"), the model uses a circular permutation matrix ($\Pi_\beta$) to project the object embedding before the translation operation.
  • Tree-focused Regularization: A novel regularization scheme pushes embeddings toward the boundary of the Poincaré ball. This mimics the growth of nodes in a tree, where the vast majority of nodes reside in the "leaves" near the boundary.
  • Riemannian Optimization: Since standard gradient descent is designed for flat manifolds, HyperKG utilizes Riemannian Stochastic Gradient Descent (RSGD) to ensure embeddings remain within the unit ball.
Visualization of the Poincaré ball showing hyperbolic translations and the circular permutation of entity embeddings.

Experimental Results

We evaluated HyperKG on standard benchmarks WN18RR and FB15k-237, as well as new Wikidata-derived datasets (WD and WD++) designed to test logical rule consistency.

Key Findings:

  • Performance Leap: On WN18RR, HyperKG achieved a Mean Reciprocal Rank (MRR) of 0.41, nearly doubling the 0.22 score of the Euclidean TransE model. This performance is competitive with complex bilinear models like ComplEx (0.44).
  • State-of-the-Art on FB15k-237: HyperKG achieved an MRR of 0.28, outperforming standard bilinear models (0.24) on this dataset.
  • Logical Consistency: We proved that HyperKG captures convex relation regions, making it mathematically compatible with a specific family of Datalog rules, ensuring predicted facts are logically consistent.
  • Ablation Study: The tree-like regularizer proved critical; without it, the MRR on WN18RR dropped from 0.41 to 0.30, confirming that utilizing the spacious hyperbolic boundary is essential for hierarchical data.

Conclusion and Future Work

HyperKG demonstrates that the limitations of traditional translational models were not due to the translation concept itself, but rather the constraints of Euclidean geometry. By adopting hyperbolic space, we unlock the ability to represent hierarchical data with minimal distortion. Future research will explore "mixed-curvature" models to simultaneously capture both hierarchical and non-hierarchical relations within the same knowledge graph.

Summary updated

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