方阵乘法混合算法的I/O复杂度
The I/O complexity of hybrid algorithms for square matrix multiplication
摘要:
本文导出了一类计算$n \times n$方阵乘积的混合算法的I/O复杂度的渐近紧下界,该混合算法结合了具有计算复杂度$Θ{n^{\log_2 7}}$的“\emph{Strassen-like}”快速矩阵乘法方法和具有计算复杂度$Ω\left(n^3\right)$的“\emph{standard} "矩阵乘法算法.我们提出了一个新的和紧密的$Ω\left(\left(\frac{n}{\max\{\sqrt{M},n_0\}}\right)^{\log_2 7}\left(\max\{1,\frac{n_0}{M}\}\right)^3M\right)$下界的I/O复杂性的一类"\emph{uniform, non-stationary}“混合算法时,执行在一个两级存储层次结构与$M$字的快速存储器,其中$n_0$表示的阈值大小的子问题,使用标准算法计算的代数复杂性$Ω\left(n^3\right)$。下限实际上是为更一般的“\emph{non-uniform, non-stationary}”混合算法类推导的,这种混合算法允许递归调用具有不同的结构,即使它们涉及相同大小和相同递归级别的矩阵乘法,尽管定量表达式变得更加复杂。我们的研究结果是第一个I/O下界为这些类的混合算法。所有提出的下界适用,即使重新计算的部分结果是允许的,是渐近紧。证明技术结合分析的格里戈里耶夫流的矩阵乘法函数,组合特性的编码功能所使用的快速Strassen算法,并应用Loomis-惠特尼几何定理的分析标准矩阵乘法算法。与$P$处理器的并行模型的下界的扩展进行了讨论。
英文摘要:
Asymptotically tight lower bounds are derived for the I/O complexity of a general class of hybrid algorithms computing the product of $n \times n$ square matrices combining ``\emph{Strassen-like}'' fast matrix multiplication approach with computational complexity $Θ{n^{\log_2 7}}$, and ``\emph{standard}'' matrix multiplication algorithms with computational complexity $Ω\left(n^3\right)$. We present a novel and tight $Ω\left(\left(\frac{n}{\max\{\sqrt{M},n_0\}}\right)^{\log_2 7}\left(\max\{1,\frac{n_0}{M}\}\right)^3M\right)$ lower bound for the I/O complexity a class of ``\emph{uniform, non-stationary}'' hybrid algorithms when executed in a two-level storage hierarchy with $M$ words of fast memory, where $n_0$ denotes the threshold size of sub-problems which are computed using standard algorithms with algebraic complexity $Ω\left(n^3\right)$. The lower bound is actually derived for the more general class of ``\emph{non-uniform, non-stationary}'' hybrid algorithms which allow recursive calls to have a different structure, even when they refer to the multiplication of matrices of the same size and in the same recursive level, although the quantitative expressions become more involved. Our results are the first I/O lower bounds for these classes of hybrid algorithms. All presented lower bounds apply even if the recomputation of partial results is allowed and are asymptotically tight. The proof technique combines the analysis of the Grigoriev's flow of the matrix multiplication function, combinatorial properties of the encoding functions used by fast Strassen-like algorithms, and an application of the Loomis-Whitney geometric theorem for the analysis of standard matrix multiplication algorithms. Extensions of the lower bounds for a parallel model with $P$ processors are also discussed.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。