循环分解:稀疏矩阵重排的近端填充最小化
Factorization-in-Loop: Proximal Fill-in Minimization for Sparse Matrix Reordering
AI总结:
针对稀疏矩阵LU分解中填充导致的内存与计算开销问题,提出循环分解的近端填充最小化方法,通过重排网络优化三角因子l₁范数,在SuiteSparse上实现填充数减20%、分解时间减17.8%。
摘要:
填充是LU分解过程中生成的上三角和下三角因子之和中的新非零元素。对于大型稀疏矩阵,填充会增加内存使用量和计算时间,可通过适当的行或列排列(即矩阵重排)来减少。找到具有最小填充的行或列置换是NP难问题,因此设计了替代目标来推导填充减少置换或学习重排函数。然而,黄金标准与这些替代目标之间没有理论保证。在此,我们提出通过最小化重排矩阵的三角因子的l₁范数来学习重排网络,以近似填充的精确数量。重排网络利用图编码器预测行或列节点分数。在推理时,通过排序算法可轻松快速地从矩阵中推导置换。对于基于梯度的优化,预测的节点分数与优化目标中的结果三角因子之间存在较大差距。为了弥合这一差距,我们首先设计了两种重参数化技术,从节点分数中获得置换矩阵。通过乘以置换矩阵对矩阵进行重排。然后,我们将分解过程引入目标函数以得到目标三角因子。整体目标函数使用交替方向乘子法和近端梯度下降进行优化。在基准稀疏矩阵集合SuiteSparse上的实验结果表明,与最先进的基线相比,我们提出的方法的填充数量和LU分解时间分别减少了20%和17.8%。
英文摘要:
Fill-ins are new nonzero elements in the summation of the upper and lower triangular factors generated during LU factorization. For large sparse matrices, they will increase the memory usage and computational time, and be reduced through proper row or column arrangement, namely matrix reordering. Finding a row or column permutation with the minimal fill-ins is NP-hard, and surrogate objectives are designed to derive fill-in reduction permutations or learn a reordering function. However, there is no theoretical guarantee between the golden criterion and these surrogate objectives. Here we propose to learn a reordering network by minimizing \(l_1\) norm of triangular factors of the reordered matrix to approximate the exact number of fill-ins. The reordering network utilizes a graph encoder to predict row or column node scores. For inference, it is easy and fast to derive the permutation from sorting algorithms for matrices. For gradient based optimization, there is a large gap between the predicted node scores and resultant triangular factors in the optimization objective. To bridge the gap, we first design two reparameterization techniques to obtain the permutation matrix from node scores. The matrix is reordered by multiplying the permutation matrix. Then we introduce the factorization process into the objective function to arrive at target triangular factors. The overall objective function is optimized with the alternating direction method of multipliers and proximal gradient descent. Experimental results on benchmark sparse matrix collection SuiteSparse show the fill-in number and LU factorization time reduction of our proposed method is 20% and 17.8% compared with state-of-the-art baselines.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。