The Time Complexity of Fully Sparse Matrix Multiplication

09/12/2023
by   Amir Abboud, et al.
0

What is the time complexity of matrix multiplication of sparse integer matrices with m_in nonzeros in the input and m_out nonzeros in the output? This paper provides improved upper bounds for this question for almost any choice of m_in vs. m_out, 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 ω(a,b,c) of multiplying dense n^a× n^b by n^b× n^c matrices. We discover that when m_out=Θ(m_in^r) the time complexity of sparse matrix multiplication is O(m_in^σ+ϵ), for all ϵ > 0, where σ is the solution to the equation ω(σ-1,2-σ,1+r-σ)=σ. No matter what ω(·,·,·) turns out to be, and for all r∈(0,2), 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 m = m_in + m_out our algorithm runs in time O(m^1.3459). Even for Boolean matrices, this improves over the previous m^2ω/ω+1+ϵ=O(m^1.4071) 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.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
07/16/2023

New Bounds for Matrix Multiplication: from Alpha to Omega

The main contribution of this paper is a new improved variant of the las...
research
04/17/2021

Approximate Triangle Counting via Sampling and Fast Matrix Multiplication

There is a trivial O(n^3/T) time algorithm for approximate triangle coun...
research
03/02/2022

Sparse matrix multiplication in the low-bandwidth model

We study matrix multiplication in the low-bandwidth model: There are n c...
research
09/08/2020

Approximate Multiplication of Sparse Matrices with Limited Space

Approximate matrix multiplication with limited space has received ever-i...
research
06/24/2018

On Nondeterministic Derandomization of Freivalds' Algorithm: Consequences, Avenues and Algorithmic Progress

Motivated by studying the power of randomness, certifying algorithms and...
research
03/04/2022

Beyond Time Complexity: Data Movement Complexity Analysis for Matrix Multiplication

Data movement is becoming the dominant contributor to the time and energ...
research
02/13/2018

Sparse Matrix Multiplication with Bandwidth Restricted All-to-All Communication

We show how to multiply two n × n matrices over semirings in the Congest...

Please sign up or login with your details

Forgot password? Click here to reset