Lune

SC2025Top-tier venue

Improving SpGEMM Performance Through Matrix-Reordering and Cluster-wise Computation

Abdullah Al Raqibul Islam, Helen Xu, Dong Dai, Aydin Buluç

Abstract

Sparse matrix-sparse matrix multiplication (SpGEMM) is a key kernel in many scientific applications and graph workloads. Unfortunately, SpGEMM is bottlenecked by data movement due to its irregular memory access patterns. Significant work has been devoted to developing row reordering schemes towards improving locality in sparse operations, but prior studies mostly focus on the case of sparse-matrix vector multiplication (SpMV).

In this paper, we address these issues with hierarchical clustering for SpGEMM that leverages both row reordering and cluster-wise computation to improve reuse in the second input (B) matrix with a novel row-clustered matrix format and access pattern in the first input (A) matrix. We find that hierarchical clustering can speed up SpGEMM by 1.39× on average with low preprocessing cost (less than 20× the cost of a single SpGEMM on about 90% of inputs). Furthermore, we decouple the reordering algorithm from the clustered matrix format so they can be applied as independent optimizations.

Additionally, this paper sheds light on the role of both row reordering and clustering independently and together for SpGEMM with a comprehensive empirical study of the effect of 10 different reordering algorithms and 3 clustering schemes on SpGEMM performance on a suite of 110 matrices. We find that reordering based on graph partitioning provides better SpGEMM performance than existing alternatives at the cost of high preprocessing time. The evaluation demonstrates that the proposed hierarchical clustering method achieves greater average speedup compared to other reordering schemes with similar preprocessing times.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

Questions to start from

Lune can draw on

the full paper · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Gamma: leveraging Gustavson's algorithm to accelerate sparse matrix multiplication cites A novel data transformation and execution strategy for accelerating sparse matrix multiplication on GPUs
Builds onCited byLeft to right by year; the more cited, the higher.

Builds on5

  1. Gamma: leveraging Gustavson's algorithm to accelerate sparse matrix multiplicationGuowei Zhang, Nithya Attaluri, Joel S. Emer, Daniel SánchezASPLOS 2021 · 158 citations
  2. A novel data transformation and execution strategy for accelerating sparse matrix multiplication on GPUsPeng Jiang, Changwan Hong, Gagan AgrawalPPoPP 2020 · 74 citations
  3. Bringing Order to Sparsity: A Sparse Matrix Reordering Study on Multicore CPUsJames D. Trotter, Sinan Ekmekçibasi, Johannes Langguth, Tugba Torun et al.SC 2023 · 20 citations
  4. A Sparsity-Aware Distributed-Memory Algorithm for Sparse-Sparse Matrix MultiplicationYuxi Hong, Aydin BuluçSC 2024 · 7 citations
  5. Accelerating GNNs on GPU Sparse Tensor Cores through N: M Sparsity-Oriented Graph ReorderingJou-An Chen, Hsin-Hsuan Sung, Ruifeng Zhang, Ang Li et al.PPoPP 2025 · 6 citations

Related papers

  1. Bootes: Boosting the Efficiency of Sparse Accelerators Using Spectral ClusteringSanjali Yadav, Bahar AsgariMICRO 2025 · 2 citations
  2. SpArch: Efficient Architecture for Sparse Matrix MultiplicationZhekai Zhang, Hanrui Wang, Song Han, William J. DallyHPCA 2020 · 280 citations
  3. Groot: Graph-Centric Row Reordering with Tree for Sparse Matrix Multiplications on Tensor CoresYuAng Chen, Jiadong Xie, Siyi Teng, Wenqi Zeng et al.EuroSys 2025 · 4 citations
  4. Accelerating SpMV for Scale-Free Graphs with Optimized BinsYuAng Chen, Jeffrey Xu YuICDE 2024 · 3 citations
  5. Rethinking Tiling and Dataflow for SpMM Acceleration: A Graph Transformation FrameworkAmir Ghazizadeh Ahsaei, Lingxiang Yin, Shilin Tian, Fangzhou Ye et al.MICRO 2025 · 4 citations
Dusk over the sea between two cliffs drawn in fine vertical lines