Abstract
Training Graph Neural Networks (GNNs) on graphs containing billions of vertices and edges at scale using minibatch sampling poses a key challenge: strong-scaling graphs and training examples results in lower compute and higher communication volume and potential performance loss. DistGNN-MB employs a novel Historical Embedding Cache (HEC) combined with compute-communication overlap to address this challenge. On a 32-node (64-socket) cluster of 3rd generation Intel Xeon Scalable Processors with 36 cores per socket, DistGNN-MB trains 3-layer GraphSAGE and GAT models on OGBN-Papers100M to convergence with epoch times of 2 seconds and 4.9 seconds, respectively, on 32 compute nodes. At this scale, DistGNN-MB trains GraphSAGE 5.2x faster than the widely-used DistDGL. DistGNN-MB trains GraphSAGE and GAT 10x and 17.2x faster, respectively, as compute nodes scale from 2 to 32.
Introduction
Training GNNs at scale is notoriously difficult because node representations depend on their neighborhood structure. In distributed environments, where graphs are partitioned across multiple servers, two major hurdles emerge: the "neighbor explosion" problem, where minibatch sampling requires fetching features from remote nodes, and diminishing returns during strong scaling, where communication overhead begins to dominate reduced per-node compute. DistGNN-MB addresses these bottlenecks through a combination of system-level optimizations and algorithmic innovations designed for x86 CPU clusters.
Methodology
DistGNN-MB introduces several key techniques to mitigate communication latency and optimize single-socket performance.
Historical Embedding Cache (HEC) and Asynchronous Embedding Push (AEP)
The core innovation is the Historical Embedding Cache (HEC). Instead of blocking the training loop to fetch the most up-to-date embeddings from remote neighbors, DistGNN-MB utilizes "stale" embeddings stored in a local software-managed cache. This approach leverages the observation that GNNs are robust to bounded staleness.
Complementing the HEC is the Asynchronous Embedding Push (AEP) algorithm. This mechanism overlaps computation with communication by asynchronously pushing updated embeddings to the caches of remote ranks while the CPU processes the current minibatch. This ensures that the network transfer is largely hidden from the critical path of the training loop.
Single-Socket Optimizations
To maximize performance on individual nodes, DistGNN-MB employs:
- Operator Fusion: Multiple operations (e.g., MatMul, ReLU, Dropout) are combined into a single pass to minimize memory bandwidth consumption, which is often the primary bottleneck on modern CPUs.
- LIBXSMM Integration: Architecture-specific assembly code is JIT-compiled for small matrix operations, ensuring peak compute efficiency.
- Thread-Parallel Sampling: A synchronous, thread-parallel sampler minimizes the overhead of sub-graph creation during the minibatch generation phase.
Evaluation
The framework was evaluated on two massive benchmarks from the Open Graph Benchmark (OGB): OGBN-Products (2.4M vertices, 123M edges) and OGBN-Papers100M (111M vertices, 3.2B edges).
Performance and Scaling
On a 32-node cluster, DistGNN-MB achieved significant speedups over the industry-standard DistDGL. For the Papers100M dataset, GraphSAGE training was 5.2x faster. The system also demonstrated strong scaling efficiency, with GAT achieving a 17.2x speedup when scaling from 2 to 32 nodes. Epoch times were reduced to 2 seconds for GraphSAGE and 4.9 seconds for GAT on the 100M-node graph.
Accuracy and Convergence
Critically, the use of historical embeddings did not degrade model performance. DistGNN-MB reached the same target accuracy as baseline methods (78.2% for Products, 65% for Papers100M) with a staleness of just one iteration, confirming that the algorithmic trade-off for performance is viable for production GNN training.
Conclusion
DistGNN-MB demonstrates that high-performance GNN training on massive graphs is achievable on distributed x86 clusters. By prioritizing communication overlap and memory bandwidth efficiency, it overcomes traditional scaling barriers. Future work includes extending these optimizations to utilize Intel Advanced Matrix Extensions (AMX) and BFloat16 data types in newer processor generations to further push the boundaries of distributed GNN training.
Summary updated