HyScale-GNN: A Scalable Hybrid GNN Training System on Single-Node Heterogeneous Architecture

Yi-Chien Lin, Viktor K. Prasanna

TL;DR

HyScale-GNN is a hybrid training system that enables single-node training of massive Graph Neural Networks (GNNs) with billions of edges by utilizing both CPUs and accelerators (GPUs/FPGAs) collaboratively. By combining a novel two-stage prefetching scheme with a bottleneck-guided dynamic resource manager, it overcomes memory capacity limits and communication overheads, outperforming many multi-node distributed systems on a single machine.

What Problem Does This Paper Address?

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

The authors propose HyScale-GNN, which introduces three key innovations to maximize single-node performance:

  1. 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.
  2. 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.
  3. 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.
  4. Custom Hardware Kernels: For the FPGA implementation, they designed specialized systolic-array-based MLP kernels and scatter-gather aggregation units that maximize on-chip data reuse, significantly reducing external memory traffic.

Datasets

The system was evaluated using standard benchmarks from the Open Graph Benchmark (OGB):

  • ogbn-products: A medium-scale graph (2.4M nodes, 61.8M edges).
  • ogbn-papers100M: A large-scale graph (111M nodes, 1.6B edges).
  • MAG240M (homo): A massive graph with 121M nodes and 1.3B edges, representing the high-end of single-node training challenges.

Key Insights and Ideas

  • The CPU is a First-Class Citizen: The "aha moment" here 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 a theoretical 1.26x speedup on their test hardware before even considering other optimizations.
  • FPGAs vs. GPUs for GNNs: The paper highlights that FPGAs can be more efficient for GNNs because they allow for custom memory hierarchies. Unlike GPUs, which rely on fixed cache policies that often fail with irregular graph data, the FPGA's on-chip memory can be manually managed to store intermediate results, slashing external memory access.
  • Single-Node Efficiency: The results suggest that a highly optimized single node can be more efficient than a 64-GPU cluster for certain scales. By eliminating inter-node network traffic, HyScale-GNN achieves better "work-per-watt" and "work-per-dollar" metrics.

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 (comparing the efficiency of the software design itself), 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.

Limitations and Future Work

  • PCIe Bandwidth Ceiling: The authors acknowledge that if the "Data Transfer" stage becomes the absolute bottleneck, the DRM engine's effectiveness is limited. In such cases, the system must reduce the accelerator's workload to stay synchronized, which caps the overall speedup.
  • Single-Node Constraint: Currently, the protocol is strictly for single-node heterogeneous architectures. It does not yet support inter-node communication for distributed cluster training.
  • Future Directions: The team plans to explore data quantization (reducing the precision of features) to alleviate PCIe bandwidth stress and aims to extend the protocol to support distributed, multi-node heterogeneous environments.

Summary updated

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. Using several large-scale datasets and two widely-used GNN models, we compare the performance of our design with a multi-GPU baseline implemented in PyTorch-Geometric. The CPU-GPU design and the CPU-FPGA design achieve up to 2.08× speedup and 12.6× speedup, respectively. Compared with the state-of-the-art large-scale multi-node GNN training systems such as P 3 and DistDGL, our CPU-FPGA design achieves up to 5.27× speedup using a single node.
BibTeX
@inproceedings{lin2023hyscale,
  author = {Yi-Chien Lin and Viktor K. Prasanna},
  title = {{HyScale-GNN: A Scalable Hybrid GNN Training System on Single-Node Heterogeneous Architecture}},
  booktitle = {IPDPS},
  year = {2023},
  url = {https://openreview.net/forum?id=M4L5oNKLuT},
}

Loading related content...

Figure