Provably Convergent Subgraph-wise Sampling for Fast GNN Training
Jie Wang, Zhihao Shi, Xize Liang, Defu Lian, Shuiwang Ji, Bin Li, Enhong Chen, Feng Wu
TL;DR
This work tackles the challenge of scalable GNN training on large graphs by addressing gradient bias and convergence issues in subgraph-wise sampling. It introduces Local Message Compensation (LMC), a versatile framework that retrieves discarded messages through a backward-pass formulation and uses historical information to compensate both forward and backward passes, yielding unbiased gradient estimates and provable convergence to first-order stationary points for both ConvGNNs and RecGNNs. Theoretical results establish bias bounds that vanish with appropriate learning rates and iteration progress, while extensive experiments show LMC significantly accelerates training speed without compromising accuracy on large-scale datasets, with robust performance under small batch sizes. The proposed approach provides a practical, architecture-agnostic solution for fast, reliable GNN training, enabling scalable deployment in real-world applications requiring long-range dependency modeling.
Abstract
Subgraph-wise sampling -- a promising class of mini-batch training techniques for graph neural networks (GNNs -- is critical for real-world applications. During the message passing (MP) in GNNs, subgraph-wise sampling methods discard messages outside the mini-batches in backward passes to avoid the well-known neighbor explosion problem, i.e., the exponentially increasing dependencies of nodes with the number of MP iterations. However, discarding messages may sacrifice the gradient estimation accuracy, posing significant challenges to their convergence analysis and convergence speeds. To address this challenge, we propose a novel subgraph-wise sampling method with a convergence guarantee, namely Local Message Compensation (LMC). To the best of our knowledge, LMC is the first subgraph-wise sampling method with provable convergence. The key idea is to retrieve the discarded messages in backward passes based on a message passing formulation of backward passes. By efficient and effective compensations for the discarded messages in both forward and backward passes, LMC computes accurate mini-batch gradients and thus accelerates convergence. Moreover, LMC is applicable to various MP-based GNN architectures, including convolutional GNNs (finite message passing iterations with different layers) and recurrent GNNs (infinite message passing iterations with a shared layer). Experiments on large-scale benchmarks demonstrate that LMC is significantly faster than state-of-the-art subgraph-wise sampling methods.
