arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2409.11129cs.LGcs.DBcs.PF
收藏

图重排序能加速图神经网络训练吗?一项实验研究

Can Graph Reordering Speed Up Graph Neural Network Training? An Experimental Study

Technical University of Munich(慕尼黑工业大学);University of Bayreuth(拜罗伊特大学);University of Toronto(多伦多大学)

Nikolai Merkel, Pierre Toussing, Ruben Mayer, Hans-Arno Jacobsen

AI总结:

本研究通过在PyTorch Geometric和Deep Graph Library两个GNN系统中评估12种图重排序策略,验证了其可加速CPU与GPU上的GNN训练,并分析了超参数等因素对重排序效果的影响。

摘要:

图神经网络(GNNs)是一类能够在图结构数据上进行学习的神经网络。然而,由于稀疏图结构中邻居顶点的高维特征迭代聚合与神经网络操作相结合,在大规模图上训练GNN极具挑战性。图的稀疏性常常导致次优的内存访问模式和更长的训练时间。图重排序是一种旨在优化图数据布局的策略,已被证明能有效加速图分析工作负载,但其对GNN训练性能的影响尚未得到研究。将重排序的效果推广到GNN性能上并非易事,因为必须考虑多个方面:GNN超参数(如GNN模型中使用的层数、隐藏维度数和特征大小)、神经网络操作、大量中间顶点状态以及GPU加速。\n在本研究中,我们通过在两个最先进的GNN系统PyTorch Geometric和Deep Graph Library中对12种重排序策略进行实证评估,填补了这一空白。我们的结果表明,图重排序分别能有效减少基于CPU和GPU的训练时间。此外,我们发现GNN超参数会影响重排序的效果,重排序指标在选择重排序策略中起着重要作用,轻量级重排序在基于GPU的训练中表现优于基于CPU的训练,并且投入的重排序时间在许多情况下可以被摊销。

英文摘要:

Graph neural networks (GNNs) are a type of neural network capable of learning on graph-structured data. However, training GNNs on large-scale graphs is challenging due to iterative aggregations of high-dimensional features from neighboring vertices within sparse graph structures combined with neural network operations. The sparsity of graphs frequently results in suboptimal memory access patterns and longer training time. Graph reordering is an optimization strategy aiming to improve the graph data layout. It has shown to be effective to speed up graph analytics workloads, but its effect on the performance of GNN training has not been investigated yet. The generalization of reordering to GNN performance is nontrivial, as multiple aspects must be considered: GNN hyper-parameters such as the number of layers, the number of hidden dimensions, and the feature size used in the GNN model, neural network operations, large intermediate vertex states, and GPU acceleration. In our work, we close this gap by performing an empirical evaluation of 12 reordering strategies in two state-of-the-art GNN systems, PyTorch Geometric and Deep Graph Library. Our results show that graph reordering is effective in reducing training time for CPU- and GPU-based training, respectively. Further, we find that GNN hyper-parameters influence the effectiveness of reordering, that reordering metrics play an important role in selecting a reordering strategy, that lightweight reordering performs better for GPU-based than for CPU-based training, and that invested reordering time can in many cases be amortized.

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

↑