ICML 2025

Can Classic GNNs Be Strong Baselines for Graph-level Tasks? Simple Architectures Meet Excellence

Yuankai Luo, Lei Shi, Xiao-Ming Wu

Main figure for Can Classic GNNs Be Strong Baselines for Graph-level Tasks? Simple Architectures Meet Excellence

Abstract

Message-passing Graph Neural Networks (GNNs) are often criticized for their limited expressiveness, issues like over-smoothing and over-squashing, and challenges in capturing long-range dependencies. Conversely, Graph Transformers (GTs) are regarded as superior due to their employment of global attention mechanisms, which potentially mitigate these challenges. Literature frequently suggests that GTs outperform GNNs in graph-level tasks, especially for graph classification and regression on small molecular graphs. In this study, we explore the untapped potential of GNNs through an enhanced framework, GNN+, which integrates six widely used techniques: edge feature integration, normalization, dropout, residual connections, feed-forward networks, and positional encoding, to effectively tackle graph-level tasks. We conduct a systematic re-evaluation of three classic GNNs (GCN, GIN, and GatedGCN) enhanced by the GNN+ framework across 14 well-known graph-level datasets. Our results reveal that, contrary to prevailing beliefs, these classic GNNs consistently match or surpass the performance of GTs, securing top-three rankings across all datasets and achieving first place in eight. Furthermore, they demonstrate greater efficiency, running several times faster than GTs on many datasets. This highlights the potential of simple GNN architectures, challenging the notion that complex mechanisms in GTs are essential for superior graph-level performance. Our source code is available at https://github.com/LUOyk1999/GNNPlus.

Benchmark Results

Tested on 1 dataset

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

LRGB

#ModelMAE ↓Paper
1
GCN
actual #1 vs paper #1
0.2421 ±0.0016
actual #1 vs paper #1
paper 0.2421 ±0.0016
paper 0.2421 ±0.0016 Δ at pub 0.0039
2
IPR-MPNN
0.2422 ±0.0007
3
TANGO-GPS
0.2422 ±0.0014
5
GIN
actual #5 vs paper #5
0.2429 ±0.0019
actual #5 vs paper #5
paper 0.2429 ±0.0019
paper 0.2429 ±0.0019 Δ at pub 0.0271
7
GatedGCN
actual #7 vs paper #7
0.2431 ±0.0020
actual #7 vs paper #7
paper 0.2431 ±0.0020
paper 0.2431 ±0.0020 Δ at pub 0.0046
201
MLP
0.4351 ±0.0008
SOTA performance (not significantly different from the best) Global context (other papers) Best at pub — reported value improved over the best known when published