TMLR 2024

Sparse Decomposition of Graph Neural Networks

Yaochen Hu, Mai Zeng, Ge Zhang, P. Rumiantsev, Liheng Ma, Yingxue Zhang, Mark Coates

Main figure for Sparse Decomposition of Graph Neural Networks

Abstract

Graph Neural Networks (GNN) exhibit superior performance in graph representation learning, but their inference cost can be high due to an aggregation operation that can require a memory fetch for a very large number of nodes. This inference cost is the major obstacle to deploying GNN models with online prediction to reflect the potentially dynamic node features. To address this, we propose an approach to reduce the number of nodes that are included during aggregation. We achieve this through a sparse decomposition, learning to approximate node representations using a weighted sum of linearly transformed features of a carefully selected subset of nodes within the extended neighbourhood. The approach achieves linear complexity with respect to the average node degree and the number of layers in the graph neural network. We introduce an algorithm to compute the optimal parameters for the sparse decomposition, ensuring an accurate approximation of the original GNN model, and present effective strategies to reduce the training time and improve the learning process. We demonstrate via extensive experiments that our method outperforms other baselines designed for inference speedup, achieving significant accuracy gains with comparable inference times for both node classification and spatio-temporal forecasting tasks.

Benchmark Results

Tested on 2 datasets Non-standard metric on 2 datasets

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

Classic

Amazon-Computers

Global leaderboard →
Non-default metric. This paper reports F1; the dataset default is Accuracy. Values below use F1 only.

Sorted by F1. Highlighted rows are from other papers.

#ModelF1 ↑Paper
1
SDGNN
0.9429 ±0.0052
This paper
2
GLNN
0.9419 ±0.0056
This paper
3
SDGNN-Equal
0.9344 ±0.0058
This paper
4
CoHOp
0.9328 ±0.0062
This paper
5
NOSMOG
0.9224 ±0.0071
This paper
6
PPRGo
0.9128 ±0.0047
This paper
7
SGC
0.9071 ±0.0065
This paper

OGB

ogbn-products

Global leaderboard →
Non-default metric. This paper reports F1; the dataset default is Accuracy. Values below use F1 only.

Sorted by F1. Highlighted rows are from other papers.

#ModelF1 ↑Paper
1
SDGNN
0.8287 ±0.0021
This paper
2
GLNN
0.8279 ±0.0025
This paper
3
SDGNN-Equal
0.8264 ±0.0022
This paper
4
PPRGo
0.8167 ±0.0025
This paper
5
CoHOp
0.8091 ±0.0023
This paper
6
SGC
0.7976 ±0.0028
This paper
9
GCN
0.7539 ±0.0021
12
NOSMOG
0.6449 ±0.0017
This paper
SOTA performance (not significantly different from the best) Proposed method (this paper) Baseline / comparison (this paper) Global context (other papers)