Hyperbolic Curvature Graph Neural Network

Menglin Yang, Min Zhou, Lujia Pan, Irwin King

Abstract

The prevalence of tree-like structures, encompassing hierarchical structures and power law distributions, exists extensively in real-world applications, including recommendation systems, ecosystems, financial networks, and social networks. Recently, the exploitation of hyperbolic space for tree-likeness modeling has garnered considerable attention owing to its exponential growth volume. Compared to the flat Euclidean space, the curved hyperbolic space provides a more amenable and embeddable room, especially for datasets exhibiting implicit tree-like architectures. However, the intricate nature of real-world tree-like data presents a considerable challenge, as it frequently displays a heterogeneous composition of tree-like, flat, and circular regions. The direct embedding of such heterogeneous structures into a homogeneous embedding space (i.e., hyperbolic space) inevitably leads to heavy distortions. To mitigate the aforementioned shortage, this study endeavors to explore the curvature between discrete structure and continuous learning space, aiming at encoding the message conveyed by the network topology in the learning process, thereby improving tree-likeness modeling. To the end, a curvature-aware hyperbolic graph convolutional neural network, $\kappa$HGCN, is proposed, which utilizes the curvature to guide message passing and improve long-range propagation. Extensive experiments on node classification and link prediction tasks verify the superiority of the proposal as it consistently outperforms various competitive models by a large margin.

Introduction

Many real-world networks exhibit "tree-like" structures where the number of nodes grows exponentially with depth. Hyperbolic space is a natural candidate for embedding such data because its volume also grows exponentially with radius. However, real-world data is rarely a pure hierarchy; it often contains "flat" regions (like grids) or "circular" regions (cliques and cycles).

Standard Hyperbolic Graph Convolutional Networks (HGCNs) typically assume a homogeneous manifold with constant negative curvature. This creates a "square peg in a round hole" problem: forcing non-tree structures into a rigid hyperbolic space causes significant structural distortion. $\kappa$HGCN addresses this by bridging the gap between discrete graph topology and continuous hyperbolic geometry using discrete Ricci curvature.

The $\kappa$HGCN Framework

The core innovation of $\kappa$HGCN lies in its ability to integrate discrete and continuous curvature learning to adapt to the heterogeneous nature of graph data. The model follows a specific algorithmic flow to transform features from Euclidean space to the hyperbolic manifold and back to tangent spaces for efficient computation.

The $\kappa$HGCN algorithm flow, illustrating the mapping between hyperbolic manifolds and tangent spaces for feature transformation and curvature-based aggregation.

Curvature-Aware Aggregation

Instead of standard mean or attention-based aggregation, $\kappa$HGCN utilizes Ollivier-Ricci Curvature (ORC). In a graph context, ORC measures the overlap between the neighborhoods of two connected nodes. High curvature indicates clusters or cycles, while low (negative) curvature suggests bridges or tree-like branches.

Illustration of how discrete curvature values change between a pure tree structure (left) and a graph with added cycles (right), guiding the message-passing weights.

As shown above, the model uses these values to weight message passing, strengthening signals in highly curved areas and weakening them in tree-like branches to preserve the underlying hierarchy. To handle inconsistencies between graph topology and node features, the authors also introduce CurvAtt, an attention mechanism that combines structural ORC with feature-based similarities.

Curvature-based Homophily Constraint ($\kappa$HC)

To further reduce distortion, a novel loss function ($\kappa$HC) is employed. This constraint pushes the embeddings of linked nodes closer together if their local graph curvature is high. This prevents the natural tendency of hyperbolic space to push nodes apart in regions where the graph is actually dense or circular.

Experimental Evaluation

The model was evaluated on four diverse datasets with varying degrees of "tree-likeness" (measured by the hyperbolicity metric $\delta$):

  • Disease: A highly hierarchical dataset representing disease propagation.
  • Airport: A network of flight routes with a mix of hubs and branches.
  • PubMed & Cora: Standard citation networks that are relatively "flat."

Key Results

  • Node Classification: $\kappa$HGCN significantly outperformed both Euclidean and standard Hyperbolic GNNs. On the Disease dataset, it achieved a 92.3% F1-score, a substantial improvement over the standard HGCN's 74.5%.
  • Link Prediction: The model achieved state-of-the-art results, notably a 98.2% AUC on the Airport dataset, demonstrating its robustness in capturing complex connectivity patterns.
  • Generalization: While standard hyperbolic models often struggle with non-hierarchical data like Cora, $\kappa$HGCN narrows this gap, performing comparably to Euclidean models on flat data while dominating on hierarchical structures.

Conclusion

$\kappa$HGCN effectively mitigates embedding distortion by using discrete curvature as a bridge between graph topology and Riemannian geometry. By guiding message passing and regularizing embeddings based on local structure, it prevents the "over-squashing" of information in hierarchical bottlenecks. Future work may involve the use of Ricci Flow to allow the graph's curvature to evolve dynamically during training, potentially further refining the embedding space for massive-scale graphs.

Summary updated

Abstract

The prevalence of tree-like structures, encompassing hierarchical structures and power law distributions, exists extensively in real-world applications, including recommendation systems, ecosystems, financial networks, social networks, etc. Recently, the exploitation of hyperbolic space for tree-likeness modeling has garnered considerable attention owing to its exponential growth volume. Compared to the flat Euclidean space, the curved hyperbolic space provides a more amenable and embeddable room, especially for datasets exhibiting implicit tree-like architectures. However, the intricate nature of real-world tree-like data presents a considerable challenge, as it frequently displays a heterogeneous composition of tree-like, flat, and circular regions. The direct embedding of such heterogeneous structures into a homogeneous embedding space (i.e., hyperbolic space) inevitably leads to heavy distortions. To mitigate the aforementioned shortage, this study endeavors to explore the curvature between discrete structure and continuous learning space, aiming at encoding the message conveyed by the network topology in the learning process, thereby improving tree-likeness modeling. To the end, a curvature-aware hyperbolic graph convolutional neural network, \{kappa}HGCN, is proposed, which utilizes the curvature to guide message passing and improve long-range propagation. Extensive experiments on node classification and link prediction tasks verify the superiority of the proposal as it consistently outperforms various competitive models by a large margin.
BibTeX
@inproceedings{yang2023hyperbolic,
  author = {Menglin Yang and Min Zhou and Lujia Pan and Irwin King},
  title = {{Hyperbolic Curvature Graph Neural Network}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2023},
  doi = {10.1145/3580305.3599532},
}
Figure