On Efficient Large Sparse Matrix Chain Multiplication
Open Access
- 29 May 2024
- journal article
- research article
- Published by Association for Computing Machinery (ACM) in Proceedings of the ACM on Management of Data
- Vol. 2 (3) , 1-27
Abstract
Sparse matrices are often used to model the interactions among different objects and they are prevalent in many areas including e-commerce, social network, and biology. As one of the fundamental matrix operations, the sparse matrix chain multiplication (SMCM) aims to efficiently multiply a chain of sparse matrices, which has found various real-world applications in areas like network analysis, data mining, and machine learning. The efficiency of SMCM largely hinges on the order of multiplying the matrices, which further relies on the accurate estimation of the sparsity values of intermediate matrices. Existing matrix sparsity estimators often struggle with large sparse matrices, because they suffer from the accuracy issue in both theory and practice. To enable efficient SMCM, in this paper we introduce a novel row-wise sparsity estimator (RS-estimator), a straightforward yet effective estimator that leverages matrix structural properties to achieve efficient, accurate, and theoretically guaranteed sparsity estimation. Based on the RS-estimator, we propose a novel ordering algorithm for determining a good order of efficient SMCM. We further develop an efficient parallel SMCM algorithm by effectively utilizing multiple CPU threads. We have conducted experiments by multiplying various chains of large sparse matrices extracted from five real-world large graph datasets, and the results demonstrate the effectiveness and efficiency of our proposed methods. In particular, our SMCM algorithm is up to three orders of magnitude faster than the state-of-the-art algorithms.Keywords
Funding Information
- NSFC (2202412, 62102341, 6230242)
- Basic and Applied Basic Research Fund in Guangdong Province (2023A1515011280)
- Guangdong Talent Program (2021QN02X826)
This publication has 57 references indexed in Scilit:
- GCNAX: A Flexible and Energy-efficient Accelerator for Graph Convolutional Neural Networks2021
- SpArch: Efficient Architecture for Sparse Matrix Multiplication2020
- Scaling sparse matrix-matrix multiplication in the accumulo databaseDistributed and Parallel Databases, 2019
- OuterSPACE: An Outer Product Based Sparse Matrix Multiplication Accelerator2018
- Fast linear algebra-based triangle counting with KokkosKernels2017
- In-Memory Distributed Matrix Computation Processing and Optimization2017
- A framework for general sparse matrix–matrix multiplication on GPUs and heterogeneous processorsJournal of Parallel and Distributed Computing, 2015
- Parallel Efficient Sparse Matrix-Matrix Multiplication on Multicore Platforms2015
- Design space exploration for sparse matrix‐matrix multiplication on FPGAsInternational Journal of Circuit Theory and Applications, 2011
- Structure Prediction and Computation of Sparse Matrix ProductsJournal of Combinatorial Optimization, 1998