The Input/Output Complexity of Sparse Matrix Multiplication
Abstract
We consider the problem of multiplying sparse matrices (over a semiring) where the number of non-zero entries is larger than main memory. In the classical paper of Hong and Kung (STOC '81) it was shown that to compute a product of dense matrices, I/Os are necessary and sufficient in the I/O model with internal memory size and memory block size . In this paper we generalize the upper and lower bounds of Hong and Kung to the sparse case. Our bounds depend of the number of nonzero entries in and , as well as the number of nonzero entries in . We show that can be computed using I/Os, with high probability. This is tight (up to polylogarithmic factors) when only semiring operations are allowed, even for dense rectangular matrices: We show a lower bound of I/Os. While our lower bound uses fairly standard techniques, the upper bound makes use of ``compressed matrix multiplication'' sketches, which is new in the context of I/O-efficient algorithms, and a new matrix product size estimation technique that avoids the ``no cancellation'' assumption.
Cite
@article{arxiv.1403.3551,
title = {The Input/Output Complexity of Sparse Matrix Multiplication},
author = {Rasmus Pagh and Morten Stöckel},
journal= {arXiv preprint arXiv:1403.3551},
year = {2014}
}
Comments
Submitted to ICALP 2014