ICML 2025

Graph Alignment for Benchmarking Graph Neural Networks and Learning Positional Encodings

Adrien Lagesse, Marc Lelarge

Main figure for Graph Alignment for Benchmarking Graph Neural Networks and Learning Positional Encodings

Abstract

We propose a novel benchmarking methodology for graph neural networks (GNNs) based on the graph alignment problem, a combinatorial optimization task that generalizes graph isomorphism by aligning two unlabeled graphs to maximize overlapping edges. We frame this problem as a self-supervised learning task and present several methods to generate graph alignment datasets using synthetic random graphs and real-world graph datasets from multiple domains. For a given graph dataset, we generate a family of graph alignment datasets with increasing difficulty, allowing us to rank the performance of various architectures. Our experiments indicate that anisotropic graph neural networks outperform standard convolutional architectures. To further demonstrate the utility of the graph alignment task, we show its effectiveness for unsupervised GNN pre-training, where the learned node embeddings outperform other positional encodings on three molecular regression tasks and achieve state-of-the-art results on the PCQM4Mv2 dataset with significantly fewer parameters. To support reproducibility and further research, we provide an open-source Python package to generate graph alignment datasets and benchmark new GNN architectures.

Benchmark Results

Tested on 1 dataset

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

Classic

#ModelMAE ↓Paper
1
Ours(100K)
0.9200 ±0.0090
2
GatedGCN-PE/E(500K)
0.9960 ±0.0080
3
GatedGCN-E-PE
0.9960 ±0.0080
5
GAPE + RWPE
1.0690 ±0.0090
This paper
6
GAPE
1.0850 ±0.0090
This paper
7
RWPE
1.1200 ±0.0040
This paper
9
R-LAP
1.2300 ±0.0070
This paper
10
GAT
actual #10 vs paper #10
1.2400 ±0.0110
actual #10 vs paper #10
paper 1.2400 ±0.0110
prev best: GNNBenchmark (JMLR 2023)
paper 1.2400 ±0.0110 Δ at pub 0.2010
11
SignNet
1.2600 ±0.0060
This paper
12
ABS-LAP
1.2700 ±0.0090
This paper
13
GCN
actual #13 vs paper #13
1.2800 ±0.0110
actual #13 vs paper #13
paper 1.2800 ±0.0110
prev best: GNNBenchmark (JMLR 2023)
paper 1.2800 ±0.0110 Δ at pub 0.0920
15
LAP
1.3100 ±0.0060
This paper
16
LaplacianPE
1.3100 ±0.0390
This paper
19
GraphSAGE
1.4310 ±0.0100
21
None
1.7100 ±0.0500
This paper
22
MLP
1.7440 ±0.0160
SOTA performance (not significantly different from the best) Baseline / comparison (this paper) Global context (other papers) Best at pub — reported value improved over the best known when published