Subgraph parallelism is an advanced strategy within neural network parallelism that involves decomposing a large computation graph into smaller, disjoint subgraphs that can be processed in parallel. This approach is particularly effective in dealing with the challenges posed by irregular data structures inherent in graph-based computations. By partitioning the overall graph into subgraphs, one can distribute the computational workload across multiple processors or GPUs, thereby exploiting parallelism at the data level. This not only accelerates computation by allowing simultaneous processing but also enhances scalability when dealing with large-scale graphs. The subgraphs are often constructed to minimize inter-subgraph communication, which is a critical factor in achieving efficient parallel execution. Techniques such as graph partitioning and clustering algorithms are employed to generate balanced subgraphs that reduce the overhead of synchronization and data transfer between processing units.
In the realm of Graph Neural Networks (GNNs), subgraph parallelism is instrumental in handling expansive and densely connected graphs that are computationally intensive due to the recursive neighborhood aggregation (message passing) mechanisms intrinsic to GNNs. By dividing the input graph into subgraphs, one can perform localized message passing within each subgraph independently, thus enabling parallel training and inference. This is exemplified in methods like Cluster-GCN [Chiang et al., 2019], where the authors propose a scalable GNN training algorithm that leverages graph clustering to create mini-batches containing highly connected subgraphs. This approach significantly reduces memory consumption and computational load by limiting the scope of neighborhood aggregation, facilitating efficient parallel processing. Similarly, GraphSAGE [Hamilton et al., 2017] introduces a sampling-based method to generate subgraphs by selecting a fixed-size neighborhood for each node, which allows for batching and parallel computation while maintaining the inductive capabilities of the model. Subgraph parallelism in GNNs thus addresses both the computational complexity and memory bottlenecks, enabling the application of GNNs to large-scale graph datasets.
References:
- Chiang, W.-L., Liu, X., Si, S., Li, Y., Bengio, S., & Hsieh, C.-J. (2019). Cluster-GCN: An Efficient Algorithm for Training Deep and Large Graph Convolutional Networks. Proceedings of the 25th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, 257–266.
- Hamilton, W. L., Ying, R., & Leskovec, J. (2017). Inductive Representation Learning on Large Graphs. Advances in Neural Information Processing Systems, 1025–1035.