Abstract
Learning from graph-structured data is an important task in machine learning and artificial intelligence, for which Graph Neural Networks (GNNs) have shown great promise. Motivated by recent advances in geometric representation learning, we propose a novel GNN architecture for learning representations on Riemannian manifolds with differentiable exponential and logarithmic maps. We develop a scalable algorithm for modeling the structural properties of graphs, comparing Euclidean and hyperbolic geometry. In our experiments, we show that hyperbolic GNNs can lead to substantial improvements on various benchmark datasets.
Introduction
Most standard Graph Neural Networks (GNNs) operate in Euclidean space. While intuitive, Euclidean space has a fundamental limitation: its volume grows polynomially with its radius. However, many real-world graphs—like social networks, biological structures, and the internet—exhibit hierarchical or tree-like structures where the number of nodes grows exponentially with depth.
Trying to cram an exponentially growing tree into a polynomially growing Euclidean space creates "distortion." To compensate, researchers often have to use very high-dimensional vectors. Hyperbolic Graph Neural Networks (HGNNs) address this by moving GNN operations into hyperbolic space, which naturally expands exponentially, providing a much better "geometric fit" for the latent hierarchies found in graph data.
Methods
The authors propose a manifold-agnostic GNN framework. Since standard neural network operations (like matrix multiplication) are defined for Euclidean space, they use two key mathematical tools from Riemannian geometry to bridge the gap:
- Logarithmic Maps ($\log_{x}$): These project a point from the curved manifold onto a "flat" tangent space at a specific point (the origin).
- Exponential Maps ($\exp_{x}$): These project points from the flat tangent space back onto the curved manifold.
The HGNN Pipeline: * Message Passing: Node features are mapped to the tangent space using the $\log$ map. * Linear Transformation: Standard learnable weight matrices ($W$) are applied in this flat tangent space. * Aggregation: Neighboring messages are aggregated. * Manifold Projection: The result is mapped back to the hyperbolic manifold using the $\exp$ map. * Non-linearities: Pointwise activations (like ReLU) are applied in a way that preserves the manifold's boundaries.
The paper compares two hyperbolic models: the Poincaré Ball and the Lorentz Model. The Lorentz model is highlighted as numerically more stable for deep learning because it avoids the division-heavy operations that can cause "exploding" gradients in the Poincaré model.
Experimental Setup
The researchers evaluated their model across three distinct domains:
- Synthetic Structures: Graphs generated using three classic algorithms: Erdős-Rényi (random), Barabási-Albert (scale-free/hierarchical), and Watts-Strogatz (small-world).
- Molecular Structures: The ZINC dataset, containing 250,000 drug-like chemical compounds, used to predict properties like solubility (logP) and drug-likeness (QED).
- Blockchain Transaction Graphs: A large-scale graph of Ethereum transactions used to predict price fluctuations.
Key Results and Insights
The "Low-Dimension" Advantage
Hyperbolic GNNs perform remarkably well with very few dimensions. In synthetic tests, an HGNN with only 3 dimensions can outperform or match Euclidean GNNs with significantly higher dimensionality. This suggests hyperbolic space is a much more efficient "container" for structural information.
As shown in Table 1, on Barabási-Albert graphs (which are highly hierarchical), the Lorentz HGNN achieved a ~94.1% score with just 3 dimensions, while Euclidean GNNs struggled at ~77.2%.
Structural and Numerical Advantages
- Lorentz > Poincaré: While the Poincaré ball is common in literature, the Lorentz model proved superior in almost all experiments due to its numerical stability, making it the better choice for deep, multi-layer architectures.
- Hierarchy as a Proxy for Importance: In hyperbolic space, the distance from the origin often represents a node's position in a hierarchy. In the Ethereum experiment, "whale" nodes (high-wealth accounts) were found to be significantly closer to the origin than average nodes, confirming that the model naturally identifies central, influential actors.
- Inductive Bias Matters: The success of HGNNs on molecules suggests that chemical bonds and molecular skeletons possess inherent hierarchical or structural symmetries that Euclidean models struggle to capture.
Conclusion
Hyperbolic Graph Neural Networks offer a powerful framework for learning from data with latent hierarchies. By leveraging the exponential growth of hyperbolic space, these models achieve state-of-the-art performance in low-dimensional settings where Euclidean models fail. Future work includes exploring trainable curvature to allow the manifold to adapt dynamically to the specific geometry of the input graph.
Summary updated