The Time Complexity of Fully Sparse Matrix Multiplication
Abstract
What is the time complexity of matrix multiplication of sparse integer matrices with nonzeros in the input and nonzeros in the output? This paper provides improved upper bounds for this question for almost any choice of vs. , and provides evidence that these new bounds might be optimal up to further progress on fast matrix multiplication. Our main contribution is a new algorithm that reduces sparse matrix multiplication to dense (but smaller) rectangular matrix multiplication. Our running time thus depends on the optimal exponent of multiplying dense by matrices. We discover that when the time complexity of sparse matrix multiplication is , for all , where is the solution to the equation . No matter what turns out to be, and for all , the new bound beats the state of the art, and we provide evidence that it is optimal based on the complexity of the all-edge triangle problem. In particular, in terms of the input plus output size our algorithm runs in time . Even for Boolean matrices, this improves over the previous bound [Amossen, Pagh; 2009], which was a natural barrier since it coincides with the longstanding bound of all-edge triangle in sparse graphs [Alon, Yuster, Zwick; 1994]. We find it interesting that matrix multiplication can be solved faster than triangle detection in this natural setting. In fact, we establish an equivalence to a special case of the all-edge triangle problem.
Cite
@article{arxiv.2309.06317,
title = {The Time Complexity of Fully Sparse Matrix Multiplication},
author = {Amir Abboud and Karl Bringmann and Nick Fischer and Marvin Künnemann},
journal= {arXiv preprint arXiv:2309.06317},
year = {2023}
}