Table of Contents
Fetching ...

Adaptive Riemannian Graph Neural Networks

Xudong Wang, Chris Ding, Tongxin Li, Jicong Fan

TL;DR

ARGNN introduces a node-adaptive Riemannian framework for graphs by learning a diagonal metric tensor $\mathbf{G}_i=\text{diag}(\mathbf{g}_i)$ at each node, enabling anisotropic, continuous geometry. A local metric estimator computes $\mathbf{g}_i$ from $(\mathbf{h}_i, \mathbf{a}_i)$, while geometry-aware message passing employs geodesic distances $d_{\mathbf{G}_i}$, geometric modulation $\tau_{ij}$, and geometry-aware attention $\alpha_{ij}$ to update node representations. Stability and expressiveness are ensured via Ricci-flow-inspired regularization and a universal approximation analysis showing the framework subsumes fixed-curvature and product-manifold GNNs as special cases. Theoretical results yield convergence guarantees and efficiency, and experiments across homophilic and heterophilic graphs show ARGNN consistently outperforms state-of-the-art baselines while offering interpretable learned geometries.

Abstract

Graph data often exhibits complex geometric heterogeneity, where structures with varying local curvature, such as tree-like hierarchies and dense communities, coexist within a single network. Existing geometric GNNs, which embed graphs into single fixed-curvature manifolds or discrete product spaces, struggle to capture this diversity. We introduce Adaptive Riemannian Graph Neural Networks (ARGNN), a novel framework that learns a continuous and anisotropic Riemannian metric tensor field over the graph. It allows each node to determine its optimal local geometry, enabling the model to fluidly adapt to the graph's structural landscape. Our core innovation is an efficient parameterization of the node-wise metric tensor, specializing to a learnable diagonal form that captures directional geometric information while maintaining computational tractability. To ensure geometric regularity and stable training, we integrate a Ricci flow-inspired regularization that smooths the learned manifold. Theoretically, we establish the rigorous geometric evolution convergence guarantee for ARGNN and provide a continuous generalization that unifies prior fixed or mixed-curvature GNNs. Empirically, our method demonstrates superior performance on both homophilic and heterophilic benchmark datasets with the ability to capture diverse structures adaptively. Moreover, the learned geometries both offer interpretable insights into the underlying graph structure and empirically corroborate our theoretical analysis.

Adaptive Riemannian Graph Neural Networks

TL;DR

ARGNN introduces a node-adaptive Riemannian framework for graphs by learning a diagonal metric tensor at each node, enabling anisotropic, continuous geometry. A local metric estimator computes from , while geometry-aware message passing employs geodesic distances , geometric modulation , and geometry-aware attention to update node representations. Stability and expressiveness are ensured via Ricci-flow-inspired regularization and a universal approximation analysis showing the framework subsumes fixed-curvature and product-manifold GNNs as special cases. Theoretical results yield convergence guarantees and efficiency, and experiments across homophilic and heterophilic graphs show ARGNN consistently outperforms state-of-the-art baselines while offering interpretable learned geometries.

Abstract

Graph data often exhibits complex geometric heterogeneity, where structures with varying local curvature, such as tree-like hierarchies and dense communities, coexist within a single network. Existing geometric GNNs, which embed graphs into single fixed-curvature manifolds or discrete product spaces, struggle to capture this diversity. We introduce Adaptive Riemannian Graph Neural Networks (ARGNN), a novel framework that learns a continuous and anisotropic Riemannian metric tensor field over the graph. It allows each node to determine its optimal local geometry, enabling the model to fluidly adapt to the graph's structural landscape. Our core innovation is an efficient parameterization of the node-wise metric tensor, specializing to a learnable diagonal form that captures directional geometric information while maintaining computational tractability. To ensure geometric regularity and stable training, we integrate a Ricci flow-inspired regularization that smooths the learned manifold. Theoretically, we establish the rigorous geometric evolution convergence guarantee for ARGNN and provide a continuous generalization that unifies prior fixed or mixed-curvature GNNs. Empirically, our method demonstrates superior performance on both homophilic and heterophilic benchmark datasets with the ability to capture diverse structures adaptively. Moreover, the learned geometries both offer interpretable insights into the underlying graph structure and empirically corroborate our theoretical analysis.

Paper Structure

This paper contains 84 sections, 20 theorems, 93 equations, 13 figures, 19 tables, 3 algorithms.

Key Result

Theorem 1

Consider ARGNN with $L$ layers, hidden dimension $d$, and regularization weights $\alpha, \beta$. Under mild regularity conditions, the learned metric tensors $\{\mathbf{G}_i\}_{i \in \mathcal{V}}$ converge to a stationary point with: where $\mu_{\text{eff}}$ is the effective curvature of the loss landscape. Optimal regularization hyperparameters satisfy: where $\mathcal{H} \in (0,1]$ is the dat

Figures (13)

  • Figure 1: Geometric heterogeneity in Wisconsin network.Left: raw graph topology coloured by class. Right: 3-D t-SNE of node features. The translucent hull is coloured by the magnitude of discrete mean curvature (violet$\!\to\!$ flat, yellow$\!\to\!$ strongly curved), showing that curvature varies across the Riemannian manifold.
  • Figure 2: Diagram of our proposed ARGNN, which jointly learns continuous, anisotropic metric tensor fields $\{\mathbf{G}_i\!\in\!\mathcal{S}_{++}^d\}_{i \in \mathcal{V}}$ and node embeddings $\mathbf{H}=\{\mathbf{h}_i\}_{i \in \mathcal{V}}$. The learned $\mathbf{G}_i$ gives beyond curvature information to depict the geometric diversity.
  • Figure 3: Ablation studies on three datasets. (a) Impact of regularization components, including theoretically optimal $\alpha$, $\beta$ settings v.s. grid search optimal $\alpha^*,\beta^*$(b) Comparison with fixed $\mathbf{G}_i \in \{\mathbf{I},0.5\mathbf{I},2\mathbf{I}\}$ for Euclidean, Hyperbolic and Spherical. Error bars show 95% CI from 10 runs.
  • Figure 4: Geometry learned by ARGNN on Wisconsin. Left: Original graph topology colored by class under the layout from the learned embedding projection to 2-D. Middle: Degree-preserving rewiring based on learned geodesic distances reveals clearer class separation. Right: 3-D t-SNE embedding with curvature visualization shows adaptive geometry, the translucent hull is coloured by the magnitude of the mean curvature (violet$\!\to\!$ flat, yellow$\!\to\!$ strongly curved)
  • Figure 5: Homophily $\mathcal{H}$ vs. learned geometry. Avg. learned curvature across datasets with marker size/colour encodes the mean Neighbour-Relative Metric Dispersion (NRMD)
  • ...and 8 more figures

Theorems & Definitions (46)

  • Theorem 1: Convergence of Adaptive Geometry Learning
  • Proposition 1: Homophily-Aware Constants
  • Theorem 2: Universal Geometric Framework
  • Proposition 2: Complexity Analysis
  • Definition 1: Discrete Riemannian Graph
  • Definition 2: Discrete Geodesic
  • Lemma 1: Positive Definiteness of Diagonal Metrics
  • proof
  • Definition 3: Ollivier-Ricci Curvature
  • Proposition 3: Discrete Ricci Curvature for Diagonal Metrics
  • ...and 36 more