arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.19364cs.DC
收藏

Arrow 矩阵分解:一种通信高效稀疏矩阵乘法的创新方法

Arrow Matrix Decomposition: A Novel Approach for Communication-Efficient Sparse Matrix Multiplication

Lukas Gianinazzi, Alexandros Nikolaos Ziogas, Langwen Huang, Piotr Luczynski, Saleh Ashkboos, Florian Scheidl, Armon Carigiet, Chio Ge, Nabil Abubaker, Maciej B… 展开作者

Lukas Gianinazzi, Alexandros Nikolaos Ziogas, Langwen Huang, Piotr Luczynski, Saleh Ashkboos, Florian Scheidl, Armon Carigiet, Chio Ge, Nabil Abubaker, Maciej Besta, Tal Ben-Nun, Torsten Hoefler

AI总结:

本文提出将稀疏矩阵分解为少量 Arrow 矩阵并利用置换连接,实现通信避免的稀疏矩阵乘法,在数亿行矩阵上优于现有方法,具有近线性扩展性。

摘要:

我们提出了一种迭代稀疏矩阵与稠密矩阵乘法的新方法,这是科学计算和图神经网络训练中的基本计算内核。当矩阵规模超过单个计算节点的内存时,数据传输成为瓶颈。基于稠密矩阵乘法算法的方法会导致可扩展性欠佳,且无法利用问题中的稀疏性。为解决这些挑战,我们提出将稀疏矩阵分解为少量高度结构化的矩阵(称为 Arrow 矩阵),这些矩阵通过置换连接。我们的方法能够实现避免通信的乘法,对于对应平面图及其他排除小图(minor-excluded)的图族矩阵,每次迭代的通信量可实现多项式级减少。我们的评估表明,在具有数亿行的矩阵上,我们的方法优于最先进的稀疏矩阵乘法方法,并展现出近线性的强扩展和弱扩展性能。

英文摘要:

We propose a novel approach to iterated sparse matrix dense matrix multiplication, a fundamental computational kernel in scientific computing and graph neural network training. In cases where matrix sizes exceed the memory of a single compute node, data transfer becomes a bottleneck. An approach based on dense matrix multiplication algorithms leads to suboptimal scalability and fails to exploit the sparsity in the problem. To address these challenges, we propose decomposing the sparse matrix into a small number of highly structured matrices called arrow matrices, which are connected by permutations. Our approach enables communication-avoiding multiplications, achieving a polynomial reduction in communication volume per iteration for matrices corresponding to planar graphs and other minor-excluded families of graphs. Our evaluation demonstrates that our approach outperforms a state-of-the-art method for sparse matrix multiplication on matrices with hundreds of millions of rows, offering near-linear strong and weak scaling.

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

↑