ReInc: Scaling Training of Dynamic Graph Neural Networks
Mingyu Guan, Saumia Singhal, Taesoo Kim, Anand Padmanabha Iyer
TL;DR
ReInc tackles the heavy cost of training dynamic graph neural networks on large graphs by introducing three core ideas: reuse opportunities across DGNN components, incremental aggregation using delta graphs with $Agg_t = Agg_{t-1} - F_{t-1} *_{aggr} G^-_t + F_t *_{aggr} G^+_t$, and a DGNN-aware two-level cache plus a consecutive-block distributed training strategy. It supports both stacked and integrated DGNNs and introduces a seq-first mini-batch training scheme to maximize cache hits and minimize memory usage. A prototype on DGL/PyTorch demonstrates up to an order-of-magnitude speedup over state-of-the-art systems while maintaining correctness, with favorable scaling across machines, feature/hiddens, and sequence lengths. This work enables practical, scalable DGNN training for real-world, large-scale dynamic graphs without restrictive assumptions about dynamicity or graph size.
Abstract
Dynamic Graph Neural Networks (DGNNs) have gained widespread attention due to their applicability in diverse domains such as traffic network prediction, epidemiological forecasting, and social network analysis. In this paper, we present ReInc, a system designed to enable efficient and scalable training of DGNNs on large-scale graphs. ReInc introduces key innovations that capitalize on the unique combination of Graph Neural Networks (GNNs) and Recurrent Neural Networks (RNNs) inherent in DGNNs. By reusing intermediate results and incrementally computing aggregations across consecutive graph snapshots, ReInc significantly enhances computational efficiency. To support these optimizations, ReInc incorporates a novel two-level caching mechanism with a specialized caching policy aligned to the DGNN execution workflow. Additionally, ReInc addresses the challenges of managing structural and temporal dependencies in dynamic graphs through a new distributed training strategy. This approach eliminates communication overheads associated with accessing remote features and redistributing intermediate results. Experimental results demonstrate that ReInc achieves up to an order of magnitude speedup compared to state-of-the-art frameworks, tested across various dynamic GNN architectures and real-world graph datasets.
