ICLR 2025

Accurate and Scalable Graph Neural Networks via Message Invariance

Zhihao Shi, Jie Wang, Zhiwei Zhuang, Xize Liang, Bin Li, Fengli Wu

Main figure for Accurate and Scalable Graph Neural Networks via Message Invariance

Abstract

Message passing-based graph neural networks (GNNs) have achieved great success in many real-world applications. For a sampled mini-batch of target nodes, the message passing process is divided into two parts: message passing between nodes within the batch ($ _ $) and message passing from nodes outside the batch to those within it ($ _ $). However, $ _ $ recursively relies on higher-order out-of-batch neighbors, leading to an exponentially growing computational cost with respect to the number of layers. Due to the neighbor explosion, the whole message passing stores most nodes and edges on the GPU such that many GNNs are infeasible to large-scale graphs. To address this challenge, we propose an accurate and fast mini-batch approach for large graph transductive learning, namely topological compensation (TOP), which obtains the outputs of the whole message passing solely through $ _ $, without the costly $ _ $. The major pillar of TOP is a novel concept of message invariance, which defines message-invariant transformations to convert costly $ _ $ into fast $ _ $. This ensures that the modified $ _ $ has the same output as the whole message passing. Experiments demonstrate that TOP is significantly faster than existing mini-batch methods by order of magnitude on vast graphs (millions of nodes and billions of edges) with limited accuracy degradation.

Benchmark Results

Tested on 3 datasets Non-standard metric on 1 dataset

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

Classic

Reddit

Global leaderboard →

Default metric is F1. The paper reports 0 values on F1 , 3 values on Accuracy degradation and 1 value on Accuracy .

Sorted by Accuracy degradation. Highlighted rows are from other papers.

#ModelF1 ↓ defaultAccuracy degradation ↓Accuracy ↓Paper
1
Message passing-based graph neural networks
—
0.0009
—
F1 —
Accuracy —
This paper
2
TOP
—
—
0.0031
F1 —
Accuracy 0.0031
This paper
2
GAS
—
0.0094
—
F1 —
Accuracy —
This paper
3
CLUSTER
—
0.0384
—
F1 —
Accuracy —
This paper

OGB

#ModelAccuracy ↑Paper
1
Jacobi
0.8968
2
GPR
0.8953
3
LEMP4HG
0.8939
4
SAGE
0.8933
101
Message passing-based graph neural networks-GCNII
0.8196 ±0.0024
This paper
146
GAS-GCNII
0.7999
This paper
158
CLUSTER-GCNII
0.7962
This paper
351
MLP
0.6605 ±0.0020
396
TOP
0.0017
This paper
SOTA performance (not significantly different from the best) Proposed method (this paper) Baseline / comparison (this paper) Global context (other papers)