Fully Hyperbolic Rotation for Knowledge Graph Embedding

Qiuyu Liang, Weihua Wang, Feilong Bao, Guanglai Gao

Introduction

Knowledge Graphs (KGs) are fundamental structures for representing relational data, often characterized by deep hierarchies (e.g., Europe → Northern Europe → Denmark). While Euclidean embeddings are standard, they struggle to capture these tree-like structures efficiently. Hyperbolic space offers a natural solution due to its exponential volume growth, which mirrors the branching of hierarchical data.

However, existing hyperbolic Knowledge Graph Embedding (KGE) models are often "hybrid." They perform transformations by mapping data from the hyperbolic manifold to a flat Euclidean "tangent space" using logarithmic functions, executing a rotation there, and then mapping back via exponential functions. This "mapping tax" introduces computational complexity, potential numerical instability, and can degrade the structural information that hyperbolic geometry is intended to preserve.

Methodology: Eliminating the Mapping Tax

This paper introduces FHRE (Fully Hyperbolic Rotation Embedding), a novel approach that operates entirely within the Lorentz manifold. By defining rotations directly on the manifold, FHRE avoids the frequent and costly transitions between hyperbolic and tangent spaces.

Comparison of KGE transformation approaches: tangent space rotation (left), hybrid mapping-based rotation (middle), and the proposed fully hyperbolic rotation (right).

The FHRE pipeline consists of four key stages:

  1. Initialization: Entity and relation embeddings are mapped to the hyperbolic manifold exactly once at the start.
  2. Lorentz Rotation: Relations are modeled as linear transformations (rotations) that stay strictly on the Lorentz manifold, moving the "head" entity toward the "tail" entity.
  3. Lorentzian Distance: The model uses Lorentzian distance as its scoring function to evaluate how well a triplet $(h, r, t)$ fits the data.
  4. Efficiency: By removing log/exp mappings, FHRE achieves a lower time complexity ($O(n)$) compared to recent hyperbolic competitors like HYBONET ($O(n^2)$).

Key Insights and Results

FHRE demonstrates superior expressiveness, particularly in low-dimensional settings. In tests with $d=32$, it outperformed Euclidean models by significant margins, such as a 6.1% improvement over Rot2L on the FB15k-237 benchmark. Furthermore, in high-dimensional settings ($d=500$), FHRE achieved state-of-the-art or comparable results while utilizing 21% to 75% fewer parameters than models like Rotate4D and HYBONET.

Visualization of entity embeddings for RotH (left) and FHRE (right). FHRE exhibits significantly tighter clustering of semantically related head and tail entities.

Empirical visualizations using polar plots highlight the model's effectiveness. As shown above, FHRE clusters semantically related entities much more tightly than hybrid models like RotH. This structural preservation translated into record-breaking performance on the CoDEx-s and CoDEx-m datasets, where FHRE improved the Mean Reciprocal Rank (MRR) by 34% over the previous best hyperbolic model.

Conclusion

FHRE proves that staying "fully hyperbolic" is both more efficient and more effective for modeling complex graph hierarchies. While the model is highly competitive, future work may explore hybrid manifolds—interleaving hyperbolic and spherical spaces—to capture an even broader variety of graph structures beyond pure hierarchies.

Summary updated

BibTeX
@inproceedings{liang2024fully,
  author = {Qiuyu Liang and Weihua Wang and Feilong Bao and Guanglai Gao},
  title = {{Fully Hyperbolic Rotation for Knowledge Graph Embedding}},
  booktitle = {ECAI},
  year = {2024},
  doi = {10.3233/faia240668},
}
Figure