Papers
Topics
Authors
Recent
Search
2000 character limit reached

GMRES Algorithm for Solving Linear Systems

Updated 9 April 2026
  • GMRES is an iterative Krylov subspace method that minimizes the ℓ2-norm of the residual for solving large, non-symmetric linear systems.
  • It uses the Arnoldi process to construct an orthonormal basis and solves a reduced least-squares problem, enabling robust preconditioning and convergence analysis.
  • Restarted, block, and s-step variants optimize memory usage and parallel performance, making GMRES suitable for high-performance scientific computing applications.

The Generalized Minimum RESidual (GMRES) algorithm is an iterative Krylov subspace method for solving square (often large, non-symmetric, and possibly indefinite) linear systems of the form Ax=bA x = b with ARn×nA \in \mathbb{R}^{n \times n} and bRnb \in \mathbb{R}^n. GMRES is characterized by selecting at each iteration the approximate solution that minimizes the 2\ell_2-norm of the residual over an affine Krylov subspace. It is notable for its broad applicability across scientific computing, signal processing, inverse problems, computational imaging, and large-scale engineering simulation domains.

1. Core Algorithmic Structure

GMRES seeks the vector xmx0+Km(A,r0)x_m \in x_0 + \mathcal{K}_m(A, r_0), where r0=bAx0r_0 = b - A x_0 and Km(A,r0)=span{r0,Ar0,A2r0,,Am1r0}\mathcal{K}_m(A, r_0) = \operatorname{span}\{r_0, A r_0, A^2 r_0, \ldots, A^{m-1} r_0\}, such that bAxm2\|b - A x_m\|_2 is minimized. The methodology leverages the Arnoldi process to construct an orthonormal basis Vm+1=[v1,,vm+1]V_{m+1} = [v_1, \ldots, v_{m+1}] of Km+1(A,r0)\mathcal{K}_{m+1}(A, r_0), resulting in the Arnoldi relation

ARn×nA \in \mathbb{R}^{n \times n}0

where ARn×nA \in \mathbb{R}^{n \times n}1 is upper Hessenberg and ARn×nA \in \mathbb{R}^{n \times n}2.

The approximate solution is represented as ARn×nA \in \mathbb{R}^{n \times n}3, where ARn×nA \in \mathbb{R}^{n \times n}4 solves the small least-squares problem:

ARn×nA \in \mathbb{R}^{n \times n}5

with ARn×nA \in \mathbb{R}^{n \times n}6 and ARn×nA \in \mathbb{R}^{n \times n}7. The true residual norm is exactly given by ARn×nA \in \mathbb{R}^{n \times n}8 due to the orthonormality of ARn×nA \in \mathbb{R}^{n \times n}9 (Sidky et al., 2022, Zou, 2021).

2. Preconditioning and Variants

GMRES accommodates several preconditioning strategies:

  • Left Preconditioning: Replace bRnb \in \mathbb{R}^n0 with bRnb \in \mathbb{R}^n1, solve bRnb \in \mathbb{R}^n2.
  • Right Preconditioning: Solve bRnb \in \mathbb{R}^n3; the approximate solution is bRnb \in \mathbb{R}^n4.
  • Split (Two-sided) Preconditioning: With preconditioners bRnb \in \mathbb{R}^n5 and bRnb \in \mathbb{R}^n6, solve bRnb \in \mathbb{R}^n7, and recover bRnb \in \mathbb{R}^n8.

At each step, only matvecs with bRnb \in \mathbb{R}^n9 and 2\ell_20 are required; no transposes or normal equations are formed (Sidky et al., 2022, Gazzola et al., 2018). In computed tomography and inverse problems, GMRES is uniquely robust against "unmatched" pairs (2\ell_21) through variants such as AB-GMRES and BA-GMRES, which remain monotonically convergent in the relevant seminorms, in contrast to CGLS which may diverge (Sidky et al., 2022).

Polynomial preconditioning can be implemented using the GMRES residual polynomial itself. The polynomial is determined during a preliminary GMRES cycle, and its roots (harmonic Ritz values) are used to factor and efficiently apply the preconditioner. Stability measures such as root-adding mitigate adverse effects from outlying eigenvalues (Loe et al., 2019).

3. Restarting, Block, and Advanced Implementations

Given the prohibitive memory and orthogonalization costs for large 2\ell_22, restarted GMRES(2\ell_23) discards the Krylov basis after 2\ell_24 steps and resumes with the latest iterate. This may deteriorate global optimality and induce stagnation, which is mitigated by subspace recycling (deflation/augmentation). GMRES-DR, GCRO-DR, and flexible GMRES (FGMRES) retain additional spectral information, enabling superior convergence in challenging regimes (Zou, 2021).

