Efficient Graph Neural Network Inference at Large Scale

Xinyi Gao, Wentao Zhang, Yingxia Shao, Quoc Viet Hung Nguyen, Bin Cui, Hongzhi Yin

Main figure for Efficient Graph Neural Network Inference at Large Scale

Abstract

Graph neural networks (GNNs) have demonstrated excellent performance in a wide range of applications. However, the enormous size of large-scale graphs hinders their applications under real-time inference scenarios. Although existing scalable GNNs leverage linear propagation to preprocess the features and accelerate the training and inference procedure, these methods still suffer from scalability issues when making inferences on unseen nodes, as the feature preprocessing requires the graph is known and fixed. To speed up the inference in the inductive setting, we propose a novel adaptive propagation order approach that generates the personalized propagation order for each node based on its topological information. This could successfully avoid the redundant computation of feature propagation. Moreover, the trade-off between accuracy and inference latency can be flexibly controlled by simple hyper-parameters to match different latency constraints of application scenarios. To compensate for the potential inference accuracy loss, we further propose Inception Distillation to exploit the multi-scale reception information and improve the inference performance. Extensive experiments are conducted on four public datasets with different scales and characteristics, and the experimental results show that our proposed inference acceleration framework outperforms the SOTA graph inference acceleration baselines in terms of both accuracy and efficiency. In particular, the advantage of our proposed method is more significant on larger-scale datasets, and our framework achieves $75 $ inference speedup on the largest Ogbn-products dataset.

Proposed method: NAI

Benchmark Results

Tested on 1 dataset 1 baseline value reported too low

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

OGB

#ModelAccuracy ↑Paper
1
Jacobi
0.8968
2
GPR
0.8953
3
LEMP4HG
0.8939
4
SAGE
0.8933
94
SGC
actual #94 vs paper #290 196 places worse
0.8220 ±0.0090
best reported
actual #94 vs paper #290 196 places worse
paper 0.7424
paper 0.7424 Δ at pub 0.0796
222
GLNN
actual #222 vs paper #364 142 places worse
0.7765 ±0.0048
best reported
actual #222 vs paper #364 142 places worse
paper 0.6312
paper 0.6312 Δ today 0.1453
284
NAI
0.7458
This paper
311
Quantization
0.7301
This paper
328
TinyGNN
0.7133
This paper
351
MLP
0.6605 ±0.0020
SOTA performance (not significantly different from the best) Proposed method (this paper) Baseline / comparison (this paper) Global context (other papers) Best at pub — reported result worse than the best known when published (best reported in green) Best today — OK at publication; today's leaderboard best is elsewhere