Classical Iterative Refinement in Mixed Precision
- Classical iterative refinement is a numerical method that iteratively improves solutions of Ax=b by computing high-precision residuals and low-precision corrections.
- It leverages a mixed-precision framework where a precomputed LU factorization in low precision is paired with high-precision residuals to balance speed and accuracy.
- The method achieves linear convergence under proper conditioning and precision choices, ensuring stability when uₛκ(A) is kept below 1.
Classical iterative refinement (IR) is a numerical scheme for solving linear systems of the form that incrementally improves an approximate solution by leveraging corrections computed from the current residual. Originally developed as a post-processing step to enhance the accuracy of Gaussian elimination, IR is now central in mixed-precision and low-precision numerical linear algebra. Its primary mechanism is to alternate between low-precision solves—typically using a precomputed LU factorization—and high-precision residual computation, thus combining the speed of low-precision arithmetic with the accuracy of high-precision feedback.
1. Algorithmic Structure and Precision Model
Given a nonsingular and , classical IR generates a sequence converging to the solution . The basic steps at iteration are:
- High-Precision Residual: in precision (typically chosen so the residual can reveal errors undetectable at factorization precision) (Wu et al., 2023, Kelley, 2024).
- Low-Precision Correction: Solve using the precomputed LU factorization in solver precision . The correction solve can be carried out in different styles—on-the-fly (promotion of LU factors), in-place (demotion of residual), or direct low-precision, each with distinct interprecision transfer costs (Kelley, 2024).
- Solution Update: 0 in high precision.
IR can be embedded in a multi-precision framework with explicit storage, factorization, residual, and solver precisions: working (1), factorization (2), residual (3), and solver (4) precisions, with explicit interprecision transfer operators 5 (Kelley, 2024).
2. Theoretical Properties and Convergence Analysis
The convergence and stability of classical IR are governed by the interplay of matrix conditioning and the floating-point precisions used. Critical results include:
- Iteration Error Propagation: For error 6, the update can be written as 7, simplifying to 8 upon proper manipulation, with 9 (Wu et al., 2023).
- Linear Convergence Criteria:
0
With refined analysis (Wu et al., 2023):
1
IR converges linearly provided 2 (practically, 3 is required).
- Promotion Effect: When the residual and corrections are computed in higher precision 4, IR solves the promoted system 5, with 6, 7; thus, the limiting solution is 8 (Kelley, 2024). The forward error at termination is bounded by 9 for a residual threshold 0.
- Finite-Precision Limiting Accuracy: The attainable forward error is 1 if the 2 factorization in 3 is backward stable and the residual computation in 4 is accurate (Kelley, 2024).
3. Error Sources and Stability
The forward and backward error analyses in IR account for rounding in several locations:
- Factorization Error (5): The 6 factors 7 satisfy 8. This restricts 9 so that 0 is necessary for backward stability (Kelley, 2024, Kelley, 2023).
- Residual Error (1): Residual computation incurs 2 error.
- Triangular Solves (3): Affect the correction step and introduce trade-offs between 4 upcasts (on-the-fly) versus 5 transfers (in-place).
A crucial consequence is that IR cannot "repair" catastrophic instabilities from an unstable factorization—its effectiveness is contingent on having at least modestly stable 6 factors and moderately conditioned 7 (Wu et al., 2023, Kelley, 2023).
4. Precision Choices and Interprecision Transfers
Selecting optimal precisions for 8, 9, and 0 depends on hardware, desired accuracy, and matrix conditioning:
- Working/Residual Precision (1, 2): 3 should be much finer than 4; ideally 5 to guarantee a low error floor (Kelley, 2024).
- Factorization Precision (6): Use the minimal precision such that 7; half precision is restricted to very well-conditioned 8, while single precision suffices for moderate 9 (Kelley, 2024, Kelley, 2023).
- Solver Precision (0): On-the-fly (all promoted to 1) is robust for ill-conditioned or very low 2; in-place (working in 3) is efficient if 4.
A synthesis of these strategies enables balancing computation speed and solution accuracy, especially in modern hardware contexts (e.g., GPU, analog accelerators).
5. Practical Implementation and Termination
Implementation of classical IR in practical software reflects these principles. In MultiPrecisionArrays.jl, for instance, the "double–single" scheme—storing 5 and 6 in Float64, factorizing in Float32—enables fast factorization while correcting via high-precision residuals (Kelley, 2023). The loop continues until either
- the residual norm is below a multiple of 7,
- the backward error is sufficiently small,
- or stagnation is detected, typically via a relative decrease threshold on 8 (Kelley, 2023).
Mixed-precision IR delivers nearly full working-precision accuracy at lower cost than a pure high-precision direct solve, provided that 9 is not too ill-conditioned.
6. Extensions, Failure Modes, and Optimality
Classical IR (Wilkinson IR, 0) in working precision admits generalization to relaxed forms, IR(1), but 2 is universally optimal for stability and contraction rate (Smoktunowicz et al., 2015). The method is typically limited by either divergence if the inner solve is unstable or the model error floor set by 3. In highly ill-conditioned, low-precision, or stochastic environments, classical IR may fail, in which case stabilized (e.g., line-search) IR variants should be used (Wu et al., 2023).
Extensive numerical experiments demonstrate that one or a few steps of classical IR suffice to recover backward-stability in diverse scenarios, confirming its reliability and efficiency when used within its regime of validity (Smoktunowicz et al., 2015, Kelley, 2023).
7. Historical and Contemporary Impact
IR's renaissance is driven by its compatibility with heterogeneous hardware and mixed-precision computation (Wu et al., 2023). By combining the speed of low-precision arithmetic, storage, and factorization with the accuracy afforded by high-precision corrections, IR is foundational in software frameworks (e.g., Julia, MATLAB/BLAS/LAPACK) and is central in algorithmic innovations for emerging architectures.
Recent research clarifies the algorithm's behavior in promoted systems, makes explicit the role of interprecision transfer, and refines the theoretical understanding of attainable accuracy, guiding both the development and practical deployment of IR in scientific computing (Kelley, 2024).