Scalable Linear Time Dense Direct Solver for 3-D Problems without Trailing Sub-Matrix Dependencies

Qianxiang Ma, Sameer Deshmukh, Rio Yokota

Abstract

Direct solvers for large-scale dense matrices are essential for high-fidelity 3D physical simulations but are often limited by $O(N^3)$ computational complexity. While hierarchical matrix formats like $\mathcal{H}^2$ can reduce this to $O(N)$, they typically introduce serial bottlenecks during factorization due to trailing sub-matrix dependencies. This paper presents a novel $\mathcal{H}^2$-matrix solver that eliminates these dependencies by pre-computing potential "fill-ins" and integrating them into a shared basis. The resulting algorithm achieves true linear-time complexity and high parallelism, demonstrating up to a 4,700x speedup over state-of-the-art block low-rank solvers on large-scale 3D biological simulations.

Introduction

In fields ranging from electromagnetics to computational biology, researchers frequently encounter large dense matrices arising from boundary element methods or kernel-based statistics. Standard factorization techniques, such as LU or Cholesky decomposition, scale at $O(N^3)$, making them computationally prohibitive as problem sizes grow. To address this, hierarchical matrix formats have been developed to compress these matrices into low-rank blocks, aiming for $O(N)$ or near-$O(N)$ complexity.

However, a significant trade-off exists between existing formats. Hierarchical Semi-Separable (HSS) matrices are highly parallelizable but suffer from "rank explosion" in 3D problems, losing their efficiency. Conversely, $\mathcal{H}^2$-matrices maintain small ranks in 3D through "strong admissibility" but introduce complex "fill-ins" during factorization. These fill-ins create trailing sub-matrix dependencies, where subsequent operations must wait for previous updates to complete, hindering scalability on modern supercomputers.

Methodology: Removing the Catch-22

The researchers from the Tokyo Institute of Technology have bridged this gap by modifying the Unitary-Low-rank-V (ULV) factorization approach. Their innovation centers on a two-phase process that removes the need for dynamic updates during the factorization stage.

1. Pre-computing Fill-ins via the Nullity Theorem

Using the Nullity Theorem—which posits that the LU factors of a matrix retain the same low-rank structure as the original matrix—the authors identify exactly where fill-ins will occur before the main factorization begins. This allows the solver to map out the structural changes to the matrix in advance.

2. Shared Basis Integration

Once the potential fill-ins are identified, the solver "augments" the shared column and row bases of the $\mathcal{H}^2$-matrix. By incorporating the information from future fill-ins into the initial basis, the basis becomes "future-proof."

3. Dependency-Free Factorization

Because the basis already accounts for all future structural changes, the actual factorization can proceed level-by-level in parallel. This transforms the process into an "embarrassingly parallel" operation at each level of the hierarchy, similar to the simpler HSS format, but while retaining the $O(N)$ scaling required for 3D problems.

To optimize for distributed memory environments, the authors also implemented a "redundant computation" strategy for the upper levels of the matrix hierarchy, significantly reducing the communication overhead between nodes.

Experimental Evaluation

The solver was evaluated on the TSUBAME3.0 supercomputer using two primary scenarios: a simple Laplace potential kernel with particles in a 3D cube, and a complex boundary element mesh of hemoglobin molecules using a Yukawa potential. The latter represents a realistic, large-scale biological simulation.

The researchers compared their solver against LORAPO, a state-of-the-art block low-rank (BLR) solver that utilizes the PaRSEC runtime system for task-based parallelism.

Key Results

  • Linear Scaling: The new solver demonstrated clear $O(N)$ time complexity. In contrast, the BLR competitor scaled at $O(N^2)$, becoming increasingly inefficient as the number of unknowns increased.
  • Massive Speedup: For a hemoglobin simulation with approximately 1 million unknowns ($N=954,112$) running on 10,240 cores, the new solver was 4,700 times faster than LORAPO.
  • Strong Scaling: By removing dependencies at the algorithmic level, the authors bypassed the need for complex task-based runtime systems (like StarPU or PaRSEC). This reduced overhead allowed the solver to continue scaling efficiently up to 10,240 cores, whereas the competitor's performance plateaued.

Conclusion and Future Work

This research demonstrates that the serial bottlenecks traditionally associated with $\mathcal{H}^2$-matrix factorization are not an inherent limitation of the format, but rather a consequence of how basis updates are handled. By pre-computing fill-ins, the authors have created a solver that is both mathematically optimal ($O(N)$) and computationally efficient for massively parallel architectures.

While the current implementation faces some memory constraints due to the constant factors involved in $\mathcal{H}^2$ structures, the performance gains are transformative for large-scale 3D problems. Future work will focus on integrating this solver into multifrontal methods for sparse matrices, which could significantly accelerate finite element analysis in engineering and physics.

Summary updated

BibTeX
@inproceedings{ma2022scalable,
  author = {Qianxiang Ma and Sameer Deshmukh and Rio Yokota},
  title = {{Scalable Linear Time Dense Direct Solver for 3-D Problems without Trailing Sub-Matrix Dependencies}},
  booktitle = {SC},
  year = {2022},
  doi = {10.1109/sc41404.2022.00088},
}
Figure