三维空间中的细粒度计算:矩阵乘法与图问题
Fine-Grained Computation in 3-Space: Matrix Multiplication and Graph Problems
AI总结:
本文基于经典物理约束,提出了三维空间中矩阵乘法及图和迷宫问题的最优细粒度算法,证明了三维网格在渐近意义上优于现有并行算法并确立了计算下界。
摘要:
遵循经典物理学施加的约束,我们给出了矩阵乘法以及涉及图和迷宫问题的最优细粒度算法,其中所有计算均在三维空间中进行。我们假设无论采用何种技术,一个比特都需要一个最小体积,且通信以有界速度传播。这些意味着乘以 $n \ imes n$ 矩阵需要 $Ω(n^{2/3})$ 的时间,而我们证明这可以通过由 $n^2$ 个处理器组成的细粒度三维网格来实现。虽然常数在实际中过大而不可行,但这在渐近意义上比 Strassen 算法的并行实现更快,而下界证明了在三维空间中并行化更快的串行算法的某些主张是不可能的。如果矩阵不在环上,则可以通过扩展到比输入更大的网格,在 $Θ(n^{3/4})$ 时间内完成乘法。在二维(如芯片表面)中,这种方法毫无用处,即使矩阵在环上,$Θ(n)$ 的脉动算法也是最优的。类似地,对于路径和迷宫问题,存在在三维中有用但在二维中无用的方法。
英文摘要:
Obeying constraints imposed by classical physics, we give optimal fine-grained algorithms for matrix multiplication and problems involving graphs and mazes, where all calculations are done in 3-dimensional space. We assume that whatever the technology is, a bit requires a minimum volume and communication travels at a bounded speed. These imply that multiplying $n \times n$ matrices takes $Ω(n^{2/3})$ time, and we show that this can be achieved by a fine-grained 3-d mesh of $n^2$ processors. While the constants are impractically large, this is asymptotically faster than parallel implementations of Strassen's algorithm, while the lower bound shows that some claims about parallelizing faster serial algorithms are impossible in 3-space. If the matrices are not over a ring then multiplication can be done in $Θ(n^{3/4})$ time by expanding to a mesh larger than the input. In 2-d (such as the surface of a chip) this approach is useless and $Θ(n)$ systolic algorithms are optimal even when the matrices are over a ring. Similarly, for path and maze problems there are approaches useful in 3-d but not 2-d.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。