The Time Complexity of Fully Sparse Matrix Multiplication

Amir Abboud, Karl Bringmann, Nick Fischer, Marvin Künnemann

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

Abstract

What is the time complexity of matrix multiplication of sparse integer matrices with min nonzeros in the input and mout nonzeros in the output? This paper provides improved upper bounds for this question for almost any choice of min vs. mout, 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 na × nb by nb × nc matrices. We discover that when mout = Θ(mrin) the time complexity of sparse matrix multiplication is O(minσ+ϵ), 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 = min + mout our algorithm runs in time O(m1.3459). Even for Boolean matrices, this improves over the previous m ω2+1 ω +ϵ = O(m1.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.

Original languageEnglish
Title of host publicationProceedings of the 2024 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA)
EditorsDavid P Woodruff
Pages4670-4703
Number of pages34
ISBN (Electronic)978-1-61197-791-2
DOIs
StatePublished Online - 4 Jan 2024
Event35th Annual ACM-SIAM Symposium on Discrete Algorithms, SODA 2024 - Alexandria, United States
Duration: 7 Jan 202410 Jan 2024

Conference

Conference35th Annual ACM-SIAM Symposium on Discrete Algorithms, SODA 2024
Country/TerritoryUnited States
CityAlexandria
Period7/01/2410/01/24

All Science Journal Classification (ASJC) codes

  • Software
  • General Mathematics

Fingerprint

Dive into the research topics of 'The Time Complexity of Fully Sparse Matrix Multiplication'. Together they form a unique fingerprint.

Cite this