betaFeedback

WorksMathematics

Backward Error and Scaling in Level-Based ILU(k) and IC(k) Preconditioners

Abstract

We analyse the effect of rounding errors and diagonal scaling on level-based ILU(kk) and IC(kk) preconditioners. Because the sparsity pattern is fixed in advance, the computed factors are those that the incomplete factorization produces, in exact arithmetic, for a nearby matrix, and the deviation of the preconditioned matrix from the identity is bounded by an incompleteness term plus a rounding term. When no shift or pivot modification is needed, scaling leaves the iterates unchanged in exact arithmetic but can change the quantities in this bound by orders of magnitude. For IC(kk), we bound the change in the preconditioned eigenvalues caused by rounding by a multiple of the Skeel condition number of the incomplete factor, which does not depend on the scaling, and we show that after Jacobi scaling the entries of the factor are bounded, so that in half precision a breakdown can be detected before any overflow. Experiments in double, single and half precision illustrate the theory.

Key words. sparse linear systems, preconditioning, incomplete factorization, level-based ILU, incomplete Cholesky, backward error analysis, Skeel condition number, mixed precision

MSC codes. 65F08, 65F10, 65F50, 65F35, 65G50

Introduction

Our interest is in solving large sparse linear systems Ax=bAx=b using preconditioned Krylov subspace methods. Level-based incomplete factorization preconditioners ILU(kk) (and IC(kk) for symmetric positive definite (SPD) systems), introduced by Watts in 1981 [37], are particularly well suited to sparse systems arising from the discretisation of partial differential equations, where the sparsity pattern is structured and the matrix is often diagonally dominant or symmetric positive definite. ILU(kk) remains widely used for these problems because it is simple, its fill is adjustable, it can be computed efficiently in parallel, and it suits sparse data structures [20, 29, 31]. However, in common with other incomplete factorization approaches, level-based factorizations are sensitive to the ordering of AA and to the numerical behaviour of the elimination process [12, 31]. The fill level kk trades the cost of computing and applying the preconditioner against its quality. It is usually small, since the fill can grow rapidly with kk [5], but larger values can be useful in parallel [20]. The quality of such preconditioners can vary substantially for different problems and different kk.

We develop a backward error analysis of ILU(kk) and IC(kk). It uses only the fact that the sparsity pattern of the factors is fixed by the structure of AA before any numerical computation, so the results hold for any incomplete factorization with a pattern chosen this way, but not for threshold-based methods. The analysis covers factors computed in low precision and applied within Krylov iterations in high precision [34], and adaptive precision factorizations, which compute in one precision and store different entries of the factors in different precisions [27].

The computed factors are those that the incomplete factorization produces, in exact arithmetic, for a matrix that differs from AA by a backward error on the sparsity pattern. The deviation of the preconditioned matrix from the identity is then at most an incompleteness term plus a rounding term, the backward error times the norm of the inverse of the preconditioner. Both terms are formed from the computed factors, so rounding errors also affect the first.

In our experiments, AA is first scaled to A^\widehat{A}. In exact arithmetic this leaves the incomplete factorization unchanged: the preconditioner and the iterates are the same as without scaling. This no longer holds when a small pivot, which can occur even when AA is well conditioned, is replaced by a larger value, as in our ILU(k)(k) code, or when IC(k)(k) breaks down and is repeated for the shifted matrix A^+αI\widehat{A}+\alpha I with α>0\alpha> 0. When no pivot is replaced and no shift is used, the norms in the bounds (of the factors, of the inverse of the preconditioner and of the deviation from the identity) still depend on the scaling: with a different choice, they can change by orders of magnitude. These norms therefore reflect the scaling as well as the preconditioner, and in our experiments none of them predicts the iteration count.

For IC(k)(k), bounding the backward error by the size of the factor gives a bound on the rounding term that is at least the unit roundoff times the condition number of the preconditioner, so it is uninformative when the preconditioner is ill conditioned relative to the working precision. We therefore also bound how far rounding errors move the preconditioned eigenvalues, which determine CG convergence.

