An inherently parallel H2-ULV factorization for solving dense linear systems on GPUs

Qianxiang Ma, Rio YokotaarXiv 2025 · DOI

Published in the International Journal of High Performance Computing Applications, this research presents a significant advancement in hierarchical matrix solvers, enabling them to operate at unprecedented scales on modern GPU clusters. By introducing an "inherently parallel" $\mathcal{H}^2$-ULV factorization, the authors have effectively eliminated the serial bottlenecks that have long plagued hierarchical matrix algorithms.

The Challenge: GPU-Unfriendly Hierarchical Solvers

Many scientific domains, including electromagnetics and large-scale statistics, rely on solving systems involving massive, dense matrices. While standard solvers like those found in LAPACK require $O(N^3)$ operations, hierarchical matrix formats (such as $\mathcal{H}$, $\mathcal{H}^2$, and HSS) exploit the low-rank nature of off-diagonal sub-blocks to reduce this complexity to $O(N)$.

Despite their theoretical efficiency, these algorithms have historically been difficult to port to GPUs. Their complex tree-based structures often lead to significant load imbalances. More critically, the "trailing submatrix updates" performed during factorization typically create a chain of data dependencies, forcing much of the computation to occur serially. Furthermore, the subsequent forward and backward substitution phases (solving $Ax=b$) have remained stubbornly serial, creating a performance bottleneck even when factorization is fast.

The Innovation: Factorization Basis and Shared Structures

The core of the proposed method is the use of a shared low-rank basis to represent the matrix structure efficiently.

The $\mathcal{H}^2$ matrix framework utilizes a shared low-rank basis (U, V) to represent dense blocks, significantly reducing memory and computational requirements.

To overcome the dependency problem, the authors introduced a Factorization Basis. In traditional ULV (Unitary-Low-rank-V) factorization, eliminating one block creates "fill-in" updates in other blocks, necessitating constant re-compression and enforcing a serial execution order.

The researchers proved mathematically that by pre-computing a specific basis that approximates all potential Schur complements and merging it into the matrix's shared basis before factorization begins, the updates can be confined strictly to diagonal blocks. This "over-approximation" allows the matrix structure to remain sparse and decoupled throughout the entire process.

The proposed inherently parallel factorization confines updates to specific blocks, removing the 'trailing update' dependency found in traditional methods.

Inherently Parallel Substitution and GPU Optimization

Beyond factorization, the authors reformulated the solve phase. Instead of the standard serial triangular solve, they inverted the block-triangular factors into a product of sparse matrices. This transformation turns the solve phase into a series of independent, parallel matrix-vector multiplications.

The implementation is highly optimized for NVIDIA hardware, utilizing batched kernels (cuBLAS, MAGMA) to process thousands of small matrix operations simultaneously. For multi-GPU scaling, the NVIDIA Collective Communications Library (NCCL) ensures efficient data movement across the cluster.

Performance Results

The solver was evaluated using massive 3-D Laplace and Yukawa potential problems, with systems reaching up to 29 million unknowns. The results demonstrate a new state-of-the-art for hierarchical solvers:

  • Extreme Speedup: On 128 sockets, the method was over 13,300x faster than LORAPO, a leading CPU-based solver.
  • High Efficiency: The solver achieved 12.18 TFLOP/s on a single NVIDIA A100 GPU, reaching approximately 62.5% of the theoretical peak FP64 performance.
  • Massive Scaling: The algorithm demonstrated excellent strong and weak scaling up to 512 GPUs on the ABCI supercomputer. A problem with 29,242,368 unknowns was factorized and solved in just 0.83 seconds.

Conclusion and Future Directions

By trading a small amount of extra work upfront—the pre-factorization required to find the factorization basis—the authors unlocked massive parallelism. While this pre-factorization currently accounts for up to 46% of the total time, the overall speedup remains transformative. Future work will focus on reducing this overhead and extending the method to general non-symmetric LU factorizations with pivoting, potentially integrating the solver into large-scale Gaussian process regression and fast multipole method (FMM) pipelines.

Summary updated

Abstract

Hierarchical low-rank approximation of dense matrices can reduce the complexity of their factorization from O(N^3) to O(N). However, the complex structure of such hierarchical matrices makes them difficult to parallelize. The block size and ranks can vary between the sub-blocks, which creates load imbalance. The dependency between the sub-blocks during factorization results in serialization. Since many sub-blocks are low-rank, their small computational load exposes the overhead of runtime systems. The combination of these factors makes it challenging to implement these methods on GPUs. In this work, we show that dense matrices can be factorized with linear complexity, while extracting the potential parallelism of GPUs. This is made possible through the H2-ULV factorization, which removes the dependency on trailing sub-matrices.
BibTeX
@misc{ma2025inherently,
  author = {Qianxiang Ma and Rio Yokota},
  title = {{An inherently parallel H2-ULV factorization for solving dense linear systems on GPUs}},
  year = {2025},
  eprint = {2502.02395},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.02395},
}
Figure