Complex Hyperbolic Knowledge Graph Embeddings with Fast Fourier Transform

Huiru Xiao, Xin Liu, Yangqiu Song, Ginny Y. Wong, Simon See

Abstract

Knowledge Graphs (KGs) often contain complex hierarchical structures that flat Euclidean spaces struggle to represent. While hyperbolic geometry is a natural fit for trees, standard "real" hyperbolic models fall short when dealing with multi-relational data and non-tree hierarchies. This paper introduces a novel framework that uses the Fast Fourier Transform (FFT) as a bridge to map embeddings into complex hyperbolic space, enabling more flexible representations that significantly outperform baselines in low-dimensional settings.

Introduction

Knowledge Graph completion—predicting missing links between entities—depends heavily on the "shape" of the embedding space. Traditional Euclidean spaces are "flat," making them poor at capturing hierarchical relations like hypernymy. While real hyperbolic space (e.g., the Poincaré ball) is effective for perfect trees due to its exponential volume growth, real-world KGs often contain "multitrees" and taxonomies that deviate from strict tree metrics.

Complex hyperbolic space offers variable negative curvature, providing the flexibility needed for these complex hierarchies. However, defining multi-relational transformations (like rotations and reflections) directly in complex hyperbolic space is mathematically grueling and numerically unstable. The authors propose a solution that harnesses the power of complex hyperbolic geometry without the implementation difficulty.

Comparison of embedding spaces and their properties regarding hierarchical patterns and multi-relation properties.

Methodology: The FFT Bridge

The proposed approach uses the Fast Fourier Transform (FFT) to bridge different geometric manifolds, allowing for efficient parameterization of complex-valued relations.

The Spaces and the Bridge

The framework treats the Unit Ball Model (complex hyperbolic) as a "frequency domain" and the Poincaré Ball Model (real hyperbolic) as a "spatial domain." To process a query $(h, r)$, the model takes the head entity embedding $h$ from the complex space and applies an Inverse FFT (IFFT) to map it into a real hyperbolic space.

Transformations and Scoring

Once in the real hyperbolic "spatial" domain, standard, well-understood hyperbolic transformations are applied:

  • RotH: Rotations
  • RefH: Reflections
  • AttH: An attention-based combination of both.

The result is then mapped back into the complex unit ball model using the FFT. The final score against the tail entity is calculated using the Bergman metric. This allows the model to leverage the representation capacity of complex space while using the parameterization ease of real space.

Experimental Evaluation

The models were evaluated on two gold-standard KG benchmarks: WN18RR (highly hierarchical, few relations) and FB15k-237 (complex structure, many relations).

Main Results

The proposed models (FFTRotH, FFTRefH, FFTAttH) consistently outperformed their Euclidean and real-hyperbolic counterparts across both datasets.

Main performance results comparing the proposed FFT-based models against Euclidean and real hyperbolic baselines.

As shown in the results table, FFTRotH achieved an MRR of 0.484 on WN18RR in 32 dimensions, significantly beating standard hyperbolic RotH (0.472) and Euclidean RotatE (0.387). On FB15k-237, FFTAttH led with an MRR of 0.331, outperforming the real-hyperbolic AttH (0.324).

Discussion and Insights

Variable Curvature and Geometry

A key insight is the importance of variable curvature. Unlike the Poincaré ball's constant curvature, complex hyperbolic space adapts to different local structures, making it better suited for the "messy" hierarchies found in real-world data.

Low-Dimensional Supremacy

The model demonstrates remarkable efficiency in low-dimensional settings. In 8 or 16 dimensions, the choice of geometry is critical because there is less capacity to "mimic" structure. On WN18RR in just 8 dimensions, FFTRotH improved over RotH by nearly 100% (0.411 vs 0.220 MRR), proving that complex hyperbolic space is a much more efficient container for hierarchical knowledge.

Conclusion

By using FFT/IFFT as a conversion layer, this framework successfully harnesses the power of complex hyperbolic geometry for multi-relational data. While the gap between models narrows in high-dimensional settings where Euclidean models can leverage sheer capacity, the complex hyperbolic approach remains superior for efficient, low-dimensional representation. Future work may explore more sophisticated neural layers within the complex domain or apply this technique to other non-Euclidean data types like biological networks.

Summary updated

BibTeX
@inproceedings{xiao2022complex,
  author = {Huiru Xiao and Xin Liu and Yangqiu Song and Ginny Y. Wong and Simon See},
  title = {{Complex Hyperbolic Knowledge Graph Embeddings with Fast Fourier Transform}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2022},
  doi = {10.18653/v1/2022.emnlp-main.349},
}
Figure