The main results are as follows. In § 3, we show that the backward error of ILU(k)(k) is at most the product of the absolute values of the computed factors times a constant that depends on the largest number of entries in a row or column of the factors, not on nn. The deviation is then bounded by the incompleteness and rounding terms. In § 4, for IC(k)(k), we bound the change in the preconditioned eigenvalues caused by rounding by a multiple of the Skeel condition number of the incomplete factor; this bound does not depend on the scaling. We also show that, after a diagonal scaling that makes the diagonal entries at most 1, such as Jacobi scaling, the entries of the factor are bounded, so that in half precision a breakdown is detected before any overflow can occur. Numerical results for ILU(k)(k) and IC(k)(k) are reported in § 3.4 and § 4.4. § 2 reviews related work and gives the notation and the scaling convention, and § 5 concludes.

Background and Preliminaries

Given a sparse matrix A∈Rn×nA \in\mathbb{R}^{n \times n} and a fill level k≥0k \ge0, the ILU(k)(k) factorization performs Gaussian elimination and discards any fill entry whose level of fill exceeds kk. Entries of AA have level 0. When two permitted entries create a new entry, the new entry is assigned a level from those of the two, and is permitted if this level is at most kk. The usual rule, used in our implementations, takes the sum of the two levels plus one.

Related work

Classical work on ILU methods focuses on breakdown avoidance, ordering effects, fill control, and the influence of sparsity structure on robustness; see, for example, [12, 29] and the many subsequent developments of modified ILU, pivoting and shifting strategies [26, 28]. Kershaw [23] gives an early example of unexpected breakdown in ILU, and Chow and Saad [10] present an experimental study showing that ILU preconditioners can fail even without small pivots, and that failure is not reliably predicted by any single diagnostic. They identify inaccuracy and instability of the triangular solves as major causes of failure, and discuss how scaling, reordering and diagonal perturbation can sometimes mitigate them.

The finite-precision behaviour of incomplete factorizations has been analysed, generally assuming a single working precision throughout the factorization and focusing either on ILU(0) or on factorizations with numerical dropping. Bollhöfer [6] shows that for threshold-based incomplete factorizations the quality of the preconditioned operator can be monitored and partially controlled by the norms of the inverse triangular factors, and develops a dropping strategy that keeps these bounded during the factorization. Bru, Marín, Mas and Tůma [7] propose balancing the growth in ILU and in the computed inverse triangular factors. The work of these authors applies to value-dependent factorizations in which the sparsity pattern evolves during elimination; the behaviour of ILU(kk), where the sparsity pattern is fixed in advance of the numerical factorization, has received less attention, although there are important theoretical and practical contributions by Hysom and Pothen [20, 21].

Low-precision arithmetic is faster and more energy efficient than double precision on current hardware. Much of the recent theory concerns iterative refinement based on the generalized minimal residual method (GMRES-IR), where low-precision factors are used within an inner Krylov solve while the outer refinement iteration is performed in high precision [9, 18]. Amestoy et al. [1] model an approximate sparse factorization as the exact factorization of a perturbed matrix and separate the approximation and rounding errors in the analysis of GMRES-IR, and the stability of split-preconditioned FGMRES in several precisions is analysed in [8]. A survey of mixed-precision methods is given in [17]. Scott and Tůma [34] show how breakdown of incomplete factorizations in half precision can be avoided by prescaling AA, restarting with a larger global shift after a breakdown, and using safe tests to detect possible overflow. They illustrate this with level-based IC(kk) within iterative refinement based on CG or GMRES. In their experiments, restarting after a breakdown always avoided overflow, and the iteration count with the half precision factor can stagnate as kk increases. Lemma 4.3 explains the first observation, and the results of § 4.4, with Jacobi scaling, suggest the reason for the second.

