Bridging the Gap between Sparse Matrix Reordering and Factorization: A Deep Learning Framework for Fill-in Reduction
About
Sparse matrix reordering can significantly reduce the fill-in during matrix factorization, thereby decreasing the computational and storage requirements in sparse matrix computations. Finding a minimal fill-in ordering is known to be an NP-hard problem. Moreover, there is a paradox: matrix reordering is applied before matrix factorization, but fill-ins that matrix reordering methods aim at are generated from matrix factorization. To bridge the gap between reordering and factorization, we propose a deep learning framework to minimize a fill-in surrogate function based on spectral embedding. First, we employ a multi-grid-like GNN architecture to learn to approximate the smallest eigenvectors of its graph Laplacian matrix, i.e. spectral embedding, and capture the global structural information of the matrix. Then, another multi-grid-like GNN architecture is used to minimize the potential space where fill-in can occur based on the rank distribution. Experimental results indicate that our approach achieves competitive performance compared with traditional graph-theoretic algorithms and deep learning methods.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Matrix Reordering for LU Factorization | Benchmark Test Matrices MRP | LU Factorization Time (s)5.99 | 8 | |
| Matrix Reordering for LU Factorization | Benchmark Matrices SP (test) | LU Factorization Time (s)46.74 | 8 | |
| Matrix Reordering for LU Factorization | Benchmark Test Matrices CFD | LU Factorization Time (s)84.37 | 8 | |
| Matrix Reordering for LU Factorization | Benchmark Test Matrices 2D3D | LU Factorization Time (s)85.48 | 8 | |
| Matrix Reordering for LU Factorization | Benchmark Test Matrices TP | LU Factorization Time (s)399.8 | 8 | |
| Matrix Reordering for LU Factorization | Benchmark Test Matrices All | LU Factorization Time (s)71.44 | 8 | |
| Sparse Matrix Reordering | SuiteSparse matrix collection (test) | CFD59.57 | 8 | |
| Sparse Matrix Reordering | SuiteSparse 150 (test) | Mean MSP Score46.67 | 7 | |
| Sparse Matrix Reordering | SuiteSparse Matrix Collection 150 1.0 (test) | MSP Mean Time (s)52 | 7 |