[Paper Review] TGL: A General Framework for Temporal GNN Training on Billion-Scale Graphs
TGL is a unified framework for large-scale temporal GNN training on billion-scale graphs, enabling efficient training of diverse TGNN architectures via a temporal sampler, node memory, mailbox, and message passing engine. It achieves up to 13× speedup and trains one billion-edge graphs in 1–10 hours on 4 GPUs, with novel techniques like random chunk scheduling and Temporal-CSR for scalability and performance.
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 for 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. We design a Temporal-CSR data structure and a parallel sampler to efficiently sample temporal neighbors to formtraining mini-batches. We propose a novel random chunk scheduling technique that mitigates the problem of obsolete node memory when training with a large batch size. To 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 four 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 13x speedup. Our temporal parallel sampler achieves an average of 173x 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 1-10 hours. To the best of our knowledge, this is the first work that proposes a general framework for large-scale Temporal Graph Neural Networks training on multiple GPUs.
Motivation & Objective
- To address the lack of a general, scalable framework for training Temporal GNNs on large-scale dynamic graphs.
- To unify diverse TGNN architectures under a single training framework with simple configuration files.
- To overcome challenges in large-batch training, such as obsolete node memory and inefficient sampling on billion-edge graphs.
- To enable evaluation of TGNNs on large-scale real-world datasets beyond small benchmarks.
- To provide a production-ready, multi-GPU capable system for industrial and academic use.
Proposed method
- Design of a Temporal-CSR data structure to efficiently store and access time-ordered edges in dynamic graphs.
- Development of a parallel temporal sampler that accelerates neighbor sampling by leveraging temporal ordering and multi-core processing.
- Introduction of a random chunk scheduling technique to reduce dependency loss during large-batch training by shuffling training batches into smaller, temporally coherent chunks.
- Integration of a node memory module and mailbox to maintain and update dynamic node representations across time steps.
- Design of a message passing engine that supports various TGNN variants by composing the above components through configuration files.
- Implementation of multi-GPU training with overlapping data transfer and computation via NCCL and CUDA streams.
Experimental results
Research questions
- RQ1Can a unified framework efficiently train diverse Temporal GNN architectures on billion-scale dynamic graphs?
- RQ2How can large-batch training be made scalable and accurate when node memory becomes obsolete?
- RQ3What performance gains can be achieved with optimized data structures and parallel sampling on large temporal graphs?
- RQ4How do TGNNs perform on real-world billion-edge datasets compared to small-scale benchmarks?
- RQ5To what extent can multi-GPU training scale the training of large-scale temporal GNNs?
Key findings
- TGL achieves an average of 13× speedup over open-sourced baselines while maintaining or improving accuracy on link prediction and node classification tasks.
- The temporal parallel sampler achieves 173× speedup on multi-core CPUs compared to baseline samplers.
- On a 4-GPU machine, TGL trains one epoch of over one billion temporal edges in 1–10 hours, depending on the model.
- Random chunk scheduling mitigates the loss of temporal dependencies, enabling convergence with large batch sizes (e.g., 4800) where baseline methods fail.
- Multi-GPU training achieves 2.74× speedup with 4 GPUs on JODIE and 2.25× with 4 GPUs on TGN, demonstrating strong scalability.
- Memory-based models like TGN train one epoch on the GDELT dataset in under 30 minutes, while non-memory-based models require over 3 hours.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.