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
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.
| # | Model | F1 ↓ default | Accuracy degradation ↓ | Accuracy ↓ | Paper |
|---|---|---|---|---|---|
| 1 | Message passing-based graph neural networks | — | 0.0009 | — | F1
— Accuracy
— |
| 2 | TOP | — | —
| 0.0031 | F1
— Accuracy
0.0031 |
| 2 | GAS | — | 0.0094 | — | F1
— Accuracy
— |
| 3 | CLUSTER | — | 0.0384 | — | F1
— Accuracy
— |
OGB
| # | Model | Accuracy ↑ | 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 |
| # | Model | Accuracy ↑ | Paper |
|---|---|---|---|
| 1 | SGC | 0.7910 | |
| 2 | GAMLP | 0.7036
±0.0002 | |
| 3 | GLEM-GNN | 0.7036
±0.0002 | |
| 19 | TOP-GCNII | 0.6721
±0.0012 | This paper |
| 35 | SAGE | 0.6644
±0.0017 | |
| 92 | CLUSTER-GCNII | 0.5173 | This paper |
| 95 | MLP | 0.4960
±0.0030 |
