NeutronSparse: Coordinating Heterogeneous Engines for Sparse Matrix Multiplication on NPUs

Xin Ai, Zeyu Ling, Hao Yuan, Qiange Wang, Yanfeng Zhang, Yutao Peng, Ge YuarXiv 2026

TL;DR

NeutronSparse is a novel, coordination-first framework designed to accelerate Sparse Matrix-Matrix Multiplication (SpMM) on Neural Processing Units (NPUs). By dynamically balancing workloads between heterogeneous matrix and vector engines and optimizing data layouts at the tile level, it eliminates hardware idling and redundant computation. The framework achieves up to a 7.78× speedup over existing NPU baselines and consistently outperforms top-tier GPU libraries on an NVIDIA A100.

What Problem Does This Paper Address?

Sparse Matrix-Matrix Multiplication (SpMM) is the computational backbone for modern AI workloads like Graph Neural Networks (GNNs) and sparse attention mechanisms in Large Language Models (LLMs). As data scales up, data centers are increasingly turning to NPUs (like Huawei's Ascend series) for their high compute density and energy efficiency.

However, NPUs are fundamentally designed for regular, dense data flows. When faced with the irregular, unpredictable sparsity of SpMM, standard NPU frameworks perform poorly. The authors found that the official MindSpore implementation on an Ascend 910B NPU achieves only 36.3% of the performance of NVIDIA's cuSPARSE library on an A100 GPU.

Fig. 1. Comparison of SpMM performance between the Ascend 910B and Nvidia A100.

The core bottleneck isn't the raw hardware capability; it's the lack of coordination. NPUs feature heterogeneous compute units—specifically, matrix engines optimized for dense blocks and vector engines optimized for sparse operations. Existing software stacks fail to co-schedule these units effectively, leaving one engine heavily overloaded while the other sits idle.

Methods

NeutronSparse solves this hardware mismatch through two main strategies:

  1. Sparsity-Aware Heterogeneous Coordination:
  2. Static Partitioning: The framework uses an architecture-aware cost model to calculate a precise density threshold ($\alpha$). A single-pass, two-stage row-column extraction splits the sparse matrix: dense cores are routed to the matrix engine (AIC), while highly sparse fringes are sent to the vector engine (AIV).
  3. Dynamic Runtime Migration: Because real-world data is unpredictable, NeutronSparse monitors the execution time of both engines at the end of each epoch. If a load imbalance (skew) is detected, it dynamically packs or unpacks remaining tiles and migrates them from the slower engine to the faster one, eliminating pipeline bubbles.
  4. Locality-Aware Tile Orchestrating:
  5. Global-Local Reordering: NPUs process data in fixed-size tiles, meaning sparse matrices often suffer from massive zero-padding overhead. NeutronSparse applies a lightweight two-level reordering scheme (using Rabbit Order for global clustering and Jaccard similarity for local refinement) to group nonzeros together, creating much denser tiles.
  6. Hierarchical Tile Reuse: The framework takes advantage of software-visible memory controls on NPUs. It proactively stages frequently accessed dense matrix blocks into the shared L2 cache across multiple AI cores and optimizes the internal tile shape (settling on a default $128 \times 256 \times 64$ configuration) to maximize on-chip buffer residency.

Datasets

The authors evaluated NeutronSparse using a robust mix of benchmarks:

  • GNN Benchmarks: Four widely used real-world datasets (cora, ogbn-arxiv, reddit, and amazon-product).
  • SuiteSparse Matrix Collection: Sixteen diverse sparse matrices representing various scientific and structural workloads (e.g., human_gene1, F1, mycielskian15, pattern1).

Key Insights and Ideas

  • Exploiting True Hardware Concurrency: On a GPU, CUDA cores and Tensor Cores share registers and SM resources, meaning they typically execute sequentially. On an NPU, the matrix and vector engines have independent instruction streams and local buffers. NeutronSparse capitalizes on this architectural independence to run both engines simultaneously.
Fig. 2. Resource allocation in NPU AI Cores and GPU SMs.
  • Tile-Level vs. Element-Level Optimization: While GPU libraries focus on fine-grained, nonzero-level thread balancing, this approach fails on SIMD-based NPUs due to high preprocessing costs. Reshaping sparsity at the tile granularity is the key to making sparse data NPU-friendly without introducing prohibitive overhead.
  • Bisection-Style Convergence: The online workload migration mechanism acts like an iterative bisection search. Even when initialized with an intentionally ruined, extremely skewed workload, the runtime pipeline successfully balances the two engines within just 7 rounds.

Key Results

  • NPU Baseline Performance: NeutronSparse achieves an average speedup of 3.48× over MindSporeGL and 3.25× over dense AIC-based kernels on the Ascend 910B.
  • Cross-Platform Comparison: It delivers a 1.03× to 3.07× speedup over leading GPU libraries (cuSPARSE, DTC-SpMM, HC-SpMM) running on an NVIDIA A100.
  • Energy & Cost Efficiency: NeutronSparse demonstrates a lower average power draw (147.7W) compared to GPU alternatives (166.31W) and yields significantly higher performance-per-dollar across mainstream cloud rental metrics.
  • Portability: When ported to a completely different NPU architecture—the Cambricon MLU—NeutronSparse still achieved speedups ranging from 1.71× to 5.83×, proving its core design principles are universally applicable to tile-based accelerators.

Limitations and Future Work

  • Static Initial Split: The initial workload division relies on a lightweight, static cost model. While the runtime migration quickly smooths out imbalances, a learning-based initialization that predicts the optimal split directly from matrix features could minimize the initial warm-up overhead.
  • Architecture Dependencies: The adaptive coordinated pipelining is optimized for the decoupled engine design found in newer Ascend chips. Applying this framework to NPUs where matrix and vector units share tighter local buffer constraints would require additional backend-specific memory management.

Summary updated

BibTeX
@misc{ai2026neutronsparse,
  author = {Xin Ai and Zeyu Ling and Hao Yuan and Qiange Wang and Yanfeng Zhang and Yutao Peng and Ge Yu},
  title = {{NeutronSparse: Coordinating Heterogeneous Engines for Sparse Matrix Multiplication on NPUs}},
  year = {2026},
  eprint = {2606.22482},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.22482},
}
Figure