NeurIPS 2023

Fine-grained Expressivity of Graph Neural Networks

Jan Böker, R. Levie, N. Huang, Soledad Villar, Christopher Morris

Main figure for Fine-grained Expressivity of Graph Neural Networks

Abstract

Numerous recent works have analyzed the expressive power of message-passing graph neural networks (MPNNs), primarily utilizing combinatorial techniques such as the $1$-dimensional Weisfeiler--Leman test ($1$-WL) for the graph isomorphism problem. However, the graph isomorphism objective is inherently binary, not giving insights into the degree of similarity between two given graphs. This work resolves this issue by considering continuous extensions of both $1$-WL and MPNNs to graphons. Concretely, we show that the continuous variant of $1$-WL delivers an accurate topological characterization of the expressive power of MPNNs on graphons, revealing which graphs these networks can distinguish and the level of difficulty in separating them. We identify the finest topology where MPNNs separate points and prove a universal approximation theorem. Consequently, we provide a theoretical framework for graph and graphon similarity combining various topological variants of classical characterizations of the $1$-WL. In particular, we characterize the expressive power of MPNNs in terms of the tree distance, which is a graph distance based on the concept of fractional isomorphisms, and substructure counts via tree homomorphisms, showing that these concepts have the same expressive power as the $1$-WL and MPNNs on graphons. Empirically, we validate our theoretical findings by showing that randomly initialized MPNNs, without training, exhibit competitive performance compared to their trained counterparts. Moreover, we evaluate different MPNN architectures based on their ability to preserve graph distances, highlighting the significance of our continuous $1$-WL test in understanding MPNNs' expressivity.

Benchmark Results

Tested on 6 datasets

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

TU Dortmund

#ModelAccuracy ↑Paper
1
MSH-GNN
0.9910 ±0.0030
2
ID-GNN+BEC
0.9830 ±0.0360
3
SupCosine
0.9830 ±0.0250
39
GIN
0.9330 ±0.0290
403
MLP
0.8660 ±0.0495
544
GIN-m (untrained)
0.8256 ±0.0312
This paper
578
GraphConv-m (trained)
0.8162 ±0.0208
This paper
#ModelAccuracy ↑Paper
1
WL-MLP
0.9954
2
GIN
0.9934
3
GCN
0.9727
131
GraphSAGE
0.8200 ±0.0100
287
GIN-m (trained)
0.7861 ±0.0034
This paper
535
GraphConv-m (trained)
0.6328 ±0.0060
This paper
#ModelAccuracy ↑Paper
1
MSH-GNN
0.9410 ±0.0330
2
GRDL
0.8260 ±0.0120
3
GMN
0.8225
32
GIN
0.7880 ±0.0410
149
MLP
0.7600 ±0.0320
341
GIN-m (trained)
0.7351 ±0.0047
This paper
418
GraphConv-m (untrained)
0.7183 ±0.0042
This paper
#ModelAccuracy ↑Paper
1
ID-GNN+BEC
0.8150 ±0.0240
2
GIN+BEC
0.8080 ±0.0330
3
GCN+BEC
0.7990 ±0.0340
4
GCN
0.7980 ±0.0230
133
GIN-m (untrained)
0.7070 ±0.0060
This paper
144
GraphConv-m (untrained)
0.6577 ±0.0132
This paper
#ModelAccuracy ↑Paper
1
GraphSNN
0.7790 ±0.0360
2
SIN
0.7560 ±0.0320
3
CIN
0.7560 ±0.0370
5
GIN
0.7510 ±0.0510
93
GIN-m (untrained)
0.4759 ±0.0095
This paper
111
GraphConv-m (untrained)
0.4329 ±0.0096
This paper
#ModelAccuracy ↑Paper
1
GIN-0
0.9240 ±0.0250
2
GIN-ε
0.9220 ±0.0230
3
DMoN
0.9100 ±0.0100
15
GIN-m (trained)
0.8973 ±0.0037
This paper
39
GraphConv-m (trained)
0.8240 ±0.0019
This paper
49
GCN
0.5653 ±0.0260
SOTA performance (not significantly different from the best) Baseline / comparison (this paper) Global context (other papers)