基于Strassen算法的可高效并行化矩阵与其转置的乘法
Efficiently Parallelizable Strassen-Based Multiplication of a Matrix by its Transpose
AI总结:
本研究提出缓存无关的ATA算法,以Strassen算法为子例程计算矩阵转置乘积$A^T A$,降低计算成本、节省内存,在共享内存与分布式环境下均展现出良好的可扩展性与优于现有方法的性能。
摘要:
矩阵与其转置的乘法$A^T A$是众多问题求解过程中的一项中间运算。本文提出一种新的缓存无关算法ATA用于计算该乘积,该算法以经典Strassen算法作为子例程。具体而言,我们将计算成本降至Strassen算法所需时间的$\frac{2}{3}$,总计需要$\frac{14}{3}n^{\text{log}_2 7}$次浮点运算。ATA适用于一般矩形矩阵,并利用所得乘积矩阵的特殊对称性节省内存。此外,我们在共享内存系统中对ATA进行了全面的实现研究,并将其适用性扩展到分布式环境。为验证我们的研究结果,我们将该算法与专门用于计算$A^T A$的前沿解决方案进行了对比。实验表明,该算法在矩阵规模和参与进程数方面均具有良好的可扩展性,并且与文献中的其他方法相比,在并行模式和串行实现上均表现出优异的性能。
英文摘要:
The multiplication of a matrix by its transpose, $A^T A$, appears as an intermediate operation in the solution of a wide set of problems. In this paper, we propose a new cache-oblivious algorithm (ATA) for computing this product, based upon the classical Strassen algorithm as a sub-routine. In particular, we decrease the computational cost to $\frac{2}{3}$ the time required by Strassen's algorithm, amounting to $\frac{14}{3}n^{\log_2 7}$ floating point operations. ATA works for generic rectangular matrices, and exploits the peculiar symmetry of the resulting product matrix for saving memory. In addition, we provide an extensive implementation study of ATA in a shared memory system, and extend its applicability to a distributed environment. To support our findings, we compare our algorithm with state-of-the-art solutions specialized in the computation of $A^T A$. Our experiments highlight good scalability with respect to both the matrix size and the number of involved processes, as well as favorable performance for both the parallel paradigms and the sequential implementation, when compared with other methods in the literature.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。