ICML 2025

Beyond Message Passing: Neural Graph Pattern Machine

Zehong Wang, Zheyuan Zhang, Tianyi Ma, Nitesh V. Chawla, Chuxu Zhang, Yanfang Ye

Main figure for Beyond Message Passing: Neural Graph Pattern Machine

Abstract

Graph learning tasks often hinge on identifying key substructure patterns -- such as triadic closures in social networks or benzene rings in molecular graphs -- that underpin downstream performance. However, most existing graph neural networks (GNNs) rely on message passing, which aggregates local neighborhood information iteratively and struggles to explicitly capture such fundamental motifs, like triangles, k-cliques, and rings. This limitation hinders both expressiveness and long-range dependency modeling. In this paper, we introduce the Neural Graph Pattern Machine (GPM), a novel framework that bypasses message passing by learning directly from graph substructures. GPM efficiently extracts, encodes, and prioritizes task-relevant graph patterns, offering greater expressivity and improved ability to capture long-range dependencies. Empirical evaluations across four standard tasks -- node classification, link prediction, graph classification, and graph regression -- demonstrate that GPM outperforms state-of-the-art baselines. Further analysis reveals that GPM exhibits strong out-of-distribution generalization, desirable scalability, and enhanced interpretability. Code and datasets are available at: https://github.com/Zehong-Wang/GPM.

Proposed method: GPM

Benchmark Results

Tested on 6 datasets 10 baseline values reported too low

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

Classic

#ModelAccuracy ↑Paper
1
GCN
actual #1 vs paper #193 192 places worse
0.9302 ±0.0011
best reported
actual #1 vs paper #193 192 places worse
paper 0.7747 ±0.0085
paper 0.7747 ±0.0085 Δ at pub 0.1555
2
RSE + RGCN (70b)
0.8852 ±0.0019
3
LEMP+T
0.8825
9
SAGE
0.8771
12
APPNP
actual #12 vs paper #144 132 places worse
0.8754
best reported
actual #12 vs paper #144 132 places worse
paper 0.7887 ±0.0011
31
GAT
actual #31 vs paper #209 178 places worse
0.8533
best reported
actual #31 vs paper #209 178 places worse
paper 0.7691 ±0.0082
paper 0.7691 ±0.0082 Δ at pub 0.0631 Δ today 0.0842
37
VCR-Graphormer
actual #37 vs paper #186 149 places worse
0.8432 ±0.0001
best reported
actual #37 vs paper #186 149 places worse
paper 0.7769 ±0.0033
48
NAGphormer
actual #48 vs paper #204 156 places worse
0.8341 ±0.0034
best reported
actual #48 vs paper #204 156 places worse
paper 0.7716 ±0.0072
paper 0.7716 ±0.0072 Δ at pub 0.0625
58
GPRGNN
actual #58 vs paper #171 113 places worse
0.8258 ±0.0089
best reported
actual #58 vs paper #171 113 places worse
paper 0.7812 ±0.0023
paper 0.7812 ±0.0023 Δ at pub 0.0446
74
NodeFormer
actual #74 vs paper #236 162 places worse
0.8103 ±0.0094
best reported
actual #74 vs paper #236 162 places worse
paper 0.7473 ±0.0094
paper 0.7473 ±0.0094 Δ at pub 0.0630
91
GPM
0.8019 ±0.0041
This paper
120
GraphGPS
actual #120 vs paper #150 30 places worse
0.7926 ±0.0057
best reported
actual #120 vs paper #150 30 places worse
paper 0.7866 ±0.0049

Difference within reported uncertainty; not counted as underperformance.

paper 0.7866 ±0.0049 Δ at pub 0.0060
134
OrderedGNN
0.7901 ±0.0068
This paper
159
SAN
0.7846 ±0.0099
This paper
171
RUM
0.7820 ±0.0029
This paper
172
GCFormer
0.7812 ±0.0050
This paper
175
RAW-GNN
0.7801 ±0.0058
This paper
176
GOAT
actual #176 vs paper #207 31 places worse
0.7796 ±0.0063
best reported
actual #176 vs paper #207 31 places worse
paper 0.7700 ±0.0077

Difference within reported uncertainty; not counted as underperformance.

paper 0.7700 ±0.0077 Δ today 0.0096
237
MLP
0.7469 ±0.0085
#ModelMAE ↓Paper
1
TIGT
0.0140 ±0.0010
2
FloydNet
0.0160
3
GSSC
0.0190 ±0.0010
22
Graphormer
actual #22 vs paper #22
0.0250 ±0.0040
actual #22 vs paper #22
paper 0.0250 ±0.0040
paper 0.0250 ±0.0040 Δ at pub 0.0270
41
GNN-AK+
0.0340 ±0.0070
This paper
42
Graph ViT
0.0350 ±0.0050
This paper
44
CRaWl
0.0360 ±0.0050
This paper
45
SAT
0.0360 ±0.0020
This paper
47
AgentNet
0.0400 ±0.0060
This paper
59
AWE
0.0590 ±0.0050
This paper
62
GPM
0.0640 ±0.0040
This paper
63
PNA
actual #63 vs paper #63
0.0670 ±0.0090
actual #63 vs paper #63
paper 0.0670 ±0.0090
paper 0.0670 ±0.0090 Δ at pub 0.1210
69
GIN
0.0880 ±0.0020
This paper
79
GCN
0.1130 ±0.0020

TU Dortmund

