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

一种用于GNN训练的统一CPU-GPU协议

A Unified CPU-GPU Protocol for GNN Training

Yi-Chien Lin, Gangda Deng, Viktor Prasanna

AI总结:

针对现有GNN框架无法高效利用CPU-GPU平台资源的问题,提出统一CPU-GPU协议,通过并行实例化训练进程协同计算并动态负载均衡,最高将训练速度提升1.41倍。

摘要:

在大规模图上训练图神经网络(GNN)模型涉及大量的数据通信和计算。尽管最先进的CPU和GPU具备高计算能力,但现有GNN框架中采用的标准GNN训练协议无法高效利用平台资源。为此,我们提出了一种新颖的统一CPU-GPU协议,能够提升CPU-GPU平台上GNN训练的资源利用率。该协议在CPU和GPU上并行实例化多个GNN训练进程。通过在CPU上分配训练进程与GPU协同执行GNN训练,该协议提高了平台资源利用率并降低了CPU-GPU数据传输开销。由于CPU和GPU的性能存在差异,我们开发了一种新颖的负载均衡器,在运行时动态平衡CPU和GPU之间的工作负载。我们使用两种代表性的GNN采样算法和两种广泛使用的GNN模型,在三个数据集上评估了该协议。与最先进GNN框架采用的标准训练协议相比,我们的协议有效提升了资源利用率和整体训练时间。在GPU性能适度优于CPU的平台上,该协议将GNN训练速度最高提升了1.41倍。在GPU性能显著优于CPU的平台上,该协议将训练速度最高提升了1.26倍。该协议已开源,可无缝集成至现有GNN框架中加速训练。由于GPU需求量大,该协议尤其有利于GPU访问受限的用户。

英文摘要:

Training a Graph Neural Network (GNN) model on large-scale graphs involves a high volume of data communication and computations. While state-of-the-art CPUs and GPUs feature high computing power, the Standard GNN training protocol adopted in existing GNN frameworks cannot efficiently utilize the platform resources. To this end, we propose a novel Unified CPU-GPU protocol that can improve the resource utilization of GNN training on a CPU-GPU platform. The Unified CPU-GPU protocol instantiates multiple GNN training processes in parallel on both the CPU and the GPU. By allocating training processes on the CPU to perform GNN training collaboratively with the GPU, the proposed protocol improves the platform resource utilization and reduces the CPU-GPU data transfer overhead. Since the performance of a CPU and a GPU varies, we develop a novel load balancer that balances the workload dynamically between CPUs and GPUs during runtime. We evaluate our protocol using two representative GNN sampling algorithms, with two widely-used GNN models, on three datasets. Compared with the standard training protocol adopted in the state-of-the-art GNN frameworks, our protocol effectively improves resource utilization and overall training time. On a platform where the GPU moderately outperforms the CPU, our protocol speeds up GNN training by up to 1.41x. On a platform where the GPU significantly outperforms the CPU, our protocol speeds up GNN training by up to 1.26x. Our protocol is open-sourced and can be seamlessly integrated into state-of-the-art GNN frameworks and accelerate GNN training. Our protocol particularly benefits those with limited GPU access due to its high demand.

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

↑