Simplifying Distributed Neural Network Training on Massive Graphs: Randomized Partitions Improve Model Aggregation

Jiong Zhu, Aishwarya Naresh Reganti, Edward W Huang, Charles Andrew Dickens, Nikhil Rao, Karthik Subbian, Danai Koutra

TL;DR

This paper introduces a simplified framework for distributed Graph Neural Network (GNN) training that eliminates costly inter-instance communication and periodic centralized training. By using randomized graph partitioning and time-based model aggregation, their approach achieves state-of-the-art performance and significantly faster convergence on massive graphs, even with less training data.

What Problem Does This Paper Address?

Training Graph Neural Networks (GNNs) on massive graphs (billions of edges) presents a significant scalability challenge. Traditional distributed GNN training methods often rely on either extensive communication between individual trainers or periodic synchronization with a central server. These approaches introduce overhead, slow down training, and limit scalability. A key challenge is handling "cross-instance node dependencies" – connections between nodes that end up in different partitions of the graph. Existing methods try to minimize these dependencies, but this paper argues that this might not be necessary and can even be detrimental.

Methods

The core of this work is a new framework called Time-based Model Aggregation (TMA). It consists of:

  • Independent Trainers: Each trainer works on a local subgraph of the training data. They learn asynchronously, meaning they don't wait for each other after every training step.
  • Time-based Model Aggregation: Instead of synchronizing after a fixed number of training steps (which can be problematic with varying trainer speeds), TMA synchronizes local models only at fixed time intervals. This accommodates heterogeneous trainer speeds and reduces communication wait times.
  • Randomized Graph Partitioning: This is a key innovation. Instead of using complex graph partitioning algorithms (like METIS) that aim to minimize cross-instance edges, the authors propose two randomized schemes:
  • RandomTMA: Randomly assigns each node to a partition.
  • SuperTMA: Randomly assigns "super-nodes" (pre-clustered groups of nodes) to partitions. The theoretical analysis suggests that minimizing cross-partition edges can actually increase discrepancies in gradients and losses across trainers, hindering convergence. Randomized partitioning, by contrast, promotes data uniformity.

Datasets

The authors evaluated their framework on four large-scale real-world networks:

  • Reddit: A social network dataset.
  • ogbl-citation2: A citation network dataset.
  • MAG240M-P: A large citation network dataset.
  • E-comm: A proprietary heterogeneous dataset from an e-commerce store.

These datasets range up to 1.3 billion edges, highlighting the scalability of the proposed methods.

Key Insights and Ideas

  • Challenging the "Min-Cut" Dogma: The paper's most significant insight is that minimizing cross-instance edges in graph partitioning might be counterproductive for distributed GNN training. Their theoretical analysis and experiments suggest that this can lead to data distribution disparities that harm convergence.
  • Randomization as a Unifier: Randomized partitioning, by creating more uniform data distributions across trainers, surprisingly leads to better performance and faster convergence, even when it means ignoring more cross-instance dependencies.
  • Time-Based Aggregation is Key for Heterogeneity: In real-world distributed systems, trainers often have different speeds. Time-based aggregation elegantly handles this heterogeneity, preventing slower trainers from bottlenecking the entire system.
  • Simplicity Can Be Powerful: The proposed TMA framework is simpler than many existing methods, eliminating complex communication protocols and relying on straightforward time-based synchronization and randomized partitioning.

Key Results

  • State-of-the-Art Performance: The proposed RandomTMA and SuperTMA methods achieved state-of-the-art link prediction performance across all tested datasets.
  • Significant Speedup: RandomTMA achieved up to a 2.31x speedup in convergence time compared to the fastest baseline.
  • Improved Robustness: The randomized partitioning schemes made the training process more robust to trainer failures compared to traditional methods.
  • Reduced Data Usage: The methods achieved superior results despite using significantly less training data (fewer edges) due to their partitioning strategies.
  • Empirical Validation of Theory: Experiments confirmed the theoretical findings that randomized partitioning reduces discrepancies in training loss across trainers.

Limitations and Future Work

  • Focus on Link Prediction: While the framework is general, the empirical evaluation primarily focused on link prediction. The authors suggest future work should explore its effectiveness on other graph learning tasks like node classification.
  • Hyperparameter Tuning: While the paper discusses hyperparameter choices, further exploration of optimal settings for different graph structures and tasks could be beneficial.
  • Broader GNN Architectures: The experiments used specific GNN encoders (GCN, GraphSAGE, RGCN). Evaluating TMA with a wider range of GNN architectures would be valuable.
  • Federated Learning Extension: The authors note that their methods are compatible with federated learning but leave a comprehensive evaluation for future research.

Summary updated

BibTeX
@article{zhu2023simplifying,
  author = {Jiong Zhu and Aishwarya Naresh Reganti and Edward W Huang and Charles Andrew Dickens and Nikhil Rao and Karthik Subbian and Danai Koutra},
  title = {{Simplifying Distributed Neural Network Training on Massive Graphs: Randomized Partitions Improve Model Aggregation}},
  journal = {ACM Trans. Knowl. Discov. Data},
  year = {2023},
  url = {https://openreview.net/forum?id=Nw7GnpZeUin},
}
Figure