Graph Neural Network Training and Data Tiering

Seungwon Min, Kun Wu, Mert Hidayetoglu, Jinjun Xiong, Xiang Song, Wen-Mei Hwu

Introduction

Training Graph Neural Networks (GNNs) on massive datasets is often throttled by the "PCIe bottleneck"—the slow data transfer between CPU and GPU. Modern graphs, reaching billions of edges, are too large to fit into a single GPU's VRAM. This paper introduces a Data Tiering strategy that uses a weighted reverse PageRank algorithm to identify "hot" nodes and keep them on the GPU, reducing PCIe traffic by up to 95% and nearly doubling training speeds.

The Challenge of Large-Scale GNN Training

GNNs are powerful tools for analyzing complex structures like social networks and fraud detection systems. However, the standard training approach using mini-batching faces a significant hurdle. Because GNNs aggregate information from neighboring nodes to compute embeddings, the "neighborhood" of a mini-batch can be massive and irregular.

GNN Layer-wise Aggregation

As shown in the figure above, computing the embedding for a center node requires fetching features from multiple layers of neighbors. This forces the system to constantly move massive amounts of feature data across the relatively slow PCIe bus. In many cases, the GPU sits idle for 60-70% of the time, simply waiting for data to arrive from the CPU memory.

Proposed Method: Data Tiering

The authors propose a system-level optimization called Data Tiering, which optimizes data storage and access without altering the underlying GNN mathematics. The core components include:

  1. Weighted Reverse PageRank (WR-Pagerank): A scoring function identifies "important" nodes. Unlike simple degree-based metrics, WR-Pagerank accounts for the flow of neighbor sampling and gives extra weight to labeled nodes, which are the starting points for training.
  2. Parallel Graph Reordering: The graph is reordered so that high-score "hot" nodes are stored contiguously, allowing for efficient memory management.
  3. GPU-Centric Access (Zero-Copy): The system uses a "zero-copy" approach where the GPU has a direct pointer to CPU memory. If a node isn't in the GPU's local cache, the GPU thread fetches it directly over PCIe, bypassing expensive CPU-side coordination.

System Architecture and Memory Management

The data tiering strategy effectively splits the feature tensor based on importance scores. High-score features are kept in local GPU memory for fast access, while low-score features remain in CPU memory, accessible via zero-copy over PCIe.

Data Tiering Memory Layout

In multi-GPU setups, the system treats the combined VRAM of all GPUs as a single large cache. High-speed interconnects like NVLink are used to share "hot" data between GPUs faster than fetching from the CPU.

Experimental Results

The researchers evaluated their method on three massive benchmarks from the Open Graph Benchmark (OGB), including the 350GB MAG240M dataset. Key findings include:

  • Traffic Reduction: CPU-GPU data traffic was reduced by 87–95% across various datasets.
  • Speedup: Training speeds improved by 1.6x to 2.1x compared to existing state-of-the-art frameworks like Deep Graph Library (DGL).
  • Efficiency: GPU utilization improved significantly as the bottleneck shifted away from data transfer.

Conclusion and Future Work

By caching just 25% of the most important data on the GPU, the authors observed a 97% reduction in PCIe traffic, suggesting that GNN access patterns are extremely skewed. While this addresses the feature data bottleneck, future work is needed to optimize the neighbor sampling process itself, which remains a bottleneck on the CPU in multi-GPU environments. Additionally, exploring dynamic re-tiering for evolving graphs presents an interesting research direction.

Summary updated

BibTeX
@inproceedings{min2022graph,
  author = {Seungwon Min and Kun Wu and Mert Hidayetoglu and Jinjun Xiong and Xiang Song and Wen-Mei Hwu},
  title = {{Graph Neural Network Training and Data Tiering}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2022},
  doi = {10.1145/3534678.3539038},
}
Figure