LSM-GNN: Large-scale Storage-based Multi-GPU GNN Training by Optimizing Data Transfer Scheme

Jeongmin Brian Park, Kun Wu, Vikram Sharma Mailthody, Zaid Qureshi, Scott A. Mahlke, Wen-Mei W. HwuarXiv 2024 · DOI

Introduction

The "memory wall" represents a significant barrier in training Graph Neural Networks (GNNs) on massive, real-world datasets. Graphs from platforms like Pinterest or Alibaba often reach tens of terabytes, containing billions of nodes and edges. In contrast, even state-of-the-art GPUs like the NVIDIA A100 offer only 40–80GB of VRAM. Current solutions typically involve graph partitioning or sharding, but these introduce substantial preprocessing overheads (e.g., METIS partitioning) and communication bottlenecks in multi-GPU environments.

The LSM-GNN Framework

LSM-GNN addresses these challenges by treating local SSDs as the primary data store, making large-scale training cost-effective. To overcome the lower bandwidth of SSDs compared to GPU memory, the authors introduce three key architectural innovations designed to optimize the data pipeline.

LSM-GNN System Architecture: Integrating SSD storage, shared GPU caches via NVLink, and a preemptive victim-buffer prefetcher.
  1. Shared Software Cache and Communication Layer: Instead of isolated per-GPU caches, LSM-GNN leverages NVLink to create a system-wide shared cache. A custom communication layer manages this, specifically avoiding high-latency "system-scope" memory operations in CUDA that often degrade performance.
  2. Hybrid Eviction Policy: The system employs a four-level priority scheme for cache management. It combines static importance (e.g., PageRank scores) with dynamic look-ahead information from a "window buffer" to predict which nodes will be required in upcoming iterations.
  3. Preemptive Victim-buffer Prefetcher (PVP): This mechanism utilizes the idle PCIe bus during the model training phase—when the GPU is busy with backpropagation—to move evicted data from a "Victim Buffer" in CPU pinned memory back to the GPU.

Key Results and Efficiency

The framework was evaluated on massive benchmarks, including the Illinois Graph Benchmark (IGB) and MAG240M. LSM-GNN achieved up to a 3.75× speedup over Dist-DGL, a popular distributed GNN framework. Notably, while Dist-DGL often encountered Out-of-Memory (OOM) errors on the largest datasets even with four GPUs, LSM-GNN handled them seamlessly on just two GPUs by utilizing SSD storage.

Execution time breakdown across 1, 2, and 4 SSDs, showing significant reductions in aggregation time as storage bandwidth increases.

The hybrid eviction policy significantly improved performance, increasing the cache hit ratio from 0.23 to 0.48 on a 16GB cache, which translated to a 1.41× speedup in the feature aggregation stage. These results suggest that optimizing the data path and leveraging storage-based training can be more effective and cheaper than traditional distributed brute-force scaling.

Limitations and Future Work

Despite its advantages, LSM-GNN's shared cache relies heavily on high-speed interconnects like NVLink; performance may drop on systems limited to PCIe for inter-GPU communication. Additionally, the current static PageRank-based eviction policy might require expensive recalculations for dynamic graphs that evolve over time. Future research could explore how these storage-based optimizations scale across massive clusters of hundreds of nodes.

Summary updated

BibTeX
@misc{park2024lsm,
  author = {Jeongmin Brian Park and Kun Wu and Vikram Sharma Mailthody and Zaid Qureshi and Scott A. Mahlke and Wen-Mei W. Hwu},
  title = {{LSM-GNN: Large-scale Storage-based Multi-GPU GNN Training by Optimizing Data Transfer Scheme}},
  year = {2024},
  eprint = {2407.15264},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2407.15264},
}
Figure