Accelerating Large Scale Real-Time GNN Inference using Channel Pruning

Hongkuan Zhou, Ajitesh Srivastava, Hanqing Zeng, Rajgopal Kannan, Viktor Prasanna

Main figure for Accelerating Large Scale Real-Time GNN Inference using Channel Pruning

Abstract

Graph Neural Networks (GNNs) are proven to be powerful models to generate node embedding for downstream applications. However, due to the high computation complexity of GNN inference, it is hard to deploy GNNs for large-scale or real-time applications. In this paper, we propose to accelerate GNN inference by pruning the dimensions in each layer with negligible accuracy loss. Our pruning framework uses a novel LASSO regression formulation for GNNs to identify feature dimensions (channels) that have high influence on the output activation. We identify two inference scenarios and design pruning schemes based on their computation and memory usage for each. To further reduce the inference complexity, we effectively store and reuse hidden features of visited nodes, which significantly reduces the number of supporting nodes needed to compute the target embedding. We evaluate the proposed method with the node classification problem on five popular datasets and a real-time spam detection application. We demonstrate that the pruned GNN models greatly reduce computation and memory usage with little accuracy loss. For full inference, the proposed method achieves an average of $3.27 $ speedup with only $0.002$ drop in F1-Micro on GPU. For batched inference, the proposed method achieves an average of $6.67 $ speedup with only $0.003$ drop in F1-Micro on CPU. To the best of our knowledge, we are the first to accelerate large scale real-time GNN inference through channel pruning.

Benchmark Results

Tested on 1 dataset

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

Classic

#ModelF1 ↑Paper
1
EnGCN
0.9714 ±0.0003
2
SAGN+SLE
0.9710
3
GAMLP(JK)
0.9704 ±0.0001
19
LASSO 2x
0.9660
This paper
18
SIGN(2,0,0)
0.9660
This paper
14
GraphSAGE
actual #14 vs paper #14
0.9660
actual #14 vs paper #14
paper 0.9660
28
LASSO 4x
0.9640
This paper
29
LASSO
0.9640
This paper
42
LASSO 8x
0.9590
This paper
51
TinyGNN
0.9570
This paper
58
GCN
0.9530 ±0.0010
73
SGC
0.9490
This paper
92
PPRGo
0.9370
This paper
SOTA performance (not significantly different from the best) Proposed method (this paper) Baseline / comparison (this paper) Global context (other papers) Best at pub — reported value improved over the best known when published