Papers
Topics
Authors
Recent
Search
2000 character limit reached

The Input/Output Complexity of Sparse Matrix Multiplication

Published 14 Mar 2014 in cs.DS | (1403.3551v1)

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 U×UU \times U matrices, Θ(U<sup>3</sup>/(BM))\Theta \left(U<sup>3</sup> / (B \sqrt{M}) \right) I/Os are necessary and sufficient in the I/O model with internal memory size MM and memory block size BB. In this paper we generalize the upper and lower bounds of Hong and Kung to the sparse case. Our bounds depend of the number N=nnz(A)+nnz(C)N = \mathtt{nnz}(A)+\mathtt{nnz}(C) of nonzero entries in AA and CC, as well as the number Z=nnz(AC)Z = \mathtt{nnz}(AC) of nonzero entries in ACAC. We show that ACAC can be computed using O~(NBmin⁡(ZM,NM))\tilde{O} \left(\tfrac{N}{B} \min\left(\sqrt{\tfrac{Z}{M}},\tfrac{N}{M}\right) \right) 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 Ω(NBmin⁡(ZM,NM))\Omega \left(\tfrac{N}{B} \min\left(\sqrt{\tfrac{Z}{M}},\tfrac{N}{M}\right) \right) 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 theno cancellation'' assumption.

Authors (2)
Citations (24)

Summary

No one has generated a summary of this paper yet.

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

No one has generated a whiteboard explanation for this paper yet.

Open Problems

We haven't generated a list of open problems mentioned in this paper yet.

Continue Learning

We haven't generated follow-up questions for this paper yet.