arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2309.06317cs.DS
收藏

全稀疏矩阵乘法的时间复杂度

The Time Complexity of Fully Sparse Matrix Multiplication

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

AI总结:

本文提出一种将稀疏矩阵乘法转化为稠密矩形矩阵乘法的新算法,在几乎所有的输入与输出非零元素组合下改进了时间复杂度上界,并基于全边三角形问题提供了最优性证据。

摘要:

输入具有 $m_{in}$ 个非零元素、输出具有 $m_{out}$ 个非零元素的稀疏整数矩阵乘法的时间复杂度是多少?本文针对几乎任何 $m_{in}$ 与 $m_{out}$ 的组合,为该问题提供了改进的上界,并提供了证据表明,在快速矩阵乘法取得进一步进展的前提下,这些新界可能是最优的。\n我们的主要贡献是一种新算法,该算法将稀疏矩阵乘法转化为稠密(但更小)的矩形矩阵乘法。因此,我们的运行时间取决于乘以稠密 $n^a\times n^b$ 与 $n^b\times n^c$ 矩阵的最优指数 $ω(a,b,c)$。我们发现,当 $m_{out}=Θ(m_{in}^r)$ 时,对于所有 $ε> 0$,稀疏矩阵乘法的时间复杂度为 $O(m_{in}^{σ+ε})$,其中 $σ$ 是方程 $ω(σ-1,2-σ,1+r-σ)=σ$ 的解。无论 $ω(\cdot,\cdot,\cdot)$ 最终是多少,且对于所有 $r\in(0,2)$,新界都优于现有技术水平,并且我们基于全边三角形问题的复杂性提供了其最优性的证据。\n具体而言,以输入加输出规模 $m = m_{in} + m_{out}$ 表示,我们的算法运行时间为 $O(m^{1.3459})$。即使对于布尔矩阵,这也改进了先前的 $m^{\frac{2ω}{ω+1}+ε}=O(m^{1.4071})$ 界 [Amossen, Pagh; 2009],该界曾是一个自然障碍,因为它与稀疏图中全边三角形的长期存在的界 [Alon, Yuster, Zwick; 1994] 相吻合。我们发现有趣的是,在这种自然设置下,矩阵乘法的求解速度可以快于三角形检测。事实上,我们建立了一个与全边三角形问题特例的等价性。

英文摘要:

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\times n^b$ by $n^b\times 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 $ω(\cdot,\cdot,\cdot)$ turns out to be, and for all $r\in(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^{\frac{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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