Global Neighbor Sampling for Mixed CPU-GPU Training on Giant Graphs
Jialin Dong, Da Zheng, Lin F. Yang, George Karypis
摘要
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.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 7 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Open Graph Benchmark: Datasets for Machine Learning on Graphs 引用了 GraphSAINT: Graph Sampling Based Inductive Learning Method
- ETC: Efficient Training of Temporal Graph Neural Networks over Large-scale Dynamic Graphs 引用了 GraphSAINT: Graph Sampling Based Inductive Learning Method
- Graphite: optimizing graph neural networks on CPUs through cooperative software-hardware techniques 引用了 Open Graph Benchmark: Datasets for Machine Learning on Graphs
- Graphite: optimizing graph neural networks on CPUs through cooperative software-hardware techniques 引用了 GCN meets GPU: Decoupling "When to Sample" from "How to Sample"
- Layer-Neighbor Sampling - Defusing Neighborhood Explosion in GNNs 引用了 Open Graph Benchmark: Datasets for Machine Learning on Graphs
- Layer-Neighbor Sampling - Defusing Neighborhood Explosion in GNNs 引用了 GraphSAINT: Graph Sampling Based Inductive Learning Method
- FreshGNN: Reducing Memory Access via Stable Historical Embeddings for Graph Neural Network Training 引用了 Open Graph Benchmark: Datasets for Machine Learning on Graphs
- FreshGNN: Reducing Memory Access via Stable Historical Embeddings for Graph Neural Network Training 引用了 GraphSAINT: Graph Sampling Based Inductive Learning Method
- MariusGNN: Resource-Efficient Out-of-Core Training of Graph Neural Networks 引用了 Open Graph Benchmark: Datasets for Machine Learning on Graphs
- MariusGNN: Resource-Efficient Out-of-Core Training of Graph Neural Networks 引用了 GraphSAINT: Graph Sampling Based Inductive Learning Method
- GCN meets GPU: Decoupling "When to Sample" from "How to Sample" 引用了 GraphSAINT: Graph Sampling Based Inductive Learning Method
引用它的顶会 Paper7
- MariusGNN: Resource-Efficient Out-of-Core Training of Graph Neural NetworksRoger Waleffe, Jason Mohoney, Theodoros Rekatsinas, Shivaram VenkataramanEuroSys 2023 · 40 次引用
- Layer-Neighbor Sampling - Defusing Neighborhood Explosion in GNNsMuhammed Fatih Balin, Ümit V. ÇatalyürekNeurIPS 2023 · 37 次引用
- ETC: Efficient Training of Temporal Graph Neural Networks over Large-scale Dynamic GraphsShihong Gao, Yiming Li, Yanyan Shen, Yingxia Shao 等VLDB 2024 · 32 次引用
- Graphite: optimizing graph neural networks on CPUs through cooperative software-hardware techniquesZhangxiaowen Gong, Houxiang Ji, Yao Yao, Christopher W. Fletcher 等ISCA 2022 · 30 次引用
- FreshGNN: Reducing Memory Access via Stable Historical Embeddings for Graph Neural Network TrainingKezhao Huang, Haitian Jiang, Minjie Wang, Guangxuan Xiao 等VLDB 2024 · 13 次引用
它引用的 Paper3
- Open Graph Benchmark: Datasets for Machine Learning on GraphsWeihua Hu, Matthias Fey, Marinka Zitnik, Yuxiao Dong 等NeurIPS 2020 · 3,935 次引用
- GraphSAINT: Graph Sampling Based Inductive Learning MethodHanqing Zeng, Hongkuan Zhou, Ajitesh Srivastava, Rajgopal Kannan 等ICLR 2020 · 1,155 次引用
- GCN meets GPU: Decoupling "When to Sample" from "How to Sample"Morteza Ramezani, Weilin Cong, Mehrdad Mahdavi, Anand Sivasubramaniam 等NeurIPS 2020 · 37 次引用
相关 Paper
- Scaling New Heights: Transformative Cross-GPU Sampling for Training Billion-Edge GraphsYaqi Xia, Donglin Yang, Xiaobo Zhou, Dazhao ChengSC 2024 · 4 次引用
- DiskGNN: Bridging I/O Efficiency and Model Accuracy for Out-of-Core GNN TrainingRenjie Liu, Yichuan Wang, Xiao Yan, Haitian Jiang 等SIGMOD 2025 · 8 次引用
- FastGL: A GPU-Efficient Framework for Accelerating Sampling-Based GNN Training at Large ScaleZeyu Zhu, Peisong Wang, Qinghao Hu, Gang Li 等ASPLOS 2024 · 8 次引用
- 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 次引用
- BGL: GPU-Efficient GNN Training by Optimizing Graph Data I/O and PreprocessingTianfeng Liu, Yangrui Chen, Dan Li, Chuan Wu 等NSDI 2023
