arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2010.03166cs.LGcs.DC
收藏

精确、高效、可扩展的图神经网络训练

Accurate, Efficient and Scalable Training of Graph Neural Networks

University of Southern California(南加利福尼亚大学);US Army Research Lab(美国陆军研究实验室)

Hanqing Zeng, Hongkuan Zhou, Ajitesh Srivastava, Rajgopal Kannan, Viktor Prasanna

摘要:

图神经网络(GNN)是在图上生成节点嵌入的强大深度学习模型。当在大型图上应用深度GNN时,以有效和可扩展的方式进行训练仍然具有挑战性。我们提出了一种新的并行训练框架。通过将小的子图作为小批量进行采样,与最先进的小批量方法相比,我们减少了数量级的训练工作量。然后,我们并行化的关键计算步骤紧耦合共享内存系统。对于图形采样,我们利用并行内和跨采样器实例,并提出了一个有效的数据结构,支持并发访问的采样器。理论上,并行采样器相对于处理单元的数量实现了接近线性的加速比。对于子图内的特征传播,我们通过数据分区来提高缓存利用率并减少DRAM流量。我们的分区是一个2-近似策略,最大限度地减少通信成本相比,最佳的。我们进一步开发了一个运行时调度器来重新排序训练操作,并调整小批量子图,以提高并行性能。最后,我们将上述并行化策略推广到支持多种类型的GNN模型和图采样器。所提出的训练在可扩展性、效率和准确性方面同时优于最先进的训练。在40核Xeon平台上,与串行实现相比,我们在采样步骤中实现了60倍的加速(使用AVX),在特征传播步骤中实现了20倍的加速。我们的算法能够快速训练更深层次的GNN,与Tensorflow实现相比,速度提高了几个数量级。我们在https://github.com/GraphSAINT/GraphSAINT上开源我们的代码。

英文摘要:

Graph Neural Networks (GNNs) are powerful deep learning models to generate node embeddings on graphs. When applying deep GNNs on large graphs, it is still challenging to perform training in an efficient and scalable way. We propose a novel parallel training framework. Through sampling small subgraphs as minibatches, we reduce training workload by orders of magnitude compared with state-of-the-art minibatch methods. We then parallelize the key computation steps on tightly-coupled shared memory systems. For graph sampling, we exploit parallelism within and across sampler instances, and propose an efficient data structure supporting concurrent accesses from samplers. The parallel sampler theoretically achieves near-linear speedup with respect to number of processing units. For feature propagation within subgraphs, we improve cache utilization and reduce DRAM traffic by data partitioning. Our partitioning is a 2-approximation strategy for minimizing the communication cost compared to the optimal. We further develop a runtime scheduler to reorder the training operations and adjust the minibatch subgraphs to improve parallel performance. Finally, we generalize the above parallelization strategies to support multiple types of GNN models and graph samplers. The proposed training outperforms the state-of-the-art in scalability, efficiency and accuracy simultaneously. On a 40-core Xeon platform, we achieve 60x speedup (with AVX) in the sampling step and 20x speedup in the feature propagation step, compared to the serial implementation. Our algorithm enables fast training of deeper GNNs, as demonstrated by orders of magnitude speedup compared to the Tensorflow implementation. We open-source our code at https://github.com/GraphSAINT/GraphSAINT.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