Extensions include:

  • Block GMRES: Construction of block Krylov subspaces for multiple right-hand sides. Block Arnoldi and block Hessenberg structures accelerate convergence and enable recycling across multiple systems (Sukmanyuk et al., 2024, Zou, 2021).
  • s-step (Communication Avoiding) GMRES: Bundling 2\ell_25 Arnoldi steps, forming basis blocks by polynomial powers or matrix function applications to exploit memory hierarchy and minimize global synchronizations (Chronopoulos et al., 2020, Zou, 2021).
  • Parallel and Low-Synchronization Variants: Iterated Gauss-Seidel GMRES (IGS-GMRES) achieves 2\ell_26 synchronizations/iteration, preserving orthogonality to 2\ell_27, essential for exascale architectures (Thomas et al., 2022).

4. Convergence Analysis

Convergence of GMRES is governed by the spectral properties and field-of-values (numerical range) of 2\ell_28:

  • If 2\ell_29 is diagonalizable, the residual satisfies

xmx0+Km(A,r0)x_m \in x_0 + \mathcal{K}_m(A, r_0)0

where xmx0+Km(A,r0)x_m \in x_0 + \mathcal{K}_m(A, r_0)1 (Zou, 2021).

  • For normal xmx0+Km(A,r0)x_m \in x_0 + \mathcal{K}_m(A, r_0)2, Chebyshev bounds are sharp. For non-normal systems, field-of-values bounds are used.
  • If the numerical range xmx0+Km(A,r0)x_m \in x_0 + \mathcal{K}_m(A, r_0)3 avoids the origin, Elman’s bound provides geometric decay:

xmx0+Km(A,r0)x_m \in x_0 + \mathcal{K}_m(A, r_0)4

with xmx0+Km(A,r0)x_m \in x_0 + \mathcal{K}_m(A, r_0)5 (Embree, 2023).

  • If xmx0+Km(A,r0)x_m \in x_0 + \mathcal{K}_m(A, r_0)6, no monotonicity is guaranteed. Lyapunov-based inner products can restore geometric convergence at the cost of norm distortion (Embree, 2023).

For singular xmx0+Km(A,r0)x_m \in x_0 + \mathcal{K}_m(A, r_0)7, if the range-symmetry condition xmx0+Km(A,r0)x_m \in x_0 + \mathcal{K}_m(A, r_0)8 holds, GMRES provides a least-squares solution in at most rankxmx0+Km(A,r0)x_m \in x_0 + \mathcal{K}_m(A, r_0)9 steps (Hayami et al., 2020).

5. Numerical Stability, Orthogonality, and Parallel Performance

The standard implementation of GMRES uses modified Gram-Schmidt orthogonalization, with backward stability established up to r0=bAx0r_0 = b - A x_00 (Thomas et al., 2022). IGS-GMRES, using two Gauss-Seidel sweeps, maintains r0=bAx0r_0 = b - A x_01 orthogonality, eliminates stagnation for highly non-normal matrices, preserves the minimal singular value of the Krylov basis near unity, and is backward-stable (Thomas et al., 2022).

Low synchronization and block/grouped dot-products enable deployment on large-scale parallel hardware and GPU clusters. For instance, IGS-GMRES achieves up to r0=bAx0r_0 = b - A x_02 speedup relative to vanilla MGS-GMRES due to reduced communications. s-step and pipelined GMRES approaches exploit cache locality and overlap communications, further improving performance (Thomas et al., 2022, Chronopoulos et al., 2020, Zou, 2021).

6. Applications and Specialized Contexts

GMRES is widely used in scientific computing (CFD, MIMO detection, CT reconstruction), especially in settings with non-self-adjoint or ill-conditioned operators:

  • Computed Tomography (CT): BA-GMRES and AB-GMRES enable reconstruction with unmatched projector/back-projector pairs and regularization by early stopping (semi-convergence phenomenon) (Sidky et al., 2022).
  • Massive MIMO Detection: GMRES (and the related conjugate residual method) achieves near-Cholesky MMSE performance at a fraction of the computational cost, without preconditioning (Zhang et al., 2018).
  • Linear Discrete Ill-posed Problems: Preconditioned and Arnoldi-based regularized versions (Arnoldi-Tikhonov, Arnoldi-TSVD) mitigate semi-convergence and stabilize ill-posed inversions (Gazzola et al., 2018).
  • Global/Block/Randomized GMRES: RGl-GMRES enables efficient Krylov subspace construction for very large numbers of right-hand sides using sketching techniques, providing nearly identical convergence with significant computational cost reduction (Badahmane et al., 16 Feb 2026).

7. Multiright-Hand Side and Flexible Extensions

Recent variants address the case of dynamically arriving or multiple right-hand sides. Modern algorithms maintain a single orthonormal basis encapsulating the union of Krylov spaces across solutions, thus achieving improved storage efficiency and robustly supporting flexible and deflated restart strategies. Such extensions subsume GCR-type recurrences, enabling both flexible preconditioning and spectral augmentation within a streamlined computational framework (Sukmanyuk et al., 2024).


References:

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Generalized Minimum RESidual (GMRES) Algorithm.