arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2203.16053cs.SCcs.DM
收藏

具有较低算术复杂度和IO复杂度的矩阵乘法

Matrix Multiplication with Less Arithmetic Complexity and IO Complexity

Pu Wu, Huiqing Jiang, Zehui Shao, Jin Xu

摘要:

自Strassen提出了第一个次立方矩阵乘法算法以来,人们又提出了许多类Strassen算法。大多数低渐近代价的方法具有较大的隐前导系数,因而是不实用的。Cenk和Hasan给出了一种降低前导系数的一般方法,将$<2,2,2;7>$ -算法的前导系数降低为$5$,但增加了IO复杂度。在2017年,Karstadt和Schwartz还通过交替基矩阵乘法方法将$<2,2,2;7>$ -算法的前导系数降低到$5$。同时,他们的方法降低了IO复杂度和低阶单项式的算术复杂度。在2019年,Beniamini和Schwartz推广了替代基矩阵乘法方法,降低了算术复杂度中的前导系数,但增加了IO复杂度。本文提出了一种新的矩阵乘法算法,该算法在运算复杂度和IO复杂度上都降低了前导系数。我们将我们的方法应用于Strassen类算法,提高了算法复杂度和IO复杂度(与以前的结果比较见表1和表2)。令人惊讶的是,我们的$<3,3,3;23>$ -算法的IO复杂度是$14n^{\log_323}M^{-\frac{1}{2}} + o(n^{\log_323})$,这打破了Ballard的IO复杂度下限($Ω(n^{\log_323}M^{1-\frac{\log_323}{2}})$)递归类Strassen算法。

英文摘要:

After Strassen presented the first sub-cubic matrix multiplication algorithm, many Strassen-like algorithms are presented. Most of them with low asymptotic cost have large hidden leading coefficient which are thus impractical. To reduce the leading coefficient, Cenk and Hasan give a general approach reducing the leading coefficient of $<2,2,2;7>$-algorithm to $5$ but increasing IO complexity. In 2017, Karstadt and Schwartz also reduce the leading coefficient of $<2,2,2;7>$-algorithm to $5$ by the Alternative Basis Matrix Multiplication method. Meanwhile, their method reduces the IO complexity and low-order monomials in arithmetic complexity. In 2019, Beniamini and Schwartz generalize Alternative Basis Matrix Multiplication method reducing leading coefficient in arithmetic complexity but increasing IO complexity. In this paper, we propose a new matrix multiplication algorithm which reduces leading coefficient both in arithmetic complexity and IO complexity. We apply our method to Strassen-like algorithms improving arithmetic complexity and IO complexity (the comparison with previous results are shown in Tables 1 and 2). Surprisingly, our IO complexity of $<3,3,3;23>$-algorithm is $14n^{\log_323}M^{-\frac{1}{2}} + o(n^{\log_323})$ which breaks Ballard's IO complexity low bound ($Ω(n^{\log_323}M^{1-\frac{\log_323}{2}})$) for recursive Strassen-like algorithms.

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

↑