TL;DR
AcOrch is a novel Graph Neural Network (GNN) training system designed to eliminate data preparation bottlenecks and hardware underutilization in CPU-NPU heterogeneous environments. By introducing fine-grained parallel sampling across both the CPU and NPU, remapping graph aggregation to the NPU's matrix cores, and deploying a two-level pipeline, AcOrch achieves an average 2.31× speedup and quadruples core hardware utilization compared to native NPU baselines.
What Problem Does This Paper Address?
To train Graph Neural Networks (GNNs) on massive, real-world graphs, developers rely on sampling-based mini-batch methods. This process consists of three sequential stages: sampling subgraphs, gathering node features, and training the model. While Neural Processing Units (NPUs)—like Huawei's Ascend processors—offer massive throughput and energy efficiency for deep learning, existing GNN frameworks fail to utilize them effectively.
Traditional frameworks employ a coarse, step-based orchestration strategy: they assign sampling and feature gathering entirely to the CPU, leaving the NPU idle for up to 91% of the iteration time while it waits for data.
Furthermore, inside the NPU architecture, memory-bound graph aggregation tasks are typically dumped onto vector units (AI Vector or AIV), leaving the NPU's most powerful matrix multiplication units (AI Cube or AIC) heavily underutilized.
Methods
AcOrch breaks through these bottlenecks by shifting from coarse, step-based scheduling to a fine-grained, sample-driven orchestration strategy:
- Dual-Path Parallel Sampling: Instead of relying solely on the CPU for data preparation, AcOrch splits the sampling workload so that both the CPU and the NPU's vector units (AIV) generate subgraphs simultaneously.
- Computation-Aware Workload Partitioning: To prevent one device from stalling the other, AcOrch uses a dynamic cost model based on node degrees and historical execution times to adaptively balance the sampling load between the CPU and NPU.
- Two-Level Pipelining: The system introduces a two-stage pipeline model. The first level overlaps CPU-based sampling with NPU-based gathering and training. The second level operates within the NPU itself, using asynchronous queues and double buffering to overlap AIV-based feature gathering with AIC-based training computation.
- Aggregation Remapping: AcOrch shifts graph aggregation operations from the vector units (AIV) to the matrix units (AIC) by reframing aggregation as a Sparse-Matrix Dense-Matrix Multiplication (SpMM) problem. This frees up vector resources for feature gathering and keeps the primary computing cores busy.
Datasets
The authors evaluated AcOrch using six diverse, large-scale, real-world graph datasets:
- Reddit (Social network)
- Amazon (Co-purchasing network)
- Wiki-Talk (Communication network)
- Products (E-commerce network)
- Livejournal (Social network)
- Orkut (Online forum)
These datasets span hundreds of thousands to millions of nodes and up to 234 million edges. For datasets lacking intrinsic node attributes (Wiki-Talk, Livejournal, Orkut), features and labels were randomly generated.
Key Insights and Ideas
- Coarse Scheduling is a Trap: Simply offloading entire stages (e.g., "all sampling on CPU, all training on NPU") guarantees pipeline stalls. True efficiency requires breaking down individual stages and co-scheduling them across heterogeneous components.
- Reimagining Graph Operations as Matrix Math: Graph aggregation is traditionally viewed as an irregular vector operation. However, treating it as a sparse-matrix multiplication allows it to run on high-throughput tensor/matrix cores (AIC), drastically improving hardware utilization.
- Asynchronous Decoupling Over Strict Sync: Connecting the dual sampling paths to the gathering/training paths via a thread-safe multi-producer, single-consumer shared queue smooths out runtime variations and prevents NPU starvation.
Key Results
- End-to-End Speedup: AcOrch achieves an average 2.31× speedup over MindSporeGL (the state-of-the-art NPU-native framework), reaching up to 3.06× on larger datasets like Livejournal and Orkut where pipeline overlapping is most critical.
- Drastic Utilization Gains: AI Cube (AIC) utilization skyrocketed from a meager 12.29% in MindSporeGL to 52.63% in AcOrch.
- Competitive with GPUs: When compared against Quiver (a highly optimized GPU framework running on an NVIDIA A6000), AcOrch on an Ascend 910B NPU delivers 95.1% of the end-to-end performance while maintaining a significantly lower average power draw (91.85W vs. 109.71W).
Limitations and Future Work
Currently, AcOrch operates under the assumption that the entire graph structure can be stored within CPU memory. This poses a scalability limit for gargantuan, trillion-edge graphs that exceed single-node capacities.
To address this, the authors propose two future research directions:
- Distributed Training Extension: Expanding AcOrch to multi-node, multi-NPU environments, which will require designing efficient feature synchronization and dynamic cross-node task scheduling.
- Hierarchical Feature Caching: Leveraging the NPU's multi-level on-chip buffer architecture (L0/L1/L2 buffers and HBM) to implement smart feature caching and prefetching, further reducing memory access overhead during the gathering stage.
Summary updated