Graph Neural Network Training with Data Tiering

Seungwon Min, Kun Wu, Mert Hidayetoglu, Jinjun Xiong, Xiang Song, Wen-mei W. Hwu

Training Graph Neural Networks (GNNs) on massive datasets is often throttled by the slow data transfer between CPU and GPU. This research introduces Data Tiering, a strategy that uses a "Weighted Reverse Pagerank" algorithm to identify and store the most frequently accessed nodes directly on the GPU, reducing PCIe traffic by up to 95% and boosting training speeds by up to 2.1x.

The Challenge: The PCIe Bottleneck

GNNs have become the gold standard for tasks like fraud detection and recommendation systems. However, as graphs scale to billions of edges, they outgrow the memory capacity of even the most advanced GPUs. To handle this, researchers use "mini-batching"—sampling small sub-graphs for training.

The primary bottleneck in this setup is that raw feature data usually resides in the CPU’s RAM. Every time a mini-batch is processed, the GPU must fetch data across the PCIe bus. Because different mini-batches often overlap, the same data is transferred repeatedly. In many configurations, the GPU sits idle 60-70% of the time, simply waiting for data to arrive.

Methodology: Data Tiering and R-Pagerank

The proposed system-level optimization, Data Tiering, treats memory as a hierarchy of "Hot" and "Cold" data.

1. Weighted Reverse Pagerank (R-Pagerank)

To determine which data is "hot," the authors developed a specialized scoring function. Unlike standard Pagerank, which evaluates incoming links, Reverse Pagerank examines outgoing links to predict which nodes are likely to be sampled. This is further "weighted" by focusing on labeled nodes, which serve as the starting points for training.

2. GPU-Centric Access (Zero-Copy)

Instead of the CPU "pushing" data to the GPU via DMA (Direct Memory Access), the system uses a "zero-copy" approach. The GPU directly reaches into the CPU’s memory space, which is significantly more efficient for the small, irregular data chunks (512B to 4KB) typical of GNN features.

Data Tiering Architecture: High-score node features are stored in GPU memory for local access, while low-score features remain in CPU memory accessed via zero-copy over PCIe.

Implementation: Parallel Graph Reordering

Once nodes are scored, the entire graph must be physically reorganized so that high-score nodes are contiguous in memory. The authors implemented a parallelized algorithm that can reorder a graph with 111 million nodes and 3.2 billion edges in just 31 seconds.

Parallel Graph Reordering: The graph is reorganized to ensure that high-score nodes are stored contiguously, facilitating efficient memory access.

Key Results and Scalability

The team evaluated their work on massive benchmarks from the Open Graph Benchmark (OGB), including ogbn-papers100M (111M nodes), MAG240M (244M nodes), and WikiKG90M (87M nodes).

  • Traffic Reduction: By loading just the top 10% of "hot" nodes into GPU memory, they eliminated 87–95% of PCIe traffic.
  • Speedups: Compared to standard implementations in DGL and PyTorch Geometric, the method improved training speeds by 1.6x to 2.1x.
  • Scalability: They successfully trained the 350GB MAG240M dataset—far larger than the combined memory of their four V100 GPUs—demonstrating that data tiering makes massive datasets trainable on standard hardware.

Limitations and Future Outlook

While highly effective, the efficiency of data tiering decreases as sampling depth increases. If a model samples 5 or 6 layers deep, the access pattern becomes so spread out that the benefit of a "hot" tier is diluted. Additionally, the sampling process itself (traversing the graph structure) can become a new bottleneck if it remains on the CPU. Future work will explore moving the sampling logic entirely to the GPU to keep pace with the accelerated data access provided by tiering.

Summary updated

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