Abstract
Numerical simulations often encounter ill-conditioned matrices that demand high-precision arithmetic, leading to significant computational overhead. This paper introduces a hybrid LDU-factorization algorithm that combines the reliability of direct solvers with the efficiency of mixed-precision iterative methods. By utilizing "threshold postponing" to isolate numerically unstable components, the algorithm performs the majority of computations in lower precision while ensuring final accuracy through higher-precision refinement. Experimental results demonstrate a 6.3x speedup in quadruple-precision tasks and enhanced robustness in detecting matrix singularities.
Introduction
In fields such as fluid dynamics and semiconductor modeling, researchers frequently face a "precision trap." While standard double-precision arithmetic is sufficient for many problems, highly ill-conditioned systems often require quadruple precision to maintain stability. However, quadruple precision is approximately 25 times slower than double precision. Traditional mixed-precision techniques, like standard iterative refinement, often fail to converge when dealing with nearly singular matrices. This research proposes a hybrid approach that maintains the "bulletproof" nature of direct factorization while leveraging the speed of mixed-precision arithmetic.
Methodology
The proposed Hybrid Factorization Algorithm is built upon three core components:
- Threshold Postponing: During the initial LDU-factorization in lower precision, the algorithm monitors the stability of each step. If a pivot falls below a user-defined threshold $\tau$, it is "postponed." This process effectively partitions the matrix into a stable "moderate part" ($K_{11}$) and a numerically difficult "hard part" ($K_{22}$), which forms the Schur complement.
- Iterative Schur Complement Generation: Rather than applying standard Gaussian elimination to the entire matrix, the algorithm employs a Block GCR (Generalized Conjugate Residual) iterative method to solve for the Schur complement. The lower-precision factorization of $K_{11}$ serves as a preconditioner to accelerate the higher-precision iterative solver.
- Mixed Precision Switching: The stable moderate part is processed in lower precision (e.g., single or double), while the critical Schur complement is factorized using higher precision (e.g., double or quadruple).
Experimental Evaluation
The algorithm was tested against three challenging sparse matrices representing different physical domains:
- phb1HYS: A symmetric matrix from protein data (~36k unknowns).
- stokes: A singular matrix from incompressible flow equations (~374k unknowns) with a six-dimensional kernel.
- dd-hole: An extremely ill-conditioned matrix from semiconductor simulations (~40k unknowns, condition number $1.7 \times 10^{22}$), necessitating quadruple precision.
Key Results and Discussion
The hybrid approach demonstrated significant improvements in both performance and numerical reliability.
Performance and Convergence
For the dd-hole case, the hybrid "quadruple + double" approach achieved a 6.3x speedup over a pure quadruple-precision direct solver, maintaining an error level of $10^{-21}$. The efficiency of the iterative component is highlighted by the convergence behavior; in the stokes example, the Block GCR method reached machine epsilon in only 5 iterations.
Robustness
The algorithm's ability to handle singularities was evidenced by the stokes matrix. While a standard single-precision solver failed to identify the matrix's 6-dimensional null space, the hybrid method correctly detected the singularity, proving its reliability for physically constrained problems.
Conclusion
The hybrid factorization algorithm offers a viable path for high-performance numerical computing by strategically isolating numerical difficulties. While current software libraries for quadruple-precision Sparse Matrix-Matrix multiplication (SpMM) require further optimization, the theoretical and practical gains in speed and accuracy are substantial. Future research will focus on parallel implementation and hardware-specific optimizations to further enhance scaling for larger systems.
Summary updated