Plexus: Taming Billion-edge Graphs with 3D Parallel Full-graph GNN Training

Aditya K. Ranjan, Siddharth Singh, Cunyang Wei, Abhinav Bhatele

TL;DR

Training Graph Neural Networks (GNNs) on massive, billion-edge graphs is a significant challenge due to memory and communication bottlenecks. This paper introduces "Plexus," a novel 3D parallel framework that enables full-graph GNN training at unprecedented scales, achieving substantial speedups over existing methods by optimizing communication and computation.

What Problem Does This Paper Address?

Graph Neural Networks (GNNs) are powerful tools for analyzing complex relational data, but their application to real-world graphs (like social networks or molecular structures) is often hampered by their sheer size. Training GNNs on graphs with billions of edges exceeds the memory capacity of single GPUs. While "mini-batching" (processing small subsets of the graph) is a common workaround, it can lead to accuracy degradation and "neighborhood explosion" issues. "Full-graph training," which processes the entire graph at once, offers better accuracy and avoids approximations but suffers from massive communication overheads and load imbalance, especially in distributed settings. Existing distributed full-graph training methods struggle to scale beyond a few dozen GPUs, leaving a critical gap for training on the largest graphs.

Methods

Plexus tackles the full-graph training challenge by employing a three-dimensional (3D) parallel approach. This method distributes graph data and computations across GPUs arranged in a 3D grid (Gx × Gy × Gz). The core idea is inspired by Agarwal et al.'s 3D parallel matrix multiplication algorithm, adapted for GNN training, particularly for the computationally intensive Sparse Matrix-Matrix Multiplication (SpMM) operations.

Key innovations include:

  • 3D Tensor Parallelism: Distributing matrices (adjacency, features, weights) across the 3D GPU grid and parallelizing SpMM and dense matrix multiplications.
  • Performance Model: A predictive model to identify optimal 3D grid configurations (Gx, Gy, Gz) by balancing predicted computation and communication costs, avoiding exhaustive empirical testing.
  • Double Permutation Scheme: A preprocessing step that permutes node indices to ensure a more uniform distribution of non-zeros across GPU shards, significantly mitigating load imbalance without requiring complex graph partitioning.
  • Blocked Aggregation: Optimizing the aggregation step by processing smaller blocks of the sparse matrix and performing all-reduces on these blocks, reducing performance variability and communication overhead.
  • Parallel Data Loading: A utility that loads and merges graph shards offline, drastically reducing CPU memory usage and data loading times for large datasets.

Datasets

The paper evaluates Plexus on six diverse graph datasets:

  • Reddit: A social network graph from PyTorch Geometric.
  • ogbn-products: A product co-purchasing network from the Open Graph Benchmark (OGB).
  • Isolate-3-8M: A subgraph of a protein similarity network.
  • products-14M: A larger Amazon product network.
  • europe_osm: A road network graph representing geographical locations.
  • ogbn-papers100M: A citation network from OGB, representing Microsoft Academic Graph.

Key Insights and Ideas

  • 3D Parallelism is Key for Scale: The paper demonstrates that a 3D parallel approach, when optimized, is crucial for scaling full-graph GNN training to thousands of GPUs, outperforming 1D and 2D strategies.
  • Load Balancing is Critical for Large Graphs: Uneven sparsity in large graphs is a major bottleneck. Plexus's double permutation scheme effectively addresses this, offering a simpler and more scalable solution than traditional graph partitioning.
  • Communication vs. Computation Trade-offs: The performance model highlights that optimal configurations depend on the balance between computation (SpMM) and communication. Denser graphs tend to be more computation-bound, while sparser graphs become communication-bound sooner.
  • Approximation-Free Training is Achievable at Scale: Plexus proves that it's possible to perform full-graph GNN training without approximations (like sampling) even on massive graphs, achieving competitive or superior accuracy and significantly better performance.

Key Results

Plexus achieves state-of-the-art results in distributed full-graph GNN training:

  • Unprecedented Scale: Scales to 2048 GPUs on Perlmutter and 1024 GPUs (GCDs) on Frontier, the largest scale reported for full-graph GNN training.
  • Significant Speedups: Achieves 2.3-12.5× faster training compared to prior state-of-the-art frameworks.
  • Reduced Time-to-Solution: Reduces time-to-solution by 5.2-8.7× on Perlmutter and 7.0-54.2× on Frontier.
  • Load Balancing Effectiveness: The double permutation method achieves near-perfect load balance, with a max-to-mean ratio of non-zeros as low as 1.001.
  • Performance Model Accuracy: The performance model shows a strong correlation between predicted and observed epoch times, with an R² of up to 0.89.

Limitations and Future Work

  • Dataset Size and Sparsity: While Plexus scales well, performance can be influenced by graph sparsity. Denser graphs might be more computation-bound, while sparser ones become communication-bound at lower GPU counts.
  • Memory Overhead: The double permutation scheme introduces a memory overhead for storing two versions of the adjacency matrix, though this is considered a reasonable trade-off for improved performance.
  • Future Work: The paper suggests that further optimizations could be explored, such as more advanced communication-avoiding techniques or adapting the 3D parallelism to other GNN architectures beyond GCNs. The performance model could also be extended to predict performance across different hardware architectures more broadly.

Summary updated

BibTeX
@inproceedings{ranjan2025plexus,
  author = {Aditya K. Ranjan and Siddharth Singh and Cunyang Wei and Abhinav Bhatele},
  title = {{Plexus: Taming Billion-edge Graphs with 3D Parallel Full-graph GNN Training}},
  booktitle = {SC},
  year = {2025},
  doi = {10.1145/3712285.3759890},
}
Figure