We consider ILU(kk) and IC(kk) applied within a Krylov method. The behaviour of the preconditioner depends on the growth and conditioning of the incomplete factors as well as on the residual: incomplete factorizations may produce factors with significant growth or small pivots, giving ill-conditioned triangular systems in which both the residual and the finite-precision perturbations are amplified [6, 10, 13, 31].

Notation and floating-point model

For B∈Rn×nB \in\mathbb{R}^{n \times n}, the spectral and Frobenius norms are denoted by ∥B∥2\lVert B\rVert_2 and ∥B∥F\lVert B\rVert_F, respectively. If no subscript is given, ∥⋅∥:=∥⋅∥2\lVert\cdot\rVert:= \lVert\cdot\rVert_2. For nonsingular BB, κ(B):=∥B∥2∥B−1∥2\kappa(B) := \lVert B\rVert_2\lVert B^{-1}\rVert_2, also written κ2(B)\kappa_2(B), and κ∞(B):=∥B∥∞∥B−1∥∞\kappa_\infty(B) := \lVert B\rVert_\infty\lVert B^{-1}\rVert_\infty.

The incomplete factorization (ILU(kk) or IC(kk)) is computed and stored in a working precision with unit roundoff uu; in our experiments this is IEEE half (fp16), single (fp32) or double (fp64) precision, with u=2−11u = 2^{-11}, 2−242^{-24} and 2−532^{-53} respectively. Matrix scaling, the Krylov iteration and all applications of AA, ATA^T and the preconditioner are performed in fp64, which we treat as exact. For the factorization we use the standard floating-point model: for floating-point numbers aa and bb,

fl⁡(aop⁡b)=(aop⁡b)(1+δ),∣δ∣≤u,op⁡∈{+,−,×,/}.\operatorname{fl}(a\mathbin{\operatorname{op}} b) = (a\mathbin{\operatorname{op}} b)(1+\delta), \qquad|\delta| \le u, \qquad\operatorname{op} \in\{+,-,\times,/\}.

together with the standard quantity

γp=pu1−pu.\gamma_p = \frac{pu}{1-pu}.

which describes the accumulation of rounding errors over pp floating-point operations. The model ignores underflow. All codes are compiled with the NAG Fortran compiler, release 7.1, with the options -round=real, so that every operation on fp16 numbers is rounded to fp16, and -ieee=full, so that underflow is gradual (subnormal numbers are kept). The BLAS routines are the original Fortran implementations [11, 24].

We write LkL_k and UkU_k for the unit lower triangular and upper triangular ILU(kk) factors of AA in exact arithmetic, L~k\widetilde{L}_k and U~k\widetilde{U}_k for the factors computed in floating-point arithmetic, and

Mk:=LkUk,M~k:=L~kU~k(1)M_k := L_kU_k,\qquad\widetilde{M}_k := \widetilde{L}_k\widetilde{U}_k \tag*{(1)}

for the corresponding preconditioners. The sparsity patterns SLS_L and SUS_U of the ILU(kk) factors are determined by the structure of AA and kk alone [29, 31], so the computed factors have the same patterns as the factors in exact arithmetic.

In exact arithmetic, the incomplete factorization satisfies

A=LkUk+Rk,(2)A = L_kU_k + R_k, \tag*{(2)}

where RkR_k is the incomplete factorization residual consisting of the discarded fill.

If M~k\widetilde{M}_k is used in stationary iterative refinement, with the residual computed in higher precision, the iteration converges if ∥AM~k−1−I∥2<1\lVert A\widetilde{M}_k^{-1}-I\rVert_2 < 1 [9 Thm. 3.1]; for Krylov methods this is sufficient but generally conservative.

Scaling

