NeutronOrch: Rethinking Sample-based GNN Training under CPU-GPU Heterogeneous Environments

Xin Ai, Qiange Wang, Chunyu Cao, Yanfeng Zhang, Chaoyi Chen, Hao Yuan, Yu Gu, Ge Yu

TL;DR

NeutronOrch is a high-performance system for training Graph Neural Networks (GNNs) that fixes the "resource imbalance" problem in CPU-GPU environments. By rethinking the training pipeline—offloading the data-heavy bottom layer to the CPU and reusing embeddings for frequently accessed nodes—it achieves up to an 11.5x speedup over state-of-the-art frameworks like DGL.

What Problem Does This Paper Address?

Graph Neural Networks (GNNs) are powerful but notoriously difficult to train on massive real-world graphs because they don't fit in GPU memory. To solve this, researchers use sample-based training, which breaks the graph into small, manageable "mini-batches."

Current systems typically follow a "sample-gather-train" workflow. However, they usually assign each of these steps entirely to either the CPU or the GPU. This creates two major headaches:

  1. CPU Bottlenecks: If the CPU handles sampling and gathering, the GPU sits idle waiting for data.
  2. GPU Contention: If the GPU handles everything, its limited memory and compute cores get overwhelmed, leading to "Out of Memory" (OOM) errors or slow execution.

The authors of NeutronOrch identified that existing task orchestration methods fail to fully utilize the heterogeneous (mixed) resources of a modern server.

Methods

NeutronOrch introduces three novel techniques to bridge this gap:

  • Layer-based Task Orchestration: Instead of splitting the process by operation (e.g., "all sampling on CPU"), NeutronOrch splits it by GNN layer. It pushes the computation of the bottom-most layer—which involves the most nodes due to the "neighbor explosion" effect—to the CPU. The GPU then handles the higher, more computationally dense layers.
  • Hotness-aware Embedding Reuse: Some nodes in a graph are "celebrities" (high-degree nodes) that appear in almost every mini-batch. Instead of recomputing their embeddings every time, NeutronOrch identifies these "hot" vertices and computes their embeddings on the CPU once, then reuses them across multiple batches.
  • Super-batch Pipelined Training: To keep both the CPU and GPU busy, the system groups batches into "super-batches." It uses a sophisticated pipeline to overlap CPU embedding updates with GPU training rounds while strictly controlling bounded staleness—ensuring that reused data isn't so old that it hurts model accuracy.

Datasets

The authors evaluated NeutronOrch using six diverse, real-world graph datasets:

  • Social Networks: Reddit, Orkut, and LiveJournal (Lj-large).
  • Web/Citation Graphs: Wikipedia and the massive OGB-Papers100M (111 million nodes, 1.6 billion edges).
  • E-commerce: OGB-Products.

These datasets range from hundreds of thousands to hundreds of millions of nodes, providing a rigorous test for scalability and memory management.

Key Insights and Ideas

  • The Bottom Layer is the Bottleneck: In a 3-layer GNN, the bottom layer can account for over 60% of the total workload. Moving just this layer to the CPU significantly reduces the GPU's memory footprint and communication overhead.
  • CPU as a Compute Partner, Not Just a Loader: Most systems treat the CPU as a glorified disk-to-GPU delivery service. NeutronOrch proves the CPU can be a powerful compute partner if assigned the right kind of "wide and shallow" tasks.
  • Bounded Staleness is a Win-Win: You don't need perfectly up-to-date embeddings for every node in every batch. By allowing a small, controlled amount of "staleness" for hot nodes, you can drastically reduce redundant computation without sacrificing the model's final accuracy.

Key Results

NeutronOrch consistently outperformed industry-standard baselines (DGL, GNNLab, PaGraph, and GNNAutoScale):

  • Massive Speedups: It achieved up to 11.51x speedup over DGL and 2.43x over GNNLab on a single GPU.
  • Better Utilization: While other systems often left the CPU idle or the GPU starved, NeutronOrch maintained high utilization across both (averaging ~44% CPU and ~93% GPU utilization).
  • Scalability: On the billion-edge Papers100M dataset, several competing systems crashed due to OOM errors, while NeutronOrch trained efficiently by offloading the memory-heavy tasks to the host RAM.
  • Accuracy Preservation: The system maintained the same convergence accuracy as standard training, proving that its "bounded staleness" approach is mathematically sound.

Limitations and Future Work

While NeutronOrch is highly effective, the authors note a few areas for growth:

  • Pre-processing Overhead: The system requires a pre-sampling step to identify "hot" vertices. While this is a one-time cost, optimizing this for dynamic graphs (where hotness might change) is a potential future direction.
  • Hardware Sensitivity: The "hybrid" processing policy (balancing hot nodes between CPU compute and GPU cache) depends on the specific ratio of CPU-to-GPU power. Future versions might benefit from more automated, self-tuning heuristics to adapt to different server configurations.

Summary updated

BibTeX
@article{ai2024neutronorch,
  author = {Xin Ai and Qiange Wang and Chunyu Cao and Yanfeng Zhang and Chaoyi Chen and Hao Yuan and Yu Gu and Ge Yu},
  title = {{NeutronOrch: Rethinking Sample-based GNN Training under CPU-GPU Heterogeneous Environments}},
  journal = {Proc. VLDB Endow.},
  year = {2024},
  doi = {10.14778/3659437.3659453},
}
Figure