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

低带宽模型中的稀疏矩阵乘法

Sparse Matrix Multiplication in the Low-Bandwidth Model

Chetan Gupta, Juho Hirvonen, Janne H. Korhonen, Jan Studený, Jukka Suomela

摘要:

我们研究低带宽模型中的矩阵乘法:有$n$计算机,我们需要计算两个$n \times n$矩阵的乘积。最初,计算机$i$知道每个输入矩阵的行$i$。在一个通信回合中,每台计算机可以发送和接收一个$O(\log n)$位消息。最后,计算机$i$必须输出乘积矩阵的行$i$。我们试图理解这个问题的复杂性,在均匀稀疏的情况下:每个输入矩阵的每一行和每一列最多有$d$非零,在产品矩阵,我们只需要知道在每一行或每一列中的最多$d$元素的值。这正是我们所拥有的设置,例如,当我们在最大度$d$的图中应用矩阵乘法进行三角形检测时。我们专注于支持的设置:矩阵的结构是已知的,只有非零元素的数值是未知的。有一种简单的算法可以在$O(d^2)$轮中解决该问题,但是对于大的$d$,已知存在更好的算法;在适度密集的状态下,该问题可以在$O(dn^{1/3})$通信循环中解决,并且对于非常大的$d$,主要解决方案是使用$O(n^{1.158})$通信循环的快速矩阵乘法算法(用于支持快速矩阵乘法的域和环上的矩阵乘法)。在这项工作中,我们表明,有可能克服二次障碍的所有值的$d$:我们提出了一个算法,解决了这个问题,在$O(d^{1.907})$轮的领域和环支持快速矩阵乘法和$O(d^{1.927})$轮的半环,独立的$n$。

英文摘要:

We study matrix multiplication in the low-bandwidth model: There are $n$ computers, and we need to compute the product of two $n \times n$ matrices. Initially computer $i$ knows row $i$ of each input matrix. In one communication round each computer can send and receive one $O(\log n)$-bit message. Eventually computer $i$ has to output row $i$ of the product matrix. We seek to understand the complexity of this problem in the uniformly sparse case: each row and column of each input matrix has at most $d$ non-zeros and in the product matrix we only need to know the values of at most $d$ elements in each row or column. This is exactly the setting that we have, e.g., when we apply matrix multiplication for triangle detection in graphs of maximum degree $d$. We focus on the supported setting: the structure of the matrices is known in advance; only the numerical values of nonzero elements are unknown. There is a trivial algorithm that solves the problem in $O(d^2)$ rounds, but for a large $d$, better algorithms are known to exist; in the moderately dense regime the problem can be solved in $O(dn^{1/3})$ communication rounds, and for very large $d$, the dominant solution is the fast matrix multiplication algorithm using $O(n^{1.158})$ communication rounds (for matrix multiplication over fields and rings supporting fast matrix multiplication). In this work we show that it is possible to overcome quadratic barrier for all values of $d$: we present an algorithm that solves the problem in $O(d^{1.907})$ rounds for fields and rings supporting fast matrix multiplication and $O(d^{1.927})$ rounds for semirings, independent of $n$.

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

↑