InkStream�Instantaneous GNN Inference on Dynamic Graphs via Incremental Update�
Dan Wu, Zhaoying Li, Tulika Mitra.
School of Computing, National University of Singapore
© Copyright National University of Singapore. All Rights Reserved.
© Copyright National University of Singapore. All Rights Reserved.
Graph Neural Network (GNN)
01
GNN
Social Networks
E-Commerce
Financial Risk Control
Drug Discovery
© Copyright National University of Singapore. All Rights Reserved.
Graph Neural Network (GNN)
02
message
© Copyright National University of Singapore. All Rights Reserved.
Graphs Can Be Dynamic
03
© Copyright National University of Singapore. All Rights Reserved.
Dilemma: Efficiency or Generality?
04
Inefficient
Poor Generality
sum
How to push the generality of incremental update to the boundary?
© Copyright National University of Singapore. All Rights Reserved.
Which Part Should Be Updated?
6
05
© Copyright National University of Singapore. All Rights Reserved.
Incremental Updates Beyond SUM
7
06
1
2
3
4
[2,2,2]
[3,3,3]
[4,4,4]
max aggregator
<3% real affected
1
2
3
4
[2,2,2]
[3,3,3]
[4,4,4]
sum aggregator
[4,4,4]
[4,4,4]
[7,7,7]
[9,9,9]
[9,9,9]
© Copyright National University of Singapore. All Rights Reserved.
Our Solution
8
07
Key designs:
3/6/25
© Copyright National University of Singapore. All Rights Reserved.
Design 1: Inter-layer Pruned Propagation
08
Events
Update message of A to B
New message of A to B
Delete old message of A from B
© Copyright National University of Singapore. All Rights Reserved.
Design 2: Incremental Update (Monotonic)
09
Evolvable
Deleted Msg.
Added Msg.
max aggregator
© Copyright National University of Singapore. All Rights Reserved.
Design 2: Incremental Update (Accumulative)
10
Updated
Message
Deleted
Edge
New
Edge
© Copyright National University of Singapore. All Rights Reserved.
Experiment Setup
11
[1] W. Hamilton et al. Inductive representation learning on large graphs, 2017.
[2] J. Huang et al. Streaming Graph Neural Networks, 2020
[3] Z. Xie et al. Graphiler: Optimizing graph neural networks with message passing data flow graph, 2022.
© Copyright National University of Singapore. All Rights Reserved.
InkStream is Fast
12
100+ h
10-100s ms
© Copyright National University of Singapore. All Rights Reserved.
InkStream is Scalable
13
medium
large
small
© Copyright National University of Singapore. All Rights Reserved.
Takeaways
14
© Copyright National University of Singapore. All Rights Reserved.
THANK YOU
Code Available Here
Scan to Explore the Paper
Any overhead?
What’s the limitation?
Expressiveness?
© Copyright National University of Singapore. All Rights Reserved.