Processing large-scale Graphs with G-Signatures

Lukas Gruber, Bernhard Schäfl, Johannes Brandstetter, Sepp Hochreiter

TL;DR

Traditional Graph Neural Networks (GNNs) struggle with global graph tasks due to local message-passing bottlenecks like over-smoothing and over-squashing. G-Signatures sidesteps message passing entirely by converting graph structure and node attributes into latent continuous paths and processing them globally via learnable randomized path signatures. This architecture achieves state-of-the-art accuracy on global classification and long-range regression tasks while requiring only a fraction of the memory and compute of Graph Transformers.

What Problem Does This Paper Address?

Standard Message Passing Neural Networks (MPNNs) update node representations by iteratively aggregating information from immediate neighbors. This design suffers from two fundamental theoretical pathologies:

  1. Over-smoothing: Stacking multiple layers causes node features across the graph to converge to similar representations, destroying local distinctions.
  2. Over-squashing: When information must propagate across long graph distances, an exponential amount of neighborhood information is compressed into fixed-size node vectors, creating an information bottleneck.

While Graph Transformers and Gated Graph ConvNets mitigate these issues, their attention mechanisms are computationally heavy and scale poorly on large graphs. Spectral methods (like eigendecompositions of graph Laplacians) also become prohibitively slow. The authors address the need for an architecture that can capture global, long-range graph topology efficiently without relying on local message passing.

Methods

G-Signatures follows an Encode–Process–Decode paradigm based on the mathematical theory of rough path signatures:

[Graph (Nodes + Adjacency)] 
         │
         ▼  (Graph Conversion & SVD/Eigen Edge Embedding)
[Latent Path Matrix X ∈ R^{h1 × h2}] 
         │
         ▼  (Latent Space Path Mapping / Bidirectional Randomized Signatures)
[Transformed Latent Matrix X' ∈ R^{h1 × h2}] 
         │
         ▼  (Decoding MLPs)
[Target Prediction]

1. Graph Conversion

The graph's adjacency matrix $A$ is embedded into node space via an eigendecomposition (or dissimilarity embedding) to yield an edge-embedding matrix $E_A \in \mathbb{R}^{N \times m}$. Concatenating this with node features $G \in \mathbb{R}^{d \times N}$ and projecting them into latent dimensions produces a latent tensor $X \in \mathbb{R}^{h_1 \times h_2}$, interpreted as a continuous path $X: [0, T] \to \mathbb{R}^{h_2}$ sampled across $h_1$ steps.

2. Latent Space Path Mappings (LSPM)

Rather than computing truncated signatures directly (which suffer from combinatorial explosion in terms of dimension), G-Signatures adapts randomized signatures—a dimension-reduction approach inspired by the Johnson–Lindenstrauss lemma.

  • The path is traversed sequentially in a bidirectional fashion across latent steps.
  • Crucially, the projection parameters ($A_i, b_i$) are made learnable via gradient descent rather than remaining fixed random projections.

3. Stability Adjustments

Naive application of randomized signatures to deep learning fails due to signal explosion. The authors introduce three key engineering modifications:

  • Weight Sparsity: Keeping $A_i$ sparse prevents feature dilution (analogous to graph over-smoothing) and maintains linear (rather than quadratic) memory scaling.
  • Variance Scaling: Weights are initialized from $\mathcal{N}(0, 1/k)$ rather than $\mathcal{N}(0, 1)$, scaled to signature dimension $k$.
  • Activation Rescaling: Using a scaled identity activation ($1/h_2$) suppresses runaway activations from double bidirectional summations.

Datasets

The authors evaluate G-Signatures across three diverse domains:

  1. CoMA (Convolutional Mesh Autoencoder): 20,465 3D face mesh graphs (5,023 nodes, 29,990 edges each) categorized into 12 facial expressions (global classification).
  2. Kardar–Parisi–Zhang (KPZ) Equation: A 1D stochastic non-linear PDE evaluated across zero, low, and high Gaussian noise regimes on an equidistant 64-point spatial grid to test node regression on regular topologies.
  3. Estimated Time of Arrival (ETA): Synthetic road network graphs across varying sizes (500, 1,000, and 2,000 nodes) and edge sparsities (0.0, 0.5, and 0.9) predicting shortest travel times between all pairs using Floyd–Warshall ground truth.

Key Insights and Ideas

  • Paths Over Features, Not Over Nodes: Standard path-signature applications in graphs build signatures over local random walks between nodes. G-Signatures flips this: it treats the feature dimensions as the path's time axis while processing all nodes concurrently. This preserves permutation invariance over nodes while allowing the network to incorporate global context in every step.
  • Statistical Moments via Reservoir Computing: Path signatures act as universal non-linear feature representations that summarize statistical moments of a trajectory. Randomized signatures act as a trainable reservoir, extracting high-order relational features across all nodes at once.
  • Immunity to Over-Squashing on Sparse Graphs: When graphs are sparse, message passing must funnel long-distance information through few intermediate bridge nodes. Because G-Signatures bypasses edge hops, it avoids this bottleneck entirely.

Key Results

Task / Metric GGCNs Graph Transformers (GTs) G-Signatures
CoMA Accuracy (%) $76.74 \pm 1.19$ $92.85 \pm 0.42$ $\mathbf{93.74 \pm 0.76}$
CoMA Parameters 104k (4 layers) 913k (10 layers) 430k (1 layer)
CoMA Memory / Time 1,581 MiB / 0.025s 1,875 MiB / 0.101s 1,361 MiB / 0.022s
ETA (2k nodes, 0.9 sparsity) MSE $0.163 \times 10^{-2}$ $0.163 \times 10^{-2}$ $\mathbf{0.012 \times 10^{-2}}$
ETA (2k nodes) Peak Memory 48,905 MiB 55,023 MiB 1,655 MiB
  • Massive Memory Savings: On the 2,000-node ETA task, G-Signatures reduced peak training memory from over 48–55 GB down to ~1.6 GB (~30× reduction).
  • Superior Long-Range Precision: On sparse ETA settings (sparsity = 0.9), G-Signatures outperformed baselines by more than an order of magnitude in MSE.
  • Cross-Domain Generality: On the KPZ PDE benchmark, G-Signatures surpassed both 1D ResNets and Fourier Neural Operators (FNOs) in zero- and low-noise settings (achieving an MSE of $0.068 \times 10^{-3}$ vs. ResNet's $0.075 \times 10^{-3}$).

Limitations and Future Work

  • Homogeneous Graph Restriction: The current graph conversion pipeline assumes that all graphs in a dataset share the same number of nodes and topology. Extending this to variable-sized and heterogeneous graphs (e.g., arbitrary molecular graphs) remains open.
  • Scalar Edge Weights Only: Edge embeddings are derived from scalar connectivity or distance matrices; incorporating multi-dimensional, categorical edge attributes directly into the path representation is left for future work.
  • Single-Axis Path Traversal: Latent paths are currently traversed along one dimension. The authors note that traversing paths along concurrent dimensions could capture richer multi-directional dependencies.

Summary updated

BibTeX
@inproceedings{gruber2024processing,
  author = {Lukas Gruber and Bernhard Schäfl and Johannes Brandstetter and Sepp Hochreiter},
  title = {{Processing large-scale Graphs with G-Signatures}},
  booktitle = {AI4Science @ ICML},
  year = {2024},
  url = {https://openreview.net/forum?id=uTU4yp2Eqc},
}
Figure