Iterative refinement
Method to improve accuracy of numerical solutions to systems of linear equations
title: "Iterative refinement" type: doc version: 1 created: 2026-02-28 author: "Wikipedia contributors" status: active scope: public tags: ["numerical-linear-algebra"] description: "Method to improve accuracy of numerical solutions to systems of linear equations" topic_path: "science/mathematics" source: "https://en.wikipedia.org/wiki/Iterative_refinement" license: "CC BY-SA 4.0" wikipedia_page_id: 0 wikipedia_revision_id: 0
::summary Method to improve accuracy of numerical solutions to systems of linear equations ::
Iterative refinement is an iterative method proposed by James H. Wilkinson to improve the accuracy of numerical solutions to systems of linear equations.
When solving a linear system A \mathbf{x} = \mathbf{b} ,, due to the compounded accumulation of rounding errors, the computed solution \hat{\mathbf{x}} may sometimes deviate from the exact solution \mathbf{x}_\star,. Starting with \mathbf{x}_1 = \hat{\mathbf{x}},, iterative refinement computes a sequence {\mathbf{x}_1,, \mathbf{x}_2,, \mathbf{x}3,\dots} which converges to \mathbf{x}\star,, when certain assumptions are met.
Description
For m = 1, 2, 3, \dots,, the mth iteration of iterative refinement consists of three steps: | Compute the residual error r \mathbf{r}_m = \mathbf{b} - A \mathbf{x}_m,. | Solve the system for the correction, c, that removes the residual error A \mathbf{c}_m = \mathbf{r}m,. | Add the correction to get the revised next solution x \mathbf{x}{m+1} = \mathbf{x}_m + \mathbf{c}_m,.
The crucial reasoning for the refinement algorithm is that although the solution for c in step (ii) may indeed be troubled by similar errors as the first solution, \hat\mathbf{x}, the calculation of the residual r in step (i), in comparison, is numerically nearly exact: You may not know the right answer very well, but you know quite accurately just how far the solution you have in hand is from producing the correct outcome (b). If the residual is small in some sense, then the correction must also be small, and should at the very least steer the current estimate of the answer, x, closer to the desired one, \mathbf{x}_\star,.
The iterations will stop on their own when the residual r is zero, or close enough to zero that the corresponding correction c is too small to change the solution x which produced it; alternatively, the algorithm stops when r is too small to convince the linear algebraist monitoring the progress that it is worth continuing with any further refinements.
Note that the matrix equation solved in step (ii) uses the same matrix A for each iteration. If the matrix equation is solved using a direct method, such as Cholesky or LU decomposition, the numerically expensive factorization of A is done once and is reused for the relatively inexpensive forward and back substitution to solve for c at each iteration.
Error analysis
As a rule of thumb, iterative refinement for Gaussian elimination produces a solution correct to working precision if double the working precision is used in the computation of r, e.g. by using quad or double extended precision IEEE 754 floating point, and if A is not too ill-conditioned (and the iteration and the rate of convergence are determined by the condition number of A).
More formally, assuming that each step (ii) can be solved reasonably accurately, i.e., in mathematical terms, for every m, we have A \left( I + F_m \right) \mathbf{c}_m = \mathbf{r}_m
where {{math|‖F‖ \frac{ \lVert \mathbf{x}m - \mathbf{x}\star \rVert_\infty }{ \lVert \mathbf{x}\star \rVert\infty} \leq \bigl( \sigma,\kappa(A),\varepsilon_1\bigr)^m + \mu_1, \varepsilon_1 + n, \kappa(A), \mu_2, \varepsilon_2
where
- ‖·‖∞ denotes the ∞-norm of a vector,
- κ(A) is the ∞-condition number of A,
- n is the order of A,
- ε and ε are unit round-offs of floating-point arithmetic operations,
- σ, μ and μ are constants that depend on A, ε and ε if A is "not too badly conditioned", which in this context means
and implies that μ and μ are of order unity.
The distinction of ε and ε is intended to allow mixed-precision evaluation of r where intermediate results are computed with unit round-off ε before the final result is rounded (or truncated) with unit round-off ε. All other computations are assumed to be carried out with unit round-off ε.
References
References
- Wilkinson, James H.. (1963). "Rounding Errors in Algebraic Processes". [[Prentice Hall]].
- Moler, Cleve B.. (April 1967). "Iterative refinement in floating point". [[Association for Computing Machinery]].
- Higham, Nicholas. (2002). "Accuracy and Stability of Numerical Algorithms". SIAM.
::callout[type=info title="Wikipedia Source"] This article was imported from Wikipedia and is available under the Creative Commons Attribution-ShareAlike 4.0 License. Content has been adapted to SurfDoc format. Original contributors can be found on the article history page. ::