Are Hyperbolic Representations in Graphs Created Equal?

Max Kochurov, Sergey Ivanov, Eugeny BurnaevarXiv 2020

Abstract

Hyperbolic geometry is frequently proposed as a natural embedding space for hierarchical graph data due to its ability to accommodate exponential growth with low distortion. However, its practical superiority across all graph learning tasks remains a subject of debate. This paper identifies and resolves numerical instabilities in the $\kappa$-Stereographic model at zero curvature ($\kappa = 0$), facilitating stable optimization across spherical, Euclidean, and hyperbolic geometries. Our findings reveal a fundamental trade-off: hyperbolic representations significantly enhance performance in tasks requiring global structural consistency, such as link prediction, whereas Euclidean models often maintain an advantage in local tasks like node classification.

Introduction

Standard Graph Neural Networks (GNNs) typically operate in Euclidean space. While effective, Euclidean geometry struggles to represent hierarchical structures—common in social networks and biological data—without significant distortion. Hyperbolic space, characterized by constant negative curvature, offers a solution. Despite this potential, two major hurdles persist: numerical singularities at zero curvature in unified geometric models and a lack of clarity on which specific tasks truly benefit from non-Euclidean embeddings.

Methods

The authors utilize the $\kappa$-Stereographic model, a framework that unifies geometries by varying the curvature parameter $\kappa$.

The $\kappa$-Stereographic model allows for a continuous transition between spherical ($\kappa > 0$) and hyperbolic ($\kappa < 0$) geometries.

Resolving Numerical Instability

A primary contribution is fixing the instability at $\kappa = 0$. In existing implementations, gradients often become undefined as curvature approaches zero. By applying Taylor expansions to core trigonometric functions (e.g., $\tan_\kappa$, $\sin_\kappa$) near zero, the authors created a numerically stable "bridge." This allows models to start in a Euclidean state and learn the optimal curvature through gradient descent.

Similarity and Optimization

To measure node similarity in non-Euclidean space, the authors adopt the Gromov product, which generalizes similarity based on manifold distances. For optimization, Tangent Space Optimization—reparameterizing the problem into the tangent space at the origin—was found to be the most robust method for learning curvature alongside model weights.

Results and Discussion

The proposed methods were evaluated on standard benchmarks including Cora, PubMed, and CiteSeer.

Global vs. Local Consistency

The study highlights a clear distinction between task types. Link Prediction, which requires a global understanding of the graph's hierarchy and structure, sees substantial gains from hyperbolic geometry. As shown in the results below, the hyperbolic GCN using the Gromov product significantly outperforms the Euclidean baseline.

Link prediction performance (AUC) across three citation networks, demonstrating the significant advantage of hyperbolic representations for global structural tasks.

Conversely, for Node Classification, Euclidean models often performed better. For instance, on the Cora dataset, the Euclidean baseline reached approximately 0.809 accuracy, outperforming hyperbolic variants. This suggests that when labels depend primarily on local neighborhoods, the global hierarchical capacity of hyperbolic space may lead to overfitting or unnecessary complexity.

Conclusion

This work provides a more nuanced view of hyperbolic graph representations. By resolving the numerical issues at zero curvature, the authors enable curvature to be a learnable parameter. The results suggest that practitioners should choose their geometric space based on the nature of the task: hyperbolic for global structural consistency and Euclidean for local neighborhood-based predictions.

Summary updated

BibTeX
@misc{kochurov2020are,
  author = {Max Kochurov and Sergey Ivanov and Eugeny Burnaev},
  title = {{Are Hyperbolic Representations in Graphs Created Equal?}},
  year = {2020},
  eprint = {2007.07698},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2007.07698},
}
Figure