A novel data transformation and execution strategy for accelerating sparse matrix multiplication on GPUs
Peng Jiang, Changwan Hong, Gagan Agrawal
Abstract
SpMM (multiplication of a sparse matrix and a dense matrix) and SDDMM (sampled dense-dense matrix multiplication) are at the core of many scientific, machine learning, and data mining applications. Because of the irregular memory accesses, the two kernels have poor data locality, and data movement overhead is a bottleneck for their performance. To overcome this issue, previous works have proposed using tiling and data reorganization to enhance data reuse. Despite their success in improving the performance for many sparse matrices, we find that the efficacy of existing techniques largely depends on how the non-zeros are distributed in a sparse matrix. In this work, we propose a novel row-reordering technique to improve data locality for SpMM and SDDMM on GPUs. The goal of such row reordering is to place similar rows close to each other, allowing them to be processed together, and thus providing better temporal locality for the values of the dense matrix. We focus on performing the row-reordering efficiently, by using a hierarchical clustering procedure optimized by locality-sensitive hashing. We also investigate when row-reordering is useful, and what factors the performance gains from our method are correlated to. Experimental evaluation using 1084 sparse matrices from SuiteSparse collection and Network Repository shows that our technique achieves up to 2.91x speedup for SpMM and up to 3.19x speedup for SDDMM against the state-of-the-art alternatives on an Nvidia P100 GPU.
Ask about this paper
Ask your agent about it.
Lune has read the top-tier papers around this one, so every answer names the papers it rests on.
Your agent calls
Lunesearch_papers
Free to start. No credit card required.
Terminal
Install the CLIlune papers get 314e61f5-861c-400f-a477-d9030b4c0cfbCited by top-tier papers14
- Mastering Sparse CUDA Generation through Pretrained Models and Deep Reinforcement LearningYaoyu Wang, Hankun Dai, Zhidong Yang, Junmin Xiao et al.ICLR 2026 · 476 citations
- Gamma: leveraging Gustavson's algorithm to accelerate sparse matrix multiplicationGuowei Zhang, Nithya Attaluri, Joel S. Emer, Daniel SánchezASPLOS 2021 · 158 citations
- Understanding and bridging the gaps in current GNN performance optimizationsKezhao Huang, Jidong Zhai, Zhen Zheng, Youngmin Yi et al.PPoPP 2021 · 87 citations
- DTC-SpMM: Bridging the Gap in Accelerating General Sparse Matrix Multiplication with Tensor CoresRuibo Fan, Wei Wang, Xiaowen ChuASPLOS 2024 · 46 citations
- Heuristic adaptability to input dynamics for SpMM on CPUsGuohao Dai, Guyue Huang, Shang Yang, Zhongming Yu et al.DAC 2022 · 27 citations
Related papers
- Improving SpGEMM Performance Through Matrix-Reordering and Cluster-wise ComputationAbdullah Al Raqibul Islam, Helen Xu, Dong Dai, Aydin BuluçSC 2025 · 2 citations
- A Row Decomposition-based Approach for Sparse Matrix Multiplication on GPUsMeng Pang, Xiang Fei, Peng Qu, Youhui Zhang et al.PPoPP 2024 · 29 citations
- 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
- Efficient tiled sparse matrix multiplication through matrix signaturesSüreyya Emre Kurt, Aravind Sukumaran-Rajam, Fabrice Rastello, P. SadayappanSC 2020 · 20 citations
- RASSM: Residue-based Acceleration of Single Sparse Matrix Computation via Adaptive TilingAnirudh Jain, Pulkit Gupta, Thomas M. ConteASPLOS 2025 · 1 citation