In all our numerical experiments AA is scaled before the incomplete factorization is computed. We write A^=DLADR\widehat{A}=D_LAD_R for the scaled matrix and use a hat for quantities associated with it; in the symmetric positive definite case the scaling is symmetric, A^=DAD\widehat{A}=DAD with D=diag⁡(A)−1/2D=\operatorname{diag}(A)^{-1/2} (Jacobi scaling), so that A^\widehat{A} has unit diagonal. For the nonsymmetric problems, DLD_L and DRD_R are the row and column scaling factors of MC77 [30], which equilibrates the rows and columns in the ∞\infty-norm. The factorization is applied to A^\widehat{A}, giving M^k=L^kU^k\widehat{M}_k=\widehat{L}_k\widehat{U}_k, but the Krylov method is applied to the original system Ax=bAx=b, so that the stopping criterion refers to the original residual. The scaling is undone at each application of the preconditioner, so the operator applied is

Mk−1=DRM^k−1DL.M_k^{-1}=D_R\widehat{M}_k^{-1}D_L.

In exact arithmetic, and provided no shift or pivot modification is used, this is the ILU(kk) preconditioner of AA itself, since the factors of A^\widehat{A} are L^k=DLLkDL−1\widehat{L}_k=D_LL_kD_L^{-1} and U^k=DLUkDR\widehat{U}_k=D_LU_kD_R (L^k=DLLk\widehat{L}_k=D_LL_k for IC(kk)); prescaling therefore leaves the preconditioner, and hence the iterates, unchanged, as is well known (see, e.g., [26]). Three things do depend on the scaling. The factors are computed in finite precision, so the rounding errors they incur are those of A^\widehat{A} and not of AA. If a shift is used (§ 4.2), the factorization is of A^+αI\widehat{A}+\alpha I, which depends on DD. Pivot modification (§ 3.1) also depends on the scaling, since the replacement is formed from the entries of A^\widehat{A}.

The results of § 3 and § 4 are stated for a general matrix and are applied with A^\widehat{A} in place of AA: every norm, growth factor and condition number appearing in the bounds is that of A^\widehat{A} and its factors. Since AMk−1=DL−1(A^M^k−1)DLAM_k^{-1}=D_L^{-1}(\widehat{A}\widehat{M}_k^{-1})D_L and Mk−1A=DR(M^k−1A^)DR−1M_k^{-1}A=D_R(\widehat{M}_k^{-1}\widehat{A})D_R^{-1}, the preconditioned matrices for AA and A^\widehat{A} are similar: they have the same spectrum, but their norms can differ by as much as κ(DL)\kappa(D_L) or κ(DR)\kappa(D_R).

The analysis needs only that the patterns depend on the structure of AA. ILU(kk) and IC(kk) are such factorizations, with nested patterns indexed by kk [21]. Threshold-based methods such as ILUT and ILU(τ\tau) are not: their pattern depends on intermediate values, so rounding errors and scaling can change it.

Backward error analysis of ILU(k)

Backward error of the computed ILU(k) factors

