通过采样与机会性矩阵乘法的矩阵乘法算法
Algorithms for matrix multiplication via sampling and opportunistic matrix multiplication
AI总结:
本文提出一种基于采样构造更大矩阵并单次运行 broken 乘法算法的近似矩阵乘法方法,将渐近运行时间从 $O(n^{2.778})$ 改进到 $O(n^{2.763})$,并评估了其实际运行时间,指出仍需进一步优化才能具备竞争力。
摘要:
Karppa 与 Kaski(2019)提出了一种新颖的“broken”或“opportunistic”矩阵乘法算法,该算法基于 Strassen 算法的一个变体,并利用它开发了用于布尔矩阵乘法等任务的新算法。他们的算法可以在 $O(n^{2.778})$ 时间内计算布尔矩阵乘法。虽然存在渐近更快的矩阵乘法算法,但大多数此类算法在实际问题中不可行。我们描述了另一种使用 broken 乘法算法来近似计算矩阵乘法的方法,适用于实值矩阵或布尔矩阵。简而言之,我们不是对原始输入矩阵运行 broken 算法的多次迭代,而是通过采样构造一个新的更大矩阵,并在其上运行单次 broken 算法迭代。渐近地,我们的算法运行时间为 $O(n^{2.763})$,比 Karppa-Kaski 算法略有改进。由于目标是获得新的实用矩阵乘法算法,我们还估计了我们的算法在一些大规模样本问题上的具体运行时间。结果表明,对于这些参数,仍需要进一步优化才能使我们的算法具有竞争力。
英文摘要:
Karppa & Kaski (2019) proposed a novel ``broken" or ``opportunistic" matrix multiplication algorithm, based on a variant of Strassen's algorithm, and used this to develop new algorithms for Boolean matrix multiplication, among other tasks. Their algorithm can compute Boolean matrix multiplication in $O(n^{2.778})$ time. While asymptotically faster matrix multiplication algorithms exist, most such algorithms are infeasible for practical problems. We describe an alternative way to use the broken multiplication algorithm to approximately compute matrix multiplication, either for real-valued or Boolean matrices. In brief, instead of running multiple iterations of the broken algorithm on the original input matrix, we form a new larger matrix by sampling and run a single iteration of the broken algorithm on it. Asymptotically, our algorithm has runtime $O(n^{2.763})$, a slight improvement over the Karppa-Kaski algorithm. Since the goal is to obtain new practical matrix-multiplication algorithms, we also estimate the concrete runtime for our algorithm for some large-scale sample problems. It appears that for these parameters, further optimizations are still needed to make our algorithm competitive.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。