arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2504.18082cs.LGcs.AI
收藏

通过结构感知的随机小批量处理实现高效GNN训练

Efficient GNN Training Through Structure-Aware Randomized Mini-Batching

NVIDIA USA(NVIDIA美国分公司);NVIDIA & Stanford University USA(NVIDIA与斯坦福大学);NVIDIA & Bar-Ilan University Israel(NVIDIA与巴伊兰大学);NVIDIA & Technion University Israel(NVIDIA与技术学院)

Vignesh Balaji, Christos Kozyrakis, Gal Chechik, Haggai Maron

AI总结:

本文提出COMM-RAND,一种社区结构感知的随机小批量方法,平衡随机性与结构感知,在四个基准上将GNN训练速度提升至2.76倍,同时保持准确性。

摘要:

图神经网络(GNNs)支持在现实世界图上进行学习,而小批量训练已成为训练GNN的事实标准,因为它能够扩展到非常大的图并改善收敛性。当前的小批量构建策略在很大程度上忽略了GNN训练的效率考虑。具体而言,现有小批量技术采用随机化方案来提高准确性和收敛性。然而,这些随机化方案通常对图的结构属性(例如社区结构)不敏感,导致GNN训练期间出现高度不规则的内存访问模式,从而未能充分利用片上GPU缓存。另一方面,仅基于图结构的确定性小批量虽然能提供快速的运行时性能,但缺乏随机性会损害最终模型的准确性和训练收敛速度。在本文中,我们提出了社区结构感知的随机小批量(COMM-RAND),一种弥合上述两个极端之间差距的新方法。COMM-RAND允许实践者在构建小批量时探索纯随机性与纯图结构感知之间的空间,从而在保持相似准确性的同时实现显著更高效的GNN训练。我们在四个流行的图学习基准上评估了COMM-RAND。与流行的随机小批量方法相比,COMM-RAND将GNN训练时间最多缩短了2.76倍(平均1.8倍),同时实现了与之相差在1.79个百分点以内(平均0.42个百分点)的准确性。

英文摘要:

Graph Neural Networks (GNNs) enable learning on realworld graphs and mini-batch training has emerged as the de facto standard for training GNNs because it can scale to very large graphs and improve convergence. Current mini-batch construction policies largely ignore efficiency considerations of GNN training. Specifically, existing mini-batching techniques employ randomization schemes to improve accuracy and convergence. However, these randomization schemes are often agnostic to the structural properties of the graph (for eg. community structure), resulting in highly irregular memory access patterns during GNN training that make suboptimal use of on-chip GPU caches. On the other hand, while deterministic mini-batching based solely on graph structure delivers fast runtime performance, the lack of randomness compromises both the final model accuracy and training convergence speed. In this paper, we present Community-structure-aware Randomized Mini-batching (COMM-RAND), a novel methodology that bridges the gap between the above extremes. COMM-RAND allows practitioners to explore the space between pure randomness and pure graph structural awareness during mini-batch construction, leading to significantly more efficient GNN training with similar accuracy. We evaluated COMM-RAND across four popular graph learning benchmarks. COMM-RAND cuts down GNN training time by up to 2.76x (1.8x on average) while achieving an accuracy that is within 1.79% points (0.42% on average) compared to popular random mini-batching approaches.

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

↑