References

  1. [1]P. Amestoy, A. Buttari, N. J. Higham, J.-Y. L’Excellent, T. Mary, and B. Vieublé, Combining sparse approximate factorizations with mixed precision iterative refinement, ACM Transactions on Mathematical Software, 49 (2023), pp. 41:1–42:28, https://doi.org/10.1137/23M1549079.
  2. [2]E. Anderson, Z. Bai, C. Bischof, J. Demmel, J. J. Dongarra, J. Du Croz, A. Greenbaum, S. Hammarling, A. McKenney, S. Ostrouchov, and D. C. Sorensen, LAPACK Users’ Guide, SIAM, Philadelphia, PA, third ed., 1999, https://doi.org/10.1137/1.9780898719604.ch1.
  3. [3]O. Axelsson, Bounds of eigenvalues of preconditioned matrices, SIAM J. on Matrix Analysis and Applications, 13 (1992), pp. 847–862, https://doi.org/10.1137/0613052.
  4. [4]O. Axelsson and G. Lindskog, On the eigenvalue distribution of a class of preconditioning methods, Numerische Mathematik, 48 (1986), pp. 479–498, https://doi.org/10.1007/BF01389447.
  5. [5]M. Benzi, Preconditioning techniques for large linear systems: a survey, J. of Computational Physics, 182 (2002), pp. 418–477, https://doi.org/10.1006/jcph.2002.7176.
  6. [6]M. Bollhöfer, A robust and efficient ILU that incorporates the growth of the inverse triangular factors, SIAM J. on Scientific Computing, 25 (2003), pp. 86–103, https://doi.org/10.1137/S1064827502403411.
  7. [7]R. Bru, J. Marín, J. Mas, and M. Tůma, Balanced incomplete factorization, SIAM J. on Scientific Computing, 30 (2008), pp. 2302–2318, https://doi.org/10.1137/070696088.
  8. [8]E. Carson and I. Dautčakaitė, The stability of split-preconditioned FGMRES in four precisions, Electronic Transactions on Numerical Analysis, 60 (2024), pp. 40–58, https://doi.org/10.1553/etna_vol60s40.
  9. [9]E. Carson and N. J. Higham, Accelerating the solution of linear systems by iterative refinement in three precisions, SIAM J. on Scientific Computing, 40 (2018), pp. A817–A847, https://doi.org/10.1137/17M1140819.
  10. [10]E. Chow and Y. Saad, Experimental study of ILU preconditioners for indefinite matrices, J. of Computational and Applied Mathematics, 86 (1997), pp. 387–414, https://doi.org/10.1016/S0377-0427(97)00171-4.
  11. [11]J. J. Dongarra, J. Du Croz, S. Hammarling, and R. J. Hanson, An extended set of Fortran basic linear algebra subprograms, ACM Transactions on Mathematical Software, 14 (1988), pp. 1–17, https://doi.org/10.1145/42288.42291.
  12. [12]I. S. Duff and G. A. Meurant, The effect of ordering on preconditioned conjugate gradients, BIT Numerical Mathematics, 29 (1989), pp. 635–657, https://doi.org/10.1007/BF01932738.
  13. [13]H. C. Elman, A stability analysis of incomplete LU factorizations, Mathematics of Computation, 47 (1986), pp. 191–217, https://doi.org/10.2307/2008089.
  14. [14]W. W. Hager, Condition estimates, SIAM J. on Scientific and Statistical Computing, 5 (1984), pp. 311–316, https://doi.org/10.1137/0905023.
  15. [15]N. J. Higham, FORTRAN codes for estimating the one-norm of a real or complex matrix, with applications to condition estimation, ACM Transactions on Mathematical Software, 14 (1988), pp. 381–396 (1989), https://doi.org/10.1145/50063.214386.
  16. [16]N. J. Higham, Accuracy and Stability of Numerical Algorithms, SIAM, 2002, https://doi.org/10.1137/1.9780898718027.
  17. [17]N. J. Higham and T. Mary, Mixed precision algorithms in numerical linear algebra, Acta Numerica, 31 (2022), pp. 347–414, https://doi.org/10.1017/S0962492922000222.
  18. [18]N. J. Higham and S. Pranesh, Exploiting lower precision arithmetic in solving symmetric positive definite linear systems and least squares problems, SIAM J. on Scientific Computing, 43 (2021), pp. A258–A277, https://doi.org/10.1137/19M1298263.
  19. [19]N. J. Higham, S. Pranesh, and M. Zounon, Squeezing a matrix into half precision, with an application to solving linear systems, SIAM J. on Scientific Computing, 41 (2019), pp. A2536–A2551, https://doi.org/10.1137/18M1229511.
  20. [20]D. Hysom and A. Pothen, A scalable parallel algorithm for incomplete factor preconditioning, SIAM J. on Scientific Computing, 22 (2000), pp. 2194–2215, https://doi.org/10.1137/S1064827500376193.
  21. [21]D. Hysom and A. Pothen, Level-based incomplete LU factorization: Graph model and algorithms, Technical Report UCRL-JC-150789, Lawrence Livermore National Labs, November 2002.
  22. [22]I. E. Kaporin, New convergence results and preconditioning strategies for the conjugate gradient method, Numerical Linear Algebra with Applications, 1 (1994), pp. 179–210, https://doi.org/10.1002/nla.1680010208.
  23. [23]D. S. Kershaw, The incomplete Cholesky-conjugate gradient method for the iterative solution of systems of linear equations, J. of Computational Physics, 26 (1978), pp. 43–65, https://doi.org/10.1016/0021-9991(78)90098-0.
  24. [24]C. L. Lawson, R. J. Hanson, D. R. Kincaid, and F. T. Krogh, Basic linear algebra subprograms for Fortran usage, ACM Transactions on Mathematical Software, 5 (1979), pp. 308–323, https://doi.org/10.1145/355841.355847.
  25. [25]X. S. Li and M. Shao, A supernodal approach to incomplete LU factorization with partial pivoting, ACM Transactions on Mathematical Software, 37 (2011), pp. 1–20, https://doi.org/10.1145/1916461.1916467.
  26. [26]C.-J. Lin and J. J. Moré, Incomplete Cholesky factorizations with limited memory, SIAM J. on Scientific Computing, 21 (1999), pp. 24–45, https://doi.org/10.1137/S1064827597323344.
  27. [27]A. Lister, T. Mary, and J. A. Scott, Adaptive precision incomplete matrix factorization. Submitted for publication, 2026.arxiv.org/abs/2611.28235
  28. [28]T. A. Manteuffel, An incomplete factorization technique for positive definite linear systems, Mathematics of Computation, 34 (1980), pp. 473–497, https://doi.org/10.2307/2006097.
  29. [29]J. A. Meijerink and H. A. van der Vorst, An iterative solution method for linear systems of which the coefficient matrix is a symmetric M-matrix, Mathematics of Computation, 31 (1977), pp. 148–162, https://doi.org/10.2307/2005786.
  30. [30]D. Ruiz, A scaling algorithm to equilibrate both rows and columns norms in matrices, Technical Report RAL-TR-2001-034, Rutherford Appleton Laboratory, Chilton, Oxfordshire, England, 2001.
  31. [31]Y. Saad, Iterative Methods for Sparse Linear Systems, SIAM, Philadelphia, PA, second ed., 2003, https://doi.org/10.1137/1.9780898718003.
  32. [32]J. A. Scott and M. Tůma, HSL_MT28: an efficient and robust limited-memory incomplete Cholesky factorization code, ACM Transactions on Mathematical Software, 40 (2014), pp. 24:1–19, https://doi.org/10.1145/2617555.
  33. [33]J. A. SCOTT AND M. TÜMA, Algorithms for Sparse Linear Systems, Nečas Center Series, Birkhäuser/Springer, Cham, 2023, https://doi.org/10.1007/978-3-031-25820-6.
  34. [34]J. A. SCOTT AND M. TÜMA, Avoiding breakdown in incomplete factorizations in low precision arithmetic, ACM Transactions on Mathematical Software, 50 (2024), https://doi.org/10.1145/3651155.
  35. [35]R. D. SKEEL, Scaling for numerical stability in Gaussian elimination, Journal of the ACM, 26 (1979), pp. 494–526, https://doi.org/10.1145/322139.322148.
  36. [36]A. VAN DER SLUIS, Condition numbers and equilibration of matrices, Numerische Mathematik, 14 (1969), pp. 14–23, https://doi.org/10.1007/BF02165096.
  37. [37]J. W. WATTS-III., A conjugate gradient truncated direct method for the iterative solution of the reservoir simulation pressure equation, Society of Petroleum Engineers J., 21 (1981), pp. 345–353, https://doi.org/10.2118/8252-PA.

Paper details

vlnc:W_5bvqyfsr
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Mathematics

Not recorded for this paper

View statement
Looking for related papers…
Contents