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

Hyperbolic Hierarchy-Aware Knowledge Graph Embedding for Link Prediction

Zhe Pan, Peng Wang

Introduction

Knowledge Graph Embedding (KGE) is a fundamental task in representation learning, aimed at mapping entities and relations into low-dimensional vector spaces to predict missing links. While traditional models like TransE and RotatE rely on Euclidean geometry, they often struggle with the inherent hierarchical structures found in real-world Knowledge Graphs (KGs). In a typical taxonomy, the number of nodes increases exponentially with depth, a property that Euclidean space—where volume grows only polynomially with radius—cannot efficiently accommodate without significant distortion.

Hierarchical structure of a Knowledge Graph, illustrating the exponential growth of nodes at deeper levels.

Hyperbolic space, particularly the Poincaré Ball model, offers a more natural fit for tree-like structures due to its exponential volume growth. However, existing hyperbolic KGE models encounter a "boundary problem": as entities are pushed toward the edge of the ball to represent deeper hierarchy levels, they become extremely crowded. This leads to numerical instability and floating-point precision errors during optimization.

The HBE Framework

To address these limitations, this paper introduces HBE (Hyperbolic extended Poincaré Ball Embedding). HBE incorporates two primary innovations to improve the representation of hierarchical data.

1. Extended Poincaré Ball

The authors propose an "extended" version of the Poincaré Ball. In standard models, the radius is restricted to the range $[0, 1)$. HBE transforms this radius $r$ using the mapping $2\tanh^{-1}(r)$, effectively stretching the boundary to infinity. This transformation "un-crowds" entities near the edge, providing the numerical stability required to represent high-depth hierarchies without precision loss.

2. Polar Coordinate System

Instead of using standard Cartesian coordinates, HBE embeds entities and relations using a polar coordinate system defined by radius and angle:

  • Radius ($d_{rB}$): This component explicitly captures the hierarchical level or depth of an entity within the tree structure.
  • Angle ($d_{ heta B}$): This component distinguishes between entities at the same hierarchical level and handles logical patterns such as symmetry or inversion, similar to the mechanisms used in the RotatE model.

The final distance score is calculated as a hybrid weighted sum: $d_B = \alpha d_{rB} + \beta d_{ heta B}$. Optimization is performed using Riemannian Stochastic Gradient Descent (RSGD) for the radial components and standard Euclidean methods (like Adam) for the angular components.

Experimental Evaluation

The model was evaluated on two benchmark datasets with varying degrees of hierarchy:

  • WN18RR: A subset of WordNet characterized by a highly hierarchical, tree-like structure.
  • FB15k-237: A subset of Freebase containing complex, non-hierarchical relations and higher node degrees.
Comparison of 3D embeddings for RotatE, HyperKG, and HBE, demonstrating how HBE better distributes entities across the space.

As shown in the visualization of the embedding spaces, HBE (c) achieves a more balanced distribution of entities compared to Euclidean models like RotatE (a) or standard hyperbolic models like HyperKG (b). This distribution is key to its superior performance on hierarchical tasks.

Key Results and Insights

HBE achieved state-of-the-art results on the WN18RR dataset with a Mean Reciprocal Rank (MRR) of 0.488, outperforming both previous hyperbolic models (e.g., MuRP at 0.481) and Euclidean models (e.g., RotatE at 0.476). On the less-hierarchical FB15k-237, HBE remained competitive with RotatE (MRR 0.336 vs. 0.338), demonstrating that its specialization for hierarchies does not come at the cost of general graph performance.

Ablation studies confirmed that both the extended boundary and the polar coordinate system are essential. Removing either component led to a significant drop in predictive accuracy. Furthermore, the researchers observed that as embedding dimensions increase, the angular component becomes more dominant, suggesting that high-dimensional Euclidean models may implicitly capture some hierarchical information that hyperbolic models represent more efficiently in lower dimensions.

Conclusion

HBE provides a robust solution to the boundary crowding problem in hyperbolic KGE. By combining an extended Poincaré Ball with a polar coordinate system, it effectively separates hierarchical depth from relational logic. While highly effective for tree-like data, future work will focus on adapting these techniques for graphs with overlapping, non-tree-like hierarchies and scaling the model for industrial-sized knowledge bases.

Summary updated

BibTeX
@inproceedings{pan2021hyperbolic,
  author = {Zhe Pan and Peng Wang},
  title = {{Hyperbolic Hierarchy-Aware Knowledge Graph Embedding for Link Prediction}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2021},
  doi = {10.18653/v1/2021.findings-emnlp.251},
}
Figure