TGL: A General Framework for Temporal GNN Training on Billion-Scale Graphs

Hongkuan Zhou, Da Zheng, Israt Nisa, Vasileios Ioannidis, Xiang Song, George Karypis

Main figure for TGL: A General Framework for Temporal GNN Training on Billion-Scale Graphs

Abstract

Many real world graphs contain time domain information. Temporal Graph Neural Networks capture temporal information as well as structural and contextual information in the generated dynamic node embeddings. Researchers have shown that these embeddings achieve state-of-the-art performance in many different tasks. In this work, we propose TGL, a unified framework rebfor large-scale offline Temporal Graph Neural Network training where users can compose various Temporal Graph Neural Networks with simple configuration files. TGL comprises five main components, a temporal sampler, a mailbox, a node memory module, a memory updater, and a message passing engine. rebWe design a Temporal-CSR data structure and a parallel sampler to efficiently sample temporal neighbors to form training mini-batches. We propose a novel random chunk scheduling technique that mitigates the problem of obsolete node memory rebwhen training with a large batch size. rebTo address the limitations of current TGNNs only being evaluated on small-scale datasets, we introduce two large-scale real-world datasets with 0.2 and 1.3 billion temporal edges. We evaluate the performance of TGL on rebfour small-scale datasets with a single GPU and the two large datasets with multiple GPUs for both link prediction and node classification tasks. We compare TGL with the open-sourced code of five methods and show that TGL achieves similar or better accuracy with an average of $13 $ speedup. Our temporal parallel sampler achieves an average of $173 $ speedup on a multi-core CPU compared with the baselines. On a 4-GPU machine, TGL can train one epoch of more than one billion temporal edges within reb1-10 hours. To the best of our knowledge, this is the first work rebthat proposes a general framework for large-scale Temporal Graph Neural Networks training on multiple GPUs.

Proposed method: TGL

Benchmark Results

Tested on 1 dataset Non-standard metric on 1 dataset

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

Classic

Reddit

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

Sorted by F1-Micro. Highlighted rows are from other papers.

#ModelF1-Micro ↑Paper
1
JODIE
0.7091
This paper
3
TGL
0.6378
This paper
2
TGN
0.6378
This paper
4
APAN
0.6200
This paper
5
DySAT
0.6170
This paper
6
TGAT
0.6061
This paper
SOTA performance (not significantly different from the best) Proposed method (this paper) Baseline / comparison (this paper)