What Can We Learn from State Space Models for Machine Learning on Graphs?

Yinan Huang, Siqi Miao, Pan Li

Main figure for What Can We Learn from State Space Models for Machine Learning on Graphs?

Abstract

Machine learning on graphs has recently found extensive applications across domains. However, the commonly used Message Passing Neural Networks (MPNNs) suffer from limited expressive power and struggle to capture long-range dependencies. Graph transformers offer a strong alternative due to their global attention mechanism, but they come with great computational overheads, especially for large graphs. In recent years, State Space Models (SSMs) have emerged as a compelling approach to replace full attention in transformers to model sequential data. It blends the strengths of RNNs and CNNs, offering a) efficient computation, b) the ability to capture long-range dependencies, and c) good generalization across sequences of various lengths. However, extending SSMs to graph-structured data presents unique challenges due to the lack of canonical node ordering in graphs. In this work, we propose Graph State Space Convolution (GSSC) as a principled extension of SSMs to graph-structured data. By leveraging global permutation-equivariant set aggregation and factorizable graph kernels that rely on relative node distances as the convolution kernels, GSSC preserves all three advantages of SSMs. We demonstrate the provably stronger expressiveness of GSSC than MPNNs in counting graph substructures and show its effectiveness across 11 real-world, widely used benchmark datasets. GSSC achieves the best results on 6 out of 11 datasets with all significant improvements compared to the state-of-the-art baselines and second-best results on the other 5 datasets. Our findings highlight the potential of GSSC as a powerful and scalable model for graph machine learning. Our code is available at https://github.com/Graph-COM/GSSC.

Proposed method: GSSC

Benchmark Results

Tested on 1 dataset

Tables show presented results in global context (best 3 papers + GCN + MLP).

Classic

#ModelMAE ↓Paper
1
TIGT
0.0140 ±0.0010
2
FloydNet
0.0160
3
GSSC
0.0190 ±0.0010
This paper
12
I^2-GNN
0.0230 ±0.0010
This paper
11
GRIT
0.0230 ±0.0010
This paper
21
SUN
0.0240 ±0.0030
This paper
19
SignNet
0.0240 ±0.0030
This paper
22
Graphormer
actual #22 vs paper #56 34 places worse
0.0250
best reported
actual #22 vs paper #56 34 places worse
paper 0.0520 ±0.0050
31
NGNN
0.0290 ±0.0010
This paper
69
GIN
0.0880 ±0.0020
This paper
78
GAT
0.1110 ±0.0020
This paper
79
GCN
0.1130 ±0.0020
This paper
80
GraphSAGE
0.1260 ±0.0030
SOTA performance (not significantly different from the best) Proposed method (this paper) Baseline / comparison (this paper) Global context (other papers) Best today — OK at publication; today's leaderboard best is elsewhere