Fast Hierarchical Solvers For Sparse Matrices Using Extended Sparsification and Low-Rank Approximation

Hadi Pouransari, Pieter Coulier, Eric Darve

Abstract

Inversion of sparse matrices with standard direct solve schemes is robust but computationally expensive. Iterative solvers, on the other hand, demonstrate better scalability but need to be used with an appropriate preconditioner (e.g., ILU, AMG, Gauss–Seidel) for proper convergence. The choice of an effective preconditioner is highly problem-dependent. We propose a novel fully algebraic sparse matrix solve algorithm. The computational complexity is linear under the assumption that fill-in blocks have bounded rank. Our scheme is based on Gauss elimination. For a given matrix, we approximate the LU factorization with a tunable accuracy determined a priori. This method can be used as a stand-alone direct solver, or it can be used as a black-box preconditioner in conjunction with iterative methods such as GMRES. The proposed solver is based on the low-rank approximation of fill-ins generated during the elimination. Similar to $\mathcal{H}$-matrices, fill-ins corresponding to blocks that are well-separated in the adjacency graph are represented via a hierarchical structure. The linear complexity of the algorithm is guaranteed if the blocks corresponding to well-separated clusters of variables are numerically low-rank.

Introduction

Solving large, sparse linear systems ($Ax = b$) is a cornerstone of scientific computing, essential for fields ranging from structural engineering to fluid dynamics. Traditionally, practitioners choose between Direct Solvers (e.g., LU factorization) and Iterative Solvers. While direct solvers are robust, they suffer from "fill-in"—the creation of new non-zero entries during elimination that increases memory and computational costs to $O(n^2)$ for 3D problems. Iterative solvers are faster but often require highly specialized preconditioners to ensure convergence.

This research introduces a solver that bridges this gap: it is as robust as a direct method but as scalable as an iterative one. By targeting the "fill-in" wall specifically in 3D problems, the proposed algorithm maintains efficiency even as problem sizes grow into the millions of variables.

Hierarchical Solver Architecture

The core of the algorithm is a "breadth-first" hierarchical approach. Unlike many existing hierarchical solvers that require geometric information (like physical coordinates), this method is fully algebraic, operating solely on the adjacency graph of the matrix.

The H-tree structure used for hierarchical partitioning and level-by-level elimination.

The process begins with Hierarchical Partitioning, where the matrix is recursively divided into clusters using an H-tree. The elimination and compression then proceed level-by-level, traversing from the leaves of the tree up to the root. This structure allows the solver to manage interactions between different parts of the system systematically.

Extended Sparsification and Auxiliary Variables

The "secret sauce" of this approach is Extended Sparsification. During Gauss elimination, when an interaction (fill-in) is created between two "well-separated" clusters, the algorithm avoids storing a dense block. Instead, it approximates the block using a low-rank decomposition ($U V^T$).

Illustration of variable elimination and the introduction of auxiliary variables to maintain sparsity.

To maintain the matrix's sparsity, the algorithm introduces auxiliary variables to represent these low-rank interactions. These variables act as "proxies," effectively decoupling distant parts of the graph. Instead of every node in one cluster interacting with every node in another, they communicate through a small set of shared auxiliary variables. This prevents the explosion of non-zero entries that typically cripples direct solvers.

Key Results and Performance

The solver, dubbed LoRaSp, was evaluated on several challenging benchmarks, including 3D Poisson equations, 3D elasticity problems, and non-symmetric advection-diffusion systems.

  • Linear Complexity: Benchmarks confirm that both factorization time and memory usage scale linearly $O(n)$ with the number of unknowns, even for complex 3D meshes.
  • Superior Preconditioning: As a preconditioner for GMRES, LoRaSp drastically outperformed standard methods. In a 3D elasticity test with 10 million non-zeros, LoRaSp converged in 16 iterations, while standard ILU failed to converge within 500 iterations.
  • Tunable Precision: Users can choose a truncation threshold ($\epsilon$). A loose $\epsilon$ provides a fast preconditioner, while a tight $\epsilon$ yields a highly accurate direct solver.

Conclusion and Future Work

While LoRaSp demonstrates linear complexity and robustness to indefinite systems, current implementations rely on SVD for compression, which can be a bottleneck. Future improvements may include using Randomized SVD or Adaptive Cross Approximation (ACA) to accelerate the compression phase. Additionally, the hierarchical, block-based nature of the algorithm is highly suited for parallelization on modern GPU architectures, offering a path toward even greater performance in large-scale scientific simulations.

Summary updated

BibTeX
@article{pouransari2017fast,
  author = {Hadi Pouransari and Pieter Coulier and Eric Darve},
  title = {{Fast Hierarchical Solvers For Sparse Matrices Using Extended Sparsification and Low-Rank Approximation}},
  journal = {SIAM J. Sci. Comput.},
  year = {2017},
  url = {https://openreview.net/forum?id=lRApAKzqNsa},
}
Figure