Global Neighbor Sampling for Mixed CPU-GPU Training on Giant Graphs
Jialin Dong, Da Zheng, Lin F. Yang, George Karypis
Abstract
Graph neural networks (GNNs) are powerful tools for learning from graph data and are widely used in various applications such as social network recommendation, fraud detection, and graph search. The graphs in these applications are typically large, usually containing hundreds of millions of nodes. Training GNN models on such large graphs efficiently remains a big challenge. Despite a number of sampling-based methods have been proposed to enable mini-batch training on large graphs, these methods have not been proved to work on truly industry-scale graphs, which require GPUs or mixed-CPU-GPU training. The state-of-the-art sampling-based methods are usually not optimized for these real-world hardware setups, in which data movement between CPUs and GPUs is a bottleneck. To address this issue, we propose Global Neighborhood Sampling that aims at training GNNs on giant graphs specifically for mixed-CPU-GPU training. The algorithm samples a global cache of nodes periodically for all mini-batches and stores them in GPUs. This global cache allows in-GPU importance sampling of mini-batches, which drastically reduces the number of nodes in a mini-batch, especially in the input layer, to reduce data copy between CPU and GPU and mini-batch computation without compromising the training convergence rate or model accuracy. We provide a highly efficient implementation of this method and show that our implementation outperforms an efficient node-wise neighbor sampling baseline by a factor of 2 × -4× on giant graphs. It outperforms an efficient implementation of LADIES with small layers by a factor of 2 × -14× while achieving much higher accuracy than LADIES. We also theoretically analyze the proposed algorithm and show that with cached node data of a proper size, it enjoys a comparable convergence rate as the underlying node-wise sampling method.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
7 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Open Graph Benchmark: Datasets for Machine Learning on Graphs cites GraphSAINT: Graph Sampling Based Inductive Learning Method
- ETC: Efficient Training of Temporal Graph Neural Networks over Large-scale Dynamic Graphs cites GraphSAINT: Graph Sampling Based Inductive Learning Method
- Graphite: optimizing graph neural networks on CPUs through cooperative software-hardware techniques cites Open Graph Benchmark: Datasets for Machine Learning on Graphs
- Graphite: optimizing graph neural networks on CPUs through cooperative software-hardware techniques cites GCN meets GPU: Decoupling "When to Sample" from "How to Sample"
- Layer-Neighbor Sampling - Defusing Neighborhood Explosion in GNNs cites Open Graph Benchmark: Datasets for Machine Learning on Graphs
- Layer-Neighbor Sampling - Defusing Neighborhood Explosion in GNNs cites GraphSAINT: Graph Sampling Based Inductive Learning Method
- FreshGNN: Reducing Memory Access via Stable Historical Embeddings for Graph Neural Network Training cites Open Graph Benchmark: Datasets for Machine Learning on Graphs
- FreshGNN: Reducing Memory Access via Stable Historical Embeddings for Graph Neural Network Training cites GraphSAINT: Graph Sampling Based Inductive Learning Method
- MariusGNN: Resource-Efficient Out-of-Core Training of Graph Neural Networks cites Open Graph Benchmark: Datasets for Machine Learning on Graphs
- MariusGNN: Resource-Efficient Out-of-Core Training of Graph Neural Networks cites GraphSAINT: Graph Sampling Based Inductive Learning Method
- GCN meets GPU: Decoupling "When to Sample" from "How to Sample" cites GraphSAINT: Graph Sampling Based Inductive Learning Method
Cited by top-tier papers7
- MariusGNN: Resource-Efficient Out-of-Core Training of Graph Neural NetworksRoger Waleffe, Jason Mohoney, Theodoros Rekatsinas, Shivaram VenkataramanEuroSys 2023 · 40 citations
- Layer-Neighbor Sampling - Defusing Neighborhood Explosion in GNNsMuhammed Fatih Balin, Ümit V. ÇatalyürekNeurIPS 2023 · 37 citations
- ETC: Efficient Training of Temporal Graph Neural Networks over Large-scale Dynamic GraphsShihong Gao, Yiming Li, Yanyan Shen, Yingxia Shao et al.VLDB 2024 · 32 citations
- Graphite: optimizing graph neural networks on CPUs through cooperative software-hardware techniquesZhangxiaowen Gong, Houxiang Ji, Yao Yao, Christopher W. Fletcher et al.ISCA 2022 · 30 citations
- FreshGNN: Reducing Memory Access via Stable Historical Embeddings for Graph Neural Network TrainingKezhao Huang, Haitian Jiang, Minjie Wang, Guangxuan Xiao et al.VLDB 2024 · 13 citations
Builds on3
- Open Graph Benchmark: Datasets for Machine Learning on GraphsWeihua Hu, Matthias Fey, Marinka Zitnik, Yuxiao Dong et al.NeurIPS 2020 · 3,935 citations
- GraphSAINT: Graph Sampling Based Inductive Learning MethodHanqing Zeng, Hongkuan Zhou, Ajitesh Srivastava, Rajgopal Kannan et al.ICLR 2020 · 1,155 citations
- GCN meets GPU: Decoupling "When to Sample" from "How to Sample"Morteza Ramezani, Weilin Cong, Mehrdad Mahdavi, Anand Sivasubramaniam et al.NeurIPS 2020 · 37 citations
Related papers
- Scaling New Heights: Transformative Cross-GPU Sampling for Training Billion-Edge GraphsYaqi Xia, Donglin Yang, Xiaobo Zhou, Dazhao ChengSC 2024 · 4 citations
- DiskGNN: Bridging I/O Efficiency and Model Accuracy for Out-of-Core GNN TrainingRenjie Liu, Yichuan Wang, Xiao Yan, Haitian Jiang et al.SIGMOD 2025 · 8 citations
- FastGL: A GPU-Efficient Framework for Accelerating Sampling-Based GNN Training at Large ScaleZeyu Zhu, Peisong Wang, Qinghao Hu, Gang Li et al.ASPLOS 2024 · 8 citations
- Accelerating Sampling and Aggregation Operations in GNN Frameworks with GPU Initiated Direct Storage AccessesJeongmin Brian Park, Vikram Sharma Mailthody, Zaid Qureshi, Wen-Mei HwuVLDB 2024 · 37 citations
- BGL: GPU-Efficient GNN Training by Optimizing Graph Data I/O and PreprocessingTianfeng Liu, Yangrui Chen, Dan Li, Chuan Wu et al.NSDI 2023
