Linear Complexity ℋ2 Direct Solver for Fine-Grained Parallel Architectures

Wajih Boukaram, David E. Keyes, Sherry Li, Yang Liu, George TurkiyyaharXiv 2025 · DOI

Abstract

Direct solvers for dense linear systems typically suffer from cubic computational complexity, limiting their applicability to large-scale scientific problems. This paper presents a novel algebraic "blackbox" direct solver for ℍ² hierarchical matrices that achieves true $O(n)$ complexity in both time and memory. By employing a Strong Recursive Skeletonization (RS-S) approach and a multi-level graph coloring scheme, the solver is optimized for fine-grained parallel architectures such as GPUs. Experimental results on systems with over one million unknowns demonstrate linear scaling and high numerical accuracy across various domains, including geostatistics and wave propagation.

Introduction

Many critical scientific problems—ranging from climate modeling and geostatistics to electromagnetic scattering—require solving massive systems of linear equations ($Ax = b$). When the matrix $A$ is dense, standard direct solvers require $O(n^3)$ operations, which becomes computationally prohibitive as $n$ grows into the millions.

Hierarchical matrices, specifically the ℍ² format, address this by compressing dense systems, exploiting the low-rank structure of "far-away" interactions. However, developing a robust direct solver that factorizes these matrices without significant "rank growth"—where compression efficiency degrades during factorization—remains a significant challenge. This work introduces a solver designed to maintain linear complexity while being highly efficient on modern parallel hardware.

Methodology: Strong Recursive Skeletonization

The core of the proposed solver is the Strong Recursive Skeletonization (RS-S) technique. This approach identifies a small subset of "skeleton" rows and columns to represent the interactions of a matrix block with the rest of the system. Unlike geometric solvers, this method is purely algebraic, requiring only the matrix entries rather than underlying point coordinates.

Hierarchical ℍ² matrix structure showing admissible (green) and inadmissible (red) blocks.

Key technical innovations include:

  • Fill-in Management: The algorithm skeletonizes new non-zero entries ("fill-in") created during factorization, preventing memory explosion in complex 3D problems.
  • Hierarchical Partitioning: The matrix is organized according to a cluster tree (see Figure below), which guides the recursive skeletonization process.
  • Multi-level Graph Coloring: To enable massive parallelism, matrix blocks are treated as nodes in a graph. Coloring identifies independent blocks that can be processed simultaneously across GPU cores or CPU threads.
  • Adaptive Basis Augmentation: QR decompositions are used to adaptively grow the compression basis, balancing numerical stability with speed.
The hierarchical cluster tree representing the recursive partitioning of the index set.

Experimental Evaluation

The solver was evaluated on four representative families of symmetric positive-definite systems, scaling up to $N = 1,048,576$:

  1. 2D & 3D Covariance Matrices: Common in spatial statistics and Gaussian Processes.
  2. 2D Laplace Integral Equations: Standard in potential theory.
  3. 3D Helmholtz Integral Equations: Used for wave propagation; notoriously difficult due to oscillatory kernels.
  4. Low-Rank Update (LRU) 3D Covariance: Simulating dynamic real-world data updates.

Key Insights and Results

  • Linear Scaling: Empirical results confirm $O(n)$ scaling in both time and memory. Doubling the problem size leads to a roughly linear increase in resource requirements, a transformative improvement over traditional $O(n^3)$ methods.
  • Parallel Efficiency: The coloring-based concurrency model proved highly effective. On an AMD Ryzen Threadripper, 3D Covariance factorization time was reduced from ~848 seconds on a single thread to ~142 seconds using 16 threads.
  • Numerical Accuracy: Backward error analysis showed the solver maintains high precision, with errors ranging from $10^{-6}$ to $10^{-10}$ depending on user-defined thresholds.
  • Strong Admissibility: By utilizing a "strong" admissibility condition, the solver maintains significantly lower ranks in 3D problems compared to "weak" methods, which is critical for achieving true linear scaling.

Limitations and Future Directions

While the algorithm is designed for fine-grained parallel architectures, the current results were primarily generated on multi-core CPUs. A full GPU implementation is in development to further exploit the solver's batched operation design. Additionally, the move toward half-precision (FP16/BF16) arithmetic in high-performance computing may require further refinements to the basis augmentation phase to maintain numerical stability. For extremely high-frequency oscillatory problems, future work will explore "recompression" techniques to mitigate potential rank growth.

Summary updated

BibTeX
@misc{boukaram2025linear,
  author = {Wajih Boukaram and David E. Keyes and Sherry Li and Yang Liu and George Turkiyyah},
  title = {{Linear Complexity ℋ2 Direct Solver for Fine-Grained Parallel Architectures}},
  year = {2025},
  eprint = {2509.11152},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.11152},
}
Figure