分布式内存系统上病态高瘦矩阵的QR分解
QR factorization of ill-conditioned tall-and-skinny matrices on distributed-memory systems
AI总结:
本文提出一种分布式内存系统上病态高瘦矩阵QR分解算法,通过交错CholeskyQR与Gram-Schmidt正交化提升数值稳定性,在CPU和GPU系统上分别比ScaLAPACK的Householder方法快6倍和80倍。
摘要:
本文提出了一种新颖的算法,用于在分布式内存系统上计算极端病态高瘦矩阵的QR分解。该算法基于避免通信的CholeskyQR2算法及其块Gram-Schmidt变体。后者提高了CholeskyQR2算法的数值稳定性,并且即使对于条件数高达$10^{15}$的矩阵,也能显著减少正交性的损失。目前,文献中尚无该算法的分布式GPU版本,这阻碍了该方法应用于非常大的矩阵。在我们的工作中,我们提供了该算法的分布式实现,并引入了一种改进版本,以提高性能,特别是在极端病态矩阵的情况下。我们方法的主要创新在于将CholeskyQR步骤与Gram-Schmidt正交化交错执行,这确保了更新步骤使用完全正交化的面板进行。我们改进后的算法所获得的正交性和数值稳定性与带Gram-Schmidt的CholeskyQR2以及其他最先进的方法相当。使用我们的测试矩阵进行的弱扩展测试显示出显著的性能提升。特别是,我们的算法在仅CPU系统上比ScaLAPACK中可用的最先进的基于Householder的QR分解算法快$6$倍,在具有分布式内存的GPU系统上快达$80\ imes$。
英文摘要:
In this paper we present a novel algorithm developed for computing the QR factorisation of extremely ill-conditioned tall-and-skinny matrices on distributed memory systems. The algorithm is based on the communication-avoiding CholeskyQR2 algorithm and its block Gram-Schmidt variant. The latter improves the numerical stability of the CholeskyQR2 algorithm and significantly reduces the loss of orthogonality even for matrices with condition numbers up to $10^{15}$. Currently, there is no distributed GPU version of this algorithm available in the literature which prevents the application of this method to very large matrices. In our work we provide a distributed implementation of this algorithm and also introduce a modified version that improves the performance, especially in the case of extremely ill-conditioned matrices. The main innovation of our approach lies in the interleaving of the CholeskyQR steps with the Gram-Schmidt orthogonalisation, which ensures that update steps are performed with fully orthogonalised panels. The obtained orthogonality and numerical stability of our modified algorithm is equivalent to CholeskyQR2 with Gram-Schmidt and other state-of-the-art methods. Weak scaling tests performed with our test matrices show significant performance improvements. In particular, our algorithm outperforms state-of-the-art Householder-based QR factorisation algorithms available in ScaLAPACK by a factor of $6$ on CPU-only systems and up to $80\times$ on GPU-based systems with distributed memory.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。