Modeling Graphs Beyond Hyperbolic: Graph Neural Networks in Symmetric Positive Definite Matrices

Wei Zhao, Federico Lopez, J. Maxwell Riestenberg, Michael Strube, Diaaeldin Taha, Steve J Trettel

TL;DR

This paper introduces a novel approach to graph representation learning by leveraging the geometric properties of Symmetric Positive Definite (SPD) matrices. By developing graph neural networks (GNNs) that operate within this space, the authors demonstrate significant improvements in handling complex, multi-modal graph structures compared to traditional Euclidean and hyperbolic embeddings.

What Problem Does This Paper Address?

Graph Neural Networks (GNNs) excel at learning representations from graph-structured data. However, their performance is heavily influenced by the geometry of the embedding space used to represent graph nodes. While Euclidean and hyperbolic spaces are well-suited for graphs with uniform structures (like grids or trees, respectively), real-world graphs often exhibit a mix of these features. This mismatch leads to distortion and suboptimal performance. The paper addresses this by exploring a more sophisticated geometric space, the Riemannian symmetric space of SPD matrices, which offers a richer structure to accommodate diverse graph topologies.

Methods

The core contribution is the development of GNNs that operate within the SPD space. This involves:

  • SPD Gyrocalculus: The authors utilize and extend "gyrocalculus" tools, which provide analogues of vector space operations (like addition and subtraction) within the SPD manifold.
  • SPD4GNNs Library: They developed an innovative library that implements the building blocks of five popular GNN architectures (GCN, GAT, Cheb, SGC, GIN) to work within the SPD space.
  • Tangent Space Operations: Calculations are often performed in the tangent space (a Euclidean space) of the SPD manifold, using Riemannian exponential and logarithm maps to move between the two. This allows for leveraging existing GNN components while adapting them to the SPD geometry.
  • Feature Transformation and Propagation: Novel methods are introduced for transforming input features into the SPD space and for propagating information across nodes within this manifold, often involving matrix operations and specialized non-linearities.

Datasets

The paper evaluates their proposed methods on several benchmark datasets for both node and graph classification tasks:

  • Node Classification: Disease, Airport, Pubmed, Citeseer, and Cora.
  • Graph Classification: ENZYMES, PROTEINS, COX2, and AIDS.

These datasets are chosen to represent a variety of graph structures and complexities.

Key Insights and Ideas

  • SPD as a Unified Geometry: The SPD space, with its rich geometry, can effectively embed graphs with diverse and mixed topological features, overcoming the limitations of purely Euclidean or hyperbolic spaces.
  • Geometry-Graph Topology Alignment: The performance of GNNs is strongly tied to how well the embedding space's geometry aligns with the graph's inherent structure. SPD offers a more flexible alignment for complex graphs.
  • Trade-offs in Geometric Spaces: While hyperbolic spaces are efficient for tree-like graphs, they struggle with grid-like structures. SPD, by contrast, can handle both, albeit with potentially higher computational costs.
  • SPD's Advantage in Mixed Structures: SPD demonstrates superior performance on datasets with multi-modal structures, suggesting its ability to capture complex relationships that simpler geometries miss.

Key Results

  • Superior Accuracy: GNNs operating in the SPD space consistently outperform their Euclidean and hyperbolic counterparts on complex graph datasets for both node and graph classification tasks. For instance, on datasets with $\delta$-hyperbolicity greater than 1, SPD3 achieved the best accuracy in most cases.
  • Handling Mixed Curvature: SPD significantly outperforms hyperbolic space on the AIDS dataset, which is tree-like but has less concentrated hyperbolicity constants, suggesting SPD's flexibility in handling variations.
  • Computational Cost: Training GNNs in SPD takes longer than in hyperbolic or Euclidean spaces, roughly doubling or quadrupling the training time compared to hyperbolic or Euclidean spaces, respectively. This is attributed to the need for eigendecompositions.
  • Classifier Importance: The choice of classifier is crucial for SPD GNNs. MM-based classifiers (SVM-MM and NC-MM) often outperform LINEAR-XE, indicating that advanced classification methods can be effectively integrated with SPD embeddings.

Limitations and Future Work

  • Computational Overhead: The increased training time for SPD models is a notable limitation. Future work could focus on optimizing these computations.
  • Classifier Design: Determining optimal classifiers for SPD remains an active area of research. The paper suggests that further development in this area could lead to even greater performance gains.
  • Interpretability: Understanding how SPD embeddings capture graph topology and leverage geometric features for tasks is an important avenue for future research. Quantitative measures to compare learned embeddings with graph topology are needed.
  • Numerical Stability: While the paper addresses numerical issues like repeated eigenvalues and non-positive definiteness, further exploration into robust SPD operations is beneficial.

Summary updated

BibTeX
@inproceedings{zhao2023modeling,
  author = {Wei Zhao and Federico Lopez and J. Maxwell Riestenberg and Michael Strube and Diaaeldin Taha and Steve J Trettel},
  title = {{Modeling Graphs Beyond Hyperbolic: Graph Neural Networks in Symmetric Positive Definite Matrices}},
  booktitle = {Joint European Conference on Machine Learning and Knowledge Discovery in Databases},
  year = {2023},
  url = {https://openreview.net/forum?id=0ehBxRpVaV},
}
Figure