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

AcOrch: 加速CPU-NPU异构环境下基于采样的GNN训练

AcOrch: Accelerating Sampling-based GNN Training under CPU-NPU Heterogeneous Environments

Northeastern University(东北大学);National University of Singapore(新加坡国立大学)

Kefu Chen, Xin Ai, Qiange Wang, Yanfeng Zhang, Ge Yu

AI总结:

针对CPU-NPU异构平台,提出AcOrch系统,通过两级流水线执行模型和细粒度任务编排,实现采样、特征收集和训练的重叠执行,平均加速2.31倍。

摘要:

图神经网络(GNN)在各种应用中取得了显著成功。基于采样的GNN训练,即在采样子图上进行小批量训练,已成为大规模图的一种有前景的解决方案。鉴于基于采样的GNN训练的资源密集型特性,神经处理单元(NPU),如昇腾AI处理器,因其高吞吐量和能效而成为一种有前景的替代方案,非常适合GNN工作负载。然而,基于采样的训练具有多阶段特性,涉及子图采样、特征收集和模型训练,这些阶段具有不同的资源需求和计算量。这需要仔细协调以充分利用CPU和NPU的异构计算资源。在这项工作中,我们提出了AcOrch,一个针对CPU-NPU异构平台优化的基于采样的GNN训练系统。AcOrch提供细粒度的任务编排,并采用两级流水线执行模型来重叠采样、收集和训练。它分析了NPU的异构计算特性,并将任务相应地映射到AI Cube(AIC)单元、AI Vector(AIV)单元和CPU核心。此外,两级流水线不仅实现了CPU和NPU之间的重叠执行,还实现了NPU内不同类型计算单元(例如AIC和AIV单元)之间的重叠执行,从而最大化可用资源的利用率。在昇腾910B AI处理器上的实验表明,AcOrch相比最先进的NPU原生图学习系统MindSporeGL实现了平均2.31倍的加速。

英文摘要:

Graph Neural Networks (GNNs) have achieved remarkable success in various applications. Sampling-based GNN training, which conducts mini-batch training on sampled subgraphs, has become a promising solution for large-scale graphs. Given the resource-intensive nature of sampling-based GNN training, Neural Processing Units (NPUs), such as the Ascend AI processor, offer a promising alternative due to their high throughput and energy efficiency, making them well-suited for GNN workloads. However, the multi-stage nature of sampling-based training, which involves subgraph sampling, feature gathering, and model training, with different resource requirements and computation volume. This requires careful coordination to fully utilize the heterogeneous computation resources of CPUs and NPUs. In this work, we present AcOrch, a sampling-based GNN training system optimized for CPU-NPU heterogeneous platforms. AcOrch offers fine-grained task orchestration and adopts a two-level pipelined execution model to overlap sampling, gathering, and training. It analyzes the heterogeneous compute features of NPUs and maps tasks to AI Cube (AIC) units, AI Vector (AIV) units, and CPU cores accordingly. Moreover, the two-level pipeline enables overlapping execution not only between the CPU and NPU, but also among different types of compute units within the NPU (e.g., AIC and AIV units), thereby maximizing the utilization of available resources. Experiments on an Ascend 910B AI processor show that AcOrch achieves an average speedup of 2.31x over the state-of-the-art NPU-native graph learning system, MindSporeGL.

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

↑