#ModelAccuracy ↑Paper
1
WL-MLP
0.9792
2
MSH-GNN
0.9640 ±0.0070
3
CoCN
0.8722 ±0.0013
21
SAN
actual #21 vs paper #257 236 places worse
0.8273 ±0.0192
best reported
actual #21 vs paper #257 236 places worse
paper 0.7445 ±0.0246
paper 0.7445 ±0.0246 Δ today 0.0828
23
GCN
0.8260 ±0.0220
30
GIN
actual #30 vs paper #101 71 places worse
0.8220 ±0.0210
best reported
actual #30 vs paper #101 71 places worse
paper 0.8059 ±0.0027

Difference within reported uncertainty; not counted as underperformance.

paper 0.8059 ±0.0027 Δ at pub 0.0161
38
Graphormer
actual #38 vs paper #164 126 places worse
0.8180 ±0.0224
best reported
actual #38 vs paper #164 126 places worse
paper 0.7882 ±0.0121

Difference within reported uncertainty; not counted as underperformance.

paper 0.7882 ±0.0121 Δ at pub 0.0298
93
GMT
actual #93 vs paper #161 68 places worse
0.8074 ±0.0054
best reported
actual #93 vs paper #161 68 places worse
paper 0.7894 ±0.0044
paper 0.7894 ±0.0044 Δ at pub 0.0180 Δ today 0.0180
101
SAT
actual #101 vs paper #172 71 places worse
0.8060 ±0.0060
best reported
actual #101 vs paper #172 71 places worse
paper 0.7835 ±0.0085
paper 0.7835 ±0.0085 Δ at pub 0.0225
151
MLP
0.7920 ±0.0240
165
Graph ViT
0.7879 ±0.0074
This paper
195
GPS
0.7741 ±0.0056
This paper
196
GNN-AK+
0.7735 ±0.0093
This paper
199
AgentNet
0.7730 ±0.0198
This paper
203
CRaWl
0.7717 ±0.0078
This paper
241
RUM
0.7550 ±0.0058
This paper
254
PNA
actual #254 vs paper #254
0.7473 ±0.0109
actual #254 vs paper #254
paper 0.7473 ±0.0109
paper 0.7473 ±0.0109 Δ at pub 0.1513
265
AWE
actual #265 vs paper #265
0.7393 ±0.0194
actual #265 vs paper #265
paper 0.7393 ±0.0194

Improvement within reported uncertainty; not highlighted.

paper 0.7393 ±0.0194 Δ at pub 0.0003
274
DGK
actual #274 vs paper #275 1 place worse
0.7310 ±0.0030
best reported
actual #274 vs paper #275 1 place worse
paper 0.7309 ±0.0025

Difference within reported uncertainty; not counted as underperformance.

paper 0.7309 ±0.0025 Δ at pub 0.0001 Δ today 0.0001

OGB

#ModelHits@50 ↑Paper
1
PROXI
0.7650 ±0.0027
2
OGB Leader
0.7129 ±0.0018
3
GIDN
0.7096 ±0.0055
9
GCN
actual #9 vs paper #91 82 places worse
0.6621 ±0.0033
best reported
actual #9 vs paper #91 82 places worse
paper 0.4475 ±0.0107
paper 0.4475 ±0.0107 Δ at pub 0.2146
28
SAGE
0.5944 ±0.0137
66
GPM
0.4970 ±0.0059
This paper
73
LLP
0.4910 ±0.0057
This paper
81
RUM
0.4819 ±0.0094
This paper
84
NAGphormer
0.4756 ±0.0052
This paper
87
NodeFormer
0.4656 ±0.0062
This paper
94
MLP
0.4438 ±0.0347

GNNBenchmark

#ModelAccuracy ↑Paper
32
GPM
1.0000
This paper
8
GCN
actual #8 vs paper #72 64 places worse
1.0000
best reported
actual #8 vs paper #72 64 places worse
paper 0.1000
best at pub: GNNBenchmark (JMLR 2023)
paper 0.1000 Δ at pub 0.9000
31
Graph ViT
1.0000
This paper
19
ESC-GNN
1.0000
This paper
1
PPGN
1.0000
2
RW-AgentNet
1.0000
3
AgentNet
1.0000
35
GraphSAGE
0.9993 ±0.0047
36
GatedGCN
actual #36 vs paper #72 36 places worse
0.9960 ±0.0108
best reported
actual #36 vs paper #72 36 places worse
paper 0.1000
best at pub: GNNBenchmark (JMLR 2023)
paper 0.1000 Δ at pub 0.8960
49
3-GNN
0.9570
This paper
87
GraphTrans
0.1000
This paper

LINKX Benchmarks

#ModelROC-AUC ↑Paper
1
GPM
0.6726 ±0.0022
This paper
2
NodeFormer
0.6640 ±0.0070
This paper
3
OrderedGNN
0.6612 ±0.0075
This paper
4
APPNP
0.6610 ±0.0060
This paper
5
NAGphormer
0.6554 ±0.0057
This paper
6
GOAT
0.6531 ±0.0024
This paper
7
VCR-Graphormer
0.6528 ±0.0051
This paper
8
GCFormer
0.6516 ±0.0033
This paper
9
RAW-GNN
0.6511 ±0.0064
This paper
10
SAN
0.6429 ±0.0035
This paper
11
RUM
0.6425 ±0.0062
This paper
12
GPRGNN
0.6320 ±0.0084
This paper
13
GCN
0.6270 ±0.0070
This paper
14
GAT
0.6170 ±0.0080
This paper
15
GraphGPS
0.6056 ±0.0062
This paper
SOTA performance (not significantly different from the best) Proposed method (this paper) Baseline / comparison (this paper) Global context (other papers) Best at pub — reported result worse than the best known when published (best reported in green) Best at pub — reported value improved over the best known when published Best today — OK at publication; today's leaderboard best is elsewhere