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

共享内存架构下的斜对称矩阵分解

Skew-Symmetric Matrix Decompositions on Shared-Memory Architectures

Ishna Satyarth, Chao Yin, Devin A. Matthews, Maggie Myers, Robert van de Geijn, RuQing G. Xu

AI总结:

针对斜对称矩阵分解研究不足的问题,本工作利用斜对称性研究LTL^T分解,结合FLAME方法推导算法,借助BLIS框架新特性实现高性能并行CPU版本,性能大幅优于已有工作。

摘要:

斜对称矩阵的因式分解是稠密线性代数中一个研究严重不足的领域,尤其是与一般矩阵和对称矩阵的因式分解相比。虽然部分算法可以从对称矩阵的情形改编而来,但利用斜对称性可以降低算法的计算成本。\n本工作研究了斜对称矩阵$X$的$LTL^\mathrm{T}$分解,其中$L$是单位下三角矩阵,$T$是三对角矩阵,该分解也被称为三角三对角化。这一运算可用于计算$X$的行列式(值为斜对称三对角矩阵$T$的Pfaffian(普法夫式,可低成本计算)的平方),还可用于求解方程组,应用领域涵盖量子电子结构和机器学习等。该运算的应用通常还需要选主元以提升数值稳定性。\n我们将已发表的算法与采用FLAME(形式化线性代数方法工程)方法系统推导的算法进行了对比分析。通过在多个层级融合操作以降低内存流量开销,我们实现了高性能的并行CPU实现。其中一个关键因素是利用了BLAS-like Library Instantiation Software(BLIS,类BLAS库实例化软件)框架的新功能:该框架现在支持通过利用其gemm及其他内核、分层并行性和缓存分块,来实现二级和三级类BLAS运算的类型转换。一个原型化的简洁C++ API可将构造即正确的算法转化为正确的代码。实验验证表明,所得实现的性能大幅超越了以往工作。

英文摘要:

The factorization of skew-symmetric matrices is a critically understudied area of dense linear algebra, particularly in comparison to that of general and symmetric matrices. While some algorithms can be adapted from the symmetric case, the cost of algorithms can be reduced by exploiting skew-symmetry. This work examines the factorization of a skew-symmetric matrix $X$ into its $LTL^\mathrm{T}$ decomposition, where $L$ is unit lower triangular and $T$ is tridiagonal. This is also known as a triangular tridiagonalization. This operation is a means for computing the determinant of $X$ as the square of the (cheaply-computed) Pfaffian of the skew-symmetric tridiagonal matrix $T$ as well as for solving systems of equations, across fields such as quantum electronic structure and machine learning. Its application also often requires pivoting in order to improve numerical stability. We compare and contrast previously-published algorithms with those systematically derived using the FLAME methodology. Performant parallel CPU implementations are achieved by fusing operations at multiple levels in order to reduce memory traffic overhead. A key factor is the employment of new capabilities of the BLAS-like Library Instantiation Software (BLIS) framework, which now supports casting level-2 and level-3 BLAS-like operations by leveraging its gemm and other kernels, hierarchical parallelism, and cache blocking. A prototype, concise C++ API facilitates the translation of correct-by-construction algorithms into correct code. Experiments verify that the resulting implementations greatly exceed the performance of previous work.

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

↑