Abstract
Graph Neural Networks (GNNs) have shown success in many real-world applications that involve graph-structured data. Most of the existing single-node GNN training systems are capable of training medium-scale graphs with tens of millions of edges; however, scaling them to large-scale graphs with billions of edges remains challenging. In addition, it is challenging to map GNN training algorithms onto a computation node as state-of-the-art machines feature heterogeneous architecture consisting of multiple processors and a variety of accelerators. We propose HyScale-GNN, a novel system to train GNN models on a single-node heterogeneous architecture. HyScale-GNN performs hybrid training which utilizes both the processors and the accelerators to train a model collaboratively. Our system design overcomes the memory size limitation of existing works and is optimized for training GNNs on large-scale graphs. We propose a two-stage data pre-fetching scheme to reduce the communication overhead during GNN training. To improve task mapping efficiency, we propose a dynamic resource management mechanism, which adjusts the workload assignment and resource allocation during runtime. We evaluate HyScale-GNN on a CPU-GPU and a CPU-FPGA heterogeneous architecture. Compared with the state-of-the-art large-scale multi-node GNN training systems such as P3 and DistDGL, our CPU-FPGA design achieves up to 5.27x speedup using a single node.
Introduction: The Scaling Challenge in GNN Training
Graph Neural Networks are powerful, but training them on real-world graphs—like social networks or molecular structures—is a scaling nightmare. These graphs often contain billions of edges, far exceeding the memory capacity of high-performance accelerators like GPUs or FPGAs, which typically have only 16–64 GB of RAM.
While researchers often turn to multi-node distributed clusters to solve this, that approach introduces massive inter-node communication overhead. On a single node, the "memory wall" is the main issue: storing the graph in large CPU RAM (terabytes) is possible, but fetching that data to the accelerator over the relatively slow PCIe bus creates a massive bottleneck. Furthermore, most existing systems treat the CPU as a mere "data loader," leaving its significant computational power idle while the accelerator does all the heavy lifting.
Methods
HyScale-GNN introduces three key innovations to maximize single-node performance:
- Hybrid Training Protocol: Instead of offloading all work to the accelerator, HyScale-GNN treats the CPU and accelerator as peers. Both participate in training mini-batches simultaneously, maximizing the total TFLOPS of the machine.
- Two-Stage Data Prefetching: To hide the latency of the PCIe bus, the system decomposes data movement into two pipeline stages: Feature Loading (from CPU RAM to CPU cache) and Data Transfer (from CPU to Accelerator). This allows the system to load features for the next mini-batch while the accelerator is still computing the current one.
- Dynamic Resource Management (DRM): This is a "bottleneck-guided" optimizer. At runtime, it monitors the execution time of every stage (sampling, loading, transfer, training). If it detects a bottleneck—say, the CPU sampler is falling behind—it dynamically reallocates CPU threads or adjusts mini-batch assignments to balance the workload.
Datasets and Evaluation
The system was evaluated using standard benchmarks from the Open Graph Benchmark (OGB), including ogbn-products (61.8M edges), ogbn-papers100M (1.6B edges), and MAG240M (1.3B edges), representing the high-end of single-node training challenges.
Key Results
- Speedup: Compared to a multi-GPU baseline using PyTorch-Geometric (PyG), HyScale-GNN achieved up to 2.08× speedup on a CPU-GPU setup and a staggering 12.6× speedup on a CPU-FPGA setup.
- Efficiency: When normalized for peak TFLOPS, HyScale-GNN was 21× to 71× more efficient than state-of-the-art systems like PaGraph and P3.
- Beating Clusters: Using just 4 FPGAs on a single node, the system achieved up to 5.27× speedup over large-scale multi-node systems like DistDGL that utilize significantly more hardware.
Insights and Future Directions
A primary takeaway is that in a heterogeneous system, the CPU shouldn't just be a pre-processor. By involving the CPU in the actual GNN training, the authors achieved significant speedups before even considering other optimizations. Furthermore, FPGAs proved highly effective because they allow for custom memory hierarchies that handle irregular graph data better than fixed GPU caches.
Currently, the protocol is strictly for single-node heterogeneous architectures. Future work will explore data quantization to alleviate PCIe bandwidth stress and aim to extend the protocol to support distributed, multi-node heterogeneous environments.
Summary updated