Any nonincreasing convergence curves are simultaneously possible for GMRES and weighted GMRES, as well as for left and right preconditioned GMRES 2


Abstract

The convergence of the GMRES linear solver is notoriously hard to predict. A particularly enlightening result by [Greenbaum, Pták, Strakoš, 1996] is that, given any non-increasing convergence curve, one can build a linear system for which the residual norms produced by GMRES realize that convergence curve. What is even more extraordinary is that the eigenvalues of the problem matrix can be chosen arbitrarily. We build upon this idea to derive novel results about weighted and preconditioned GMRES. We prove that for any linear system and any prescribed convergence curve, there exists a weight matrix \(M\) for which weighted GMRES (i.e.GMRES in the inner product induced by \(M\)) realizes that convergence curve, and we characterize the form of \(M\). Additionally, we exhibit a necessary and sufficient condition on \(M\) for the simultaneous prescription of two convergence curves, one realized by GMRES in the Euclidean inner product, and the other in the inner product induced by \(M\). These results are then applied to infer some properties of preconditioned GMRES when the preconditioner is applied either on the left or on the right. For instance, we show that any two convergence curves are simultaneously possible for left and right preconditioned GMRES.

Keywords: Krylov subspace method, GMRES, weighted GMRES, left preconditioning, right preconditioning, weighted inner product, convergence analysis.

Mathematics Subject Classification: 65F10, 65F08, 65F35.

Communicated by Francoise Tisseur

Introduction↩︎

The GMRES algorithm [1], [2] is one of the most popular methods for solving general non-Hermitian linear systems. Yet, to this date, its convergence behaviour is not fully understood. While classical quantities such as the spectrum, the pseudo-spectrum, or the numerical range can provide insight in many situations, they do not offer a complete explanation of the observed residual decay. In particular, when standard sufficient conditions fail (for instance when the numerical range contains the origin), little can be concluded a priori about convergence.

A striking change of perspective was introduced by Greenbaum, Pták and Strakoš in [3]. Rather than attempting to deduce convergence from properties of a fixed matrix, they considered the inverse question: given a prescribed (non-increasing) residual convergence curve, does there exist a linear system whose GMRES residuals realize it? Their fundamental result shows that any admissible convergence curve can be realized by GMRES. Even more remarkably, this can be achieved while also prescribing the spectrum of the matrix arbitrarily, demonstrating that eigenvalues alone do not determine GMRES convergence.

In practice, GMRES is frequently modified either by changing the inner product (a method called weighted GMRES) or by introducing preconditioning. The purpose of this work is to analyze the convergence curves that can be achieved simultaneously either by weighted and unweighted GMRES, or by left and right preconditioned GMRES. It is shown that any two convergence curves can be simultaneously achieved as long as the exact solution is reached at the same iteration (1 and 7). This indicates that modifying the inner product or the position of the preconditioner can have a drastic impact on convergence. In 3, a linear system \(Ax = b\) and a preconditioner \(H\) are considered. It is proved that, if right preconditioned GMRES produces residuals \(\mathtt{r}_i := \| b - A x_i \|\) and left preconditioned GMRES produces residual \(\widetilde{\mathtt{r}}_i := \|H(b - A x_i)\|\), there exists another linear system \(\widetilde{A} \widetilde{x} = \widetilde{b}\) and preconditioner \(\widetilde{H}\) such that the convergence curves are reversed. What is meant by reversed is that right preconditioning \(\widetilde{A} \widetilde{x} = \widetilde{b}\) by \(\widetilde{H}\) produces the residual curve \(\| \widetilde{b} - \widetilde{A} \widetilde{x}_i \| = \widetilde{\mathtt{r}}_i\) while left preconditioning produces the residual curve \(\|\widetilde{H}(\widetilde{b} - \widetilde{A} \widetilde{x}_i ) \| = \mathtt r_i\).

The possibility for the efficiency of a preconditioner to depend on whether it is applied on the left or on the right has already been raised as early as in [4] (a main result of which can be found in [5]) and in [6]. See also the literature review in [7]. A key observation is that weighted GMRES provides a unifying framework for all preconditioned variants. This suggests extending the prescribed convergence curve analysis to the weighted setting first, and then deduce consequences for preconditioned GMRES. The viewpoint in [3] has already been refined and extended in several directions. Arioli, Pták and Strakoš [8] provided a complete parametrization of all systems generating a prescribed convergence curve (the APS parametrization), thereby making explicit the structure of the admissible pairs \((A,b)\). Meurant [9] further analyzed this parametrization and clarified its implications. In parallel, it was shown in [10] that not only the spectrum but also any prescribed set of harmonic Ritz values (i.e.the zeros of the GMRES residual polynomial) can be realized for a given convergence curve at any iteration, a result further developed in [11], [12]. Extensions to restarted and block variants of GMRES were established in [13] and [14], respectively. An analysis closely related to our work can be found in [15], where the residual and error convergence curves are prescribed simultaneously. Even though the norm of the error can also be viewed as a weighted norm of the residual, this setup is particular because the weight varies with the operator.

Understanding the convergence of weighted GMRES, an interesting question in itself, can also be viewed as a step toward understanding the convergence of standard GMRES. In recent work [16], Embree has extended the range of applicability of Elman’s convergence bound [17] by considering weighted GMRES. Indeed, as long as the eigenvalues are on one side of the origin, [16] proposes the construction of an inner product for which the field of values is also on one side of the origin, and hence the Elman bound applies. We view this as a very promising way of predicting the convergence of GMRES for a large class of problems, and we aim to provide some level of insight into the connection between the convergence of GMRES in the Euclidean norm and in the norm used for analysis.

Weighted GMRES is a term coined by Essai [18], who demonstrated that the convergence of restarted GMRES can be accelerated by incorporating a diagonal weight matrix into the inner product of the Arnoldi process at each restart. Receiving attention, Essai’s technique is analyzed from the angle of the Ritz values [19] and the eigenvectors [20], providing insights into use cases where this weighted method can be particularly beneficial. The abstract algorithm of GMRES using a non-standard inner product has been explored in [21], [22] and references therein. We also refer to [23] for a reflection about which norm should be considered to assess convergence. Earlier works on what is now called weighted GMRES include [24][28].

0.0.0.1 Outline

This manuscript starts with a preliminary section where we introduce GMRES and recall the original result from [3] about the prescription of convergence curves. The formalism for prescribed convergence curves is introduced, and in particular the notation \(g_i = \sqrt{\|r_{i-1}\|^2 - \|r_i\|^2}\) for the decrease in norm between two subsequent residuals (as in [3]). Prescribing a non-increasing convergence curve is the same as prescribing the quantities \(g_i\) stored in a vector \(g \in \mathbb{R}^n\). In 2, we present novel theoretical results about weighted GMRES and how it compares to GMRES in the Euclidean norm. Stemming from the fact that there are equivalences between weighted GMRES and preconditioned GMRES (under the right choices of linear systems, weights and preconditioners), we deduce in 3 some new results about prescribed convergence curves for left and right preconditioned GMRES. To complement our theoretical results, 4 provides numerical illustrations exploring the behavior of weighted and preconditioned GMRES in various circumstances. The MATLAB code reproducing the numerical experiments is openly available3. Moreover, as all the proofs are constructive, it also includes the implementation of examples that verify the theorems. Besides, we make available our MATLAB implementation of GMRES4, which accepts left/right preconditioners and change of inner product.

0.0.0.2 Flavour of our work

We present four results (in a simplified setting) that give a flavour of our work on weighted GMRES and on preconditioned GMRES.

0.0.0.3 Simultaneous prescription of convergence curves for weighted and unweighted GMRES.

The first result (2) is that, for any given system \(A x = b\) and prescribed convergence curve, there exists a Hermitian positive definite weight matrix \(M\) such that weighted GMRES applied to \(Ax=b\) realizes the prescribed convergence curve. The second result (4) considers two prescribed convergence curves (i.e. sequences of residual norm values) \((\mathtt{r}_i)_i\) and \((\widetilde{\mathtt{r}}_i)_i\): \[\mathtt{r}_0 > \mathtt{r}_1 > \mathtt{r}_2 > \dots \text{ for GMRES, and } \widetilde{\mathtt{r}}_0 > \widetilde{\mathtt{r}}_1 > \widetilde{\mathtt{r}}_2 > \dots \text{ for weighted GMRES.}\] We prove that, for a given Hermitian positive definite weight matrix \(M\), there exists a system \(Ax=b\) such that both convergence curves are realized if and only if there exists a non-singular upper triangular matrix \(T\) such that the singular values of \(T\) are the inverse square roots of the eigenvalues of \(M\), and \[\begin{pmatrix} \sqrt{\mathtt{r}_0^2 - \mathtt{r}_1^2}, & \sqrt{\mathtt{r}_1^2 - \mathtt{r}_2^2}, & \dots\end{pmatrix}^\top = T\, \begin{pmatrix} \sqrt{{\widetilde{\mathtt{r}}_0}^2 - {\widetilde{\mathtt{r}}_1}^2},& \sqrt{{\widetilde{\mathtt{r}}_1}^2 - {\widetilde{\mathtt{r}}_2}^2},& \dots\end{pmatrix}^\top.\] Additionally, the eigenvalues of \(A\) can be prescribed.

0.0.0.4 Simultaneous prescription of convergence curves for left and right preconditioned GMRES.

Consider two prescribed convergence curves \((\mathtt{r}_i)_i\) and \((\widetilde{\mathtt{r}}_i)_i\):

  • \(\mathtt{r}_0 > \mathtt{r}_1 > \mathtt{r}_2 > \dots\) for right preconditioned GMRES,

  • \(\widetilde{\mathtt{r}}_0 > \widetilde{\mathtt{r}}_1 > \widetilde{\mathtt{r}}_2 > \dots\) for left preconditioned GMRES.

The first result (7) is that there exists a system \(A x = b\) and a preconditioner \(H\) such that both convergence curves are realized. Additionally, the eigenvalues of \(AH\) (or \(HA\), which are the same since both matrices are similar) can be prescribed. The second result (9) is that, for a given preconditioner \(H\), there exists a system \(Ax=b\) such that both convergence curves are realized if and only if there exists a non-singular upper triangular matrix \(T\) such that the singular values of \(T\) are the inverse of those of \(H\) and \[\begin{pmatrix} \sqrt{\mathtt{r}_0^2 - \mathtt{r}_1^2}, & \sqrt{\mathtt{r}_1^2 - \mathtt{r}_2^2}, & \dots\end{pmatrix}^\top = T\, \begin{pmatrix} \sqrt{\widetilde{\mathtt{r}}_0^2 - {\widetilde{\mathtt{r}}_1}^2},& \sqrt{\widetilde{\mathtt{r}}_1^2 - \widetilde{\mathtt{r}}_2^2},& \dots\end{pmatrix}^\top.\] Additionally, the eigenvalues of \(AH\) (or, equivalently, of \(HA\)) can be prescribed.

0.0.0.5 Notation

We denote by \(\mathbb{R}_+\) the set of non-negative real values (including 0). Let \(n\in\mathbb{N}\). For any matrix \(A\in\mathbb{C}^{n\times n}\), \(A^*\) denotes its conjugate transpose and, if invertible, \(A^{-1}\) its inverse and \(A^{-*}\) the inverse of \(A^*\). We refer to \(A\) being “hpd” for Hermitian positive definite.

1 Preliminary on GMRES and convergence curve formalism↩︎

The objective of this section is to introduce GMRES as well as a framework for convergence analysis by prescribing convergence curves that is greatly inspired by [3].

We denote by \((A,b)\) the general linear system \[Ax = b,\] where \(A\in\mathbb{C}^{n\times n}\) is a non-singular matrix and \(b\in\mathbb{C}^n\) is a vector. Given an inner product \(\left\langle \cdot, \cdot\right\rangle\) and its associated norm \(\|\cdot\|\), we consider the application of the GMRES algorithm [1], [2] with a zero initial guess (\(x_0 = 0\)) to the system \((A, b)\). We refer to this procedure as GMRES(\(A,b\)). In this section, the inner product \(\left\langle \cdot, \cdot\right\rangle\) remains abstract. The method is associated with the Krylov subspaces \[\mathcal{K}_i(A, b) := \operatorname{span} \{b, Ab, A^2b, \dots, A^{i-1}b\} \qquad \forall i=1, \dots, n.\] At any iteration \(i=0,\dots,\dim \mathcal{K}_n(A, b)\), the approximate solution is denoted by \(x_i\) and the corresponding residual by \(r_i := b - A x_i\). By definition of GMRES, each residual is characterized by \[\label{eq:minim95pb} r_i \in b + A\mathcal{K}_i(A, b) \text{ and } \|r_i\| = \min_{x\in \mathcal{K}_i(A, b)} \|b-Ax\| = \min_{y\in A\mathcal{K}_i(A, b)} \|b-y\|.\tag{1}\]

The Krylov residual spaces \(A\mathcal{K}_i(A, b) = \operatorname{span}\{Ab, A^2b, \dots, A^ib\}\) play a key role in formalizing GMRES. These spaces are nested by definition, and we define the notion of nested residual basis:

Definition 1 (Nested residual basis). Let \((A, b)\) define a given linear system, and \(m :=\dim \mathcal{K}_n(A, b)\) be the breakdown index of GMRES\((A,b)\). The family \((w_j)_{j=1,\dots,m}\) is called a nested basis of \(A\mathcal{K}_m(A, b)\) if, for all \(i=1,\dots,m\), its restriction to the \(i\) first vectors is a basis of \(A\mathcal{K}_i(A, b)\).

The breakdown index of GMRES(\(A,b\)) is also the iteration at which GMRES finds the exact solution [2]. Since it does not depend on the choice of inner product, all weighted versions of GMRES(\(A,b\)) reach the exact solution at the same iteration.

Another interpretation of 1 is that \((b-r_i)\) is the orthogonal projection of \(b\) onto \(A\mathcal{K}_i(A, b)\). Consequently, \(r_i\) can also be expressed as \(r_i = b - \sum_{j=1}^i \left\langle b, w_j\right\rangle w_j\), in which \((w_j)_{j=1,\dots,m}\) is a nested, orthonormal basis of \(A\mathcal{K}_n(A, b)\). Since \(r_m = 0\), this implies that \(b = \sum_{j=1}^m \left\langle b, w_j\right\rangle w_j\), \(r_i = \sum_{j=i+1}^m \left\langle b, w_j\right\rangle w_j\), and that \[\label{eq:ip95b95wj} \abs{\left\langle b, w_j\right\rangle } = \sqrt{\|r_{j-1}\|^2 - \|r_j\|^2}.\tag{2}\] It turns out that the convergence of GMRES can be conveniently captured by these differences (as in [3]).

Definition 2 (Residual decrease vector). Let \(g \in \mathbb{R}_+^n\). We say that \(g\) is the residual decrease vector of GMRES\((A,b)\) if the GMRES residuals satisfy \[g_j = \sqrt{\|r_{j-1}\|^2 - \|r_j\|^2}, \quad j = 1,\dots, \dim \mathcal{K}_n(A, b),\] and all remaining entries of \(g\) are zero.

Many of the new results in this article are written in the residual decrease vector formalism. Next, we make explicit the meaning of prescribing a GMRES convergence curve through a residual decrease vector.

Definition 3 (Length of \(g\)). Let \(g \in \mathbb{R}_+^n\). If it exists, let \(p\) be the smallest index such that \(g_i = 0\) for all \(i>p\). Otherwise, set \(p=n\). In both cases, we say that \(p\) is the length* of \(g\).*

It can be noticed that, if a vector \(g \in \mathbb{R}_+^n\) is viewed as the residual decrease vector of GMRES\((A,b)\), then its length is equal to \(\dim \mathcal{K}_n(A, b)\), the breakdown index of GMRES.

Definition 4 (Realization of a convergence curve). Let \(g \in \mathbb{R}_+^n\) and let \(p\) be its length. Let \((A,b)\) define a linear system. We say that GMRES\((A,b)\) realizes the convergence curve induced by \(g\) if, denoting by \((r_i)_i\) the residuals produced, \[p = \dim \mathcal{K}_n(A, b) \qquad\text{ and }\qquad g_j = \sqrt{\|r_{j-1}\|^2 - \|r_j\|^2} \quad \forall j = 1,\dots, p,\] or, equivalently, if \[\label{eq:r95from95g} \|r_i \| = \sqrt{\sum_{j=i+1}^n g_j^2} \qquad \forall i=0,\dots,n.\qquad{(1)}\]

It can be observed from ?? at \(i=0\) that \(\| b \|\) is entirely defined by \(g\). Another key observation is that prescribing residuals through ?? restricts us to non-increasing convergence curves. This is a difference with [15] where error curves are prescribed that are not necessarily monotonic. For future reference, we recall in 1 the fundamental result of [3]. We do not recall the proof which is constructive and allows to explicitly define \((A,b)\).

Theorem 1 (System with prescribed convergence curve and spectrum [3]). Consider \(g\in\mathbb{R}_+^n\) a residual decrease vector of arbitrary length \(m\), and the prescribed, non-vanishing, complex numbers \((\lambda_i)_{i=1,\dots,n}\).
There exists a system \((A,b)\) such that the eigenvalues of \(A\) are the \((\lambda_i)_{i=1,\dots,n}\) and GMRES\((A,b)\) realizes the convergence curve induced by \(g\).

While the original theorem is restricted to the case where no breakdown occurs before the last iteration, early termination of GMRES is considered in [11]. We next isolate a necessary and sufficient condition for GMRES\((A,b)\) to realize a given convergence curve. But first, we introduce two useful results about nested residual basis that are orthonormal.

Lemma 1. Let \((A, b)\) define a given linear system, and \(m:=\dim \mathcal{K}_n(A, b)\).

  1. All nested orthonormal bases of \(A\mathcal{K}_m(A, b)\) are equal, up to the multiplication of each basis vector by a scalar of modulus 1.

  2. There exists a nested orthonormal basis \((w_i)_{i=1,\dots,m}\) of \(A\mathcal{K}_m(A, b)\) such that \(\left\langle b, w_i\right\rangle \in \mathbb{R}_+\) for all \(i=1,\dots,m\).

Proof. The first item is proved by induction over \(m\). For the second, consider any nested orthonormal basis \((\widetilde{w}_i)_{i=1,\dots,m}\) of \(A\mathcal{K}_m(A, b)\) and set \(w_i := \gamma_i \widetilde{w}_i\) with \(\gamma_i := \abs{\left\langle b, \widetilde{w}_i\right\rangle }/\left\langle b, \widetilde{w}_i\right\rangle\) if \(\left\langle b, \widetilde{w}_i\right\rangle \not=0\) and \(\gamma_i :=1\) otherwise. ◻

Lemma 2 (Necessary and sufficient condition for prescribing a convergence curve). Let \((A, b)\) define a given linear system, and \(g\in\mathbb{R}_+^n\) be a residual decrease vector of length \(m:=\dim \mathcal{K}_n(A, b)\). GMRES\((A,b)\) realizes the convergence curve induced by \(g\) if and only if there exists a nested, orthonormal basis of \(A\mathcal{K}_m(A, b)\), denoted by \((w_i)_{i=1,\dots,m}\), such that \[\label{eq:b} b = \sum_{i=1}^m g_i w_i.\qquad{(2)}\]

Proof. First, assume that \((w_i)_{i=1,\dots,m}\) is a nested, orthonormal basis of \(A\mathcal{K}_m(A, b)\) verifying ?? . Then, by orthonormality of the \(w_i\) and 2 , the residuals \((r_i)_{i=1,\dots,m}\) of GMRES\((A,b)\) satisfy \(g_i = \left\langle b, w_i\right\rangle = \sqrt{\|r_{i-1}\|^2 - \|r_i\|^2}\), for any \(i=1, \dots, m\). This shows that GMRES\((A,b)\) realizes the convergence curve induced by \(g\).

Conversely, assume that GMRES\((A,b)\) realizes the convergence curve induced by \(g\), i.e., \(g_i = \sqrt{\|r_{i-1}\|^2 - \|r_i\|^2}\) for any \(i=1,\dots,m\). By 1, there exists \((w_i)_{i=1,\dots,m}\), a nested orthonormal basis of \(A\mathcal{K}_m(A, b)\) such that \(\left\langle b, w_i\right\rangle \in \mathbb{R}_+\) for all \(i=1,\dots,m\). Applying 2 , we get \[\abs{\left\langle b, w_i\right\rangle } = \left\langle b, w_i\right\rangle = g_i \qquad \forall i=1, \dots, m, \qquad\text{ and }\qquad b = \sum_{i=1}^m g_i w_i.\] ◻

In 2, it is assumed that the length \(m\) of \(g\) equals \(\dim \mathcal{K}_n(A, b)\). This is not strictly necessary because the equality could be recovered from ?? . However, we prefer to keep the assumption in order to emphasize that the breakdown index is fixed by the linear system.

We end this section with the relationship between two nested residual bases. This plays a fundamental role in subsequent results since we will be considering nested bases of the same space that are orthonormal with respect to different inner products. The following result is similar to [18] and [21] with the difference that we choose to consider bases for the whole of \(\mathbb{C}^n\).

Lemma 3 (Relationship between two nested bases). *Let \((A, b)\) define a given linear system, and \(m := \dim \mathcal{K}_n(A, b)\). Let \((w_i)_{i=1,\dots,n}\) be a basis of \(\mathbb{C}^n\) such that \((w_i)_{i=1,\dots,m}\) is a nested basis of \(A\mathcal{K}_m(A, b)\). Denote by \(W\) its column-matrix representation.
Consider \((\widetilde{w}_i)_{i=1,\dots,n}\) another basis of \(\mathbb{C}^n\), with column-matrix \(\widetilde{W}\). Then, \((\widetilde{w}_i)_{i=1,\dots,m}\) also forms a nested basis of \(A\mathcal{K}_m(A, b)\) if and only if there exists a non-singular matrix \(T \in\mathbb{C}^{n\times n}\) of the form \[\label{eq:T95form} T := \left( \begin{array}{c|c} \widehat{T} & * \\ \hline 0 & * \end{array} \right),\tag{3}\] such that \[\label{eq:W} \widetilde{W} = WT,\tag{4}\] where \(\widehat{T}\in\mathbb{C}^{m\times m}\) is upper triangular and invertible, and \(*\) denotes possibly non-zero coefficients of no importance to the convergence of GMRES.*

Note that if \(m=n\) (no breakdown), then, in 3 , \(T\) is simply an upper triangular invertible matrix.

Proof. The \((1,1)\) and \((2,1)\)-blocks of \(T\) are justified by the nestedness of the spaces \((A\mathcal{K}_i(A, b))_{i=1,\dots,m}\). The remaining blocks must only ensure \(T\)’s non-singularity. ◻

2 Weighted GMRES↩︎

Any Hermitian positive definite (hpd) matrix \(M\in\mathbb{C}^{n\times n}\) induces an inner product and a norm, respectively defined by \[\left\langle x, y\right\rangle _M := y^*Mx \qquad\text{ and }\qquad \|x\|_M := \sqrt{\left\langle x, x\right\rangle _M} \qquad\text{ for all } x,y\in\mathbb{C}^n.\] A matrix \(X\) is said to have \(M\)-orthonormal columns when \(X^*MX = I\) (the identity matrix). The notation \(^*\) invariably denotes the conjugate transpose of a vector or a matrix.

We call \(M\)-GMRES the GMRES algorithm resulting from the choice \(\left\langle \cdot, \cdot\right\rangle := \left\langle \cdot, \cdot\right\rangle _M\). In this formalism, \(I\)-GMRES refers to the Euclidean setting. Since the inner product \(\left\langle \cdot, \cdot\right\rangle\) remained abstract in the preceding section, all results presented before still hold for \(M\)-GMRES. Following 4, when stating that \(M\)-GMRES realizes the convergence curve induced by a residual decrease vector \(g\), the residuals are measured in the \(M\)-norm.

2.1 \(I\)-GMRES and \(M\)-GMRES↩︎

Let \(M\) be an hpd matrix. Let us begin with some natural relations between the \(k\)-th \(I\)-GMRES residual \(r_k\) and the \(k\)-th \(M\)-GMRES residual \(\widetilde{r}_k\). The initial guesses are still set to \(0\), so the only difference between both algorithms is the norm in which the minimization property is enforced. Denoting by \(\mu_{\min} (M)\) and \(\mu_{\max} (M)\), the extreme eigenvalues of \(M\), it follows that \[\label{eq:IM-GMRES-easy} \mu_{\min}(M)\|r_k\|_I^2 \leq \mu_{\min}(M)\| \widetilde{r}_k\|_I^2 \leq \| \widetilde{r}_k \|_M^2 \leq \| r_k\|_M^2 \leq \mu_{\max}(M) \| r_k \|_I^2,\tag{5}\] where the first and third inequalities come from the definition of GMRES, and the others are spectral estimates. In particular, with \(\kappa(M){ = \mu_{\max}(M) / \mu_{\min} (M)}\) the condition number of \(M\), we obtain \[\label{eq:IM-GMRES-easy2} \| r_k \|_I^2 \leq \| \widetilde{r}_k\|_I^2 \leq \kappa(M) \| r_k \|_I^2 \text{ and } \|\widetilde{r}_k\|_M^2 \leq \| r_k\|_M^2 \leq \kappa(M) \|\widetilde{r}_k\|_M^2.\tag{6}\] Additionally, \(r_0 = \widetilde{r_0}\) and the normalized residuals satisfy \[\label{eq:link95nomalized95residuals} \kappa(M)^{-1} \frac{\|\widetilde{r}_k\|_M^2}{\|\widetilde{r}_0\|_M^2} \leq \frac{ \| r_k \|_I^2}{\|r_0\|_I^2} \leq \kappa(M) \frac{\|\widetilde{r}_k\|_M^2}{\|\widetilde{r}_0\|_M^2}.\tag{7}\]

We next apply the formalism proposed by Ipsen in [29][Theorem 2.1 and Corollary 2.2] with some details of the proof from [30]. What is new here is that we extend (straightforwardly) the formalism to weighted GMRES and apply it to compare either the same residual in two norms, or the residuals of \(I\)- and \(M\)-GMRES.

Consider \(M\)-GMRES\((A,b)\) starting with \(\widetilde{r}_0 = b\). Up to convergence, the \(k\)-th residual is determined by \[\widetilde{r}_k = b - W_k\underbrace{(W_k^* M W_k)^{-1} W_k^* M b }_{:=y_0},\] for any matrix \(W_k \in \mathbb{C}^{n\times k}\) whose columns form a basis of \(A \mathcal{K}_k(A,b)\). Let \(B = (b \,\,\, W_k)\) be the concatenation of the right-hand-side and this basis. This gives a basis of the Krylov subspace \(\mathcal{K}_{k+1}(A,b)\). Moreover, \[B^* M B = \begin{pmatrix} b^* M b & b^*M W_k \\ W_k^* M b & W_k^* M W_k \end{pmatrix},\] and the first row in the inverse of this matrix is [31]: \[e_1^\top (B^* M B )^{-1} = (b^* M \widetilde{r}_k)^{-1} \begin{pmatrix}1 & -y_0^* \end{pmatrix}, \text{ where } e_1 = (1,0, \dots, 0)^\top \in \mathbb{C}^{k+1}.\] Multiplying on the right by \(B^*\) gives \(e_1^\top (B^* M B )^{-1} B^* = (b^* M \widetilde{r}_k)^{-1} \underbrace{(b^* -y_0^*W_k^* )}_{=\widetilde{r}_k^*} = \frac{\widetilde{r}_k^*}{ \|\widetilde{r}_k\|_M^2 }\), where the last equality is because \(b^* M \widetilde{r}_k = \|\widetilde{r}_k\|_M^2\) by \(\widetilde{r}_k^* M W_k = 0\). Taking the transpose, we get \[\frac{\widetilde{r}_k}{ \|\widetilde{r}_k\|_M^2 } = B (B^* M B )^{-1} e_1.\] Next, we take the \(M\)-norm and the \(I\)-norm of this estimate in order to get a formula for the \(k\)-th residual norm: \[\label{eq:ipsen} \|\widetilde{r}_k\|_M = \| B (B^* M B )^{-1} e_1\|_M^{-1} = \|e_1\|_{(B^* M B )^{-1}}^{-1},\tag{8}\] as well as for the ratio between the \(I\)- and \(M\)-norms of the \(k\)-th residual \[\frac{ \|\widetilde{r}_k\|_I}{ \|\widetilde{r}_k\|_M} = \frac{\| B (B^* M B )^{-1} e_1\|_I}{\| B (B^* M B )^{-1} e_1\|_M}.\]

Remark 1. The identity \(\|e_1\|_{(B^* M B )^{-1}} = \|\widetilde{r}_k\|_M^{-1}\) can be seen directly from the fact that the \((1,1)-\)block of \((B^* M B )^{-1}\) equals \((b^* M \widetilde{r}_k)^{-1}= \|\widetilde{r}_k \|_M^{-2}\).

Of course, the same results adapt to the residuals \(r_k\) of \(I\)-GMRES: \[\|r_k\|_I = \| B (B^* B )^{-1} e_1\|_I^{-1}=\|e_1\|_{(B^* B )^{-1}}^{-1} , \text{ and } \frac{\|r_k\|_M}{ \| r_k\|_I} = \frac{\| B (B^* B )^{-1} e_1\|_M }{\| B (B^* B )^{-1} e_1\|_I}.\] Finally, comparisons between the residual norms of unweighted and weighted GMRES can be drawn, e.g., \[\frac{\|r_k\|_I}{\|\widetilde{r}_k\|_M} = \frac{\|e_1\|_{(B^*MB )^{-1}}}{\|e_1\|_{(B^*B )^{-1}}}= \frac{\| B (B^* M B )^{-1} e_1\|_M }{\| B (B^*B )^{-1} e_1\|_I },\] where each residual is in its natural norm, \[\frac{\|\widetilde{r}_k\|_I }{\|r_k\|_I} = \frac{\| B (B^* M B )^{-1} e_1\|_I \| B (B^* B )^{-1} e_1\|_I }{\| B (B^* M B )^{-1} e_1\|_M^{2} },\] where both residuals are in the \(I\)-norm, and \[\label{eq:Ipsenfinal} \textcolor{black}{\frac{ \|\widetilde{r}_k\|_N}{ \| r_k\|_N} = \frac{\| B (B^* M B )^{-1} e_1\|_N}{ \| B (B^* B )^{-1} e_1\|_N }\frac{\| B (B^*B )^{-1} e_1\|_I^2}{\| B (B^* M B )^{-1} e_1\|_M^2}},\tag{9}\] where both residuals are measured in a third norm induced by some hpd matrix \(N\). A potential norm of interest could be the Euclidean norm of the error (\(\|x - x_k\|_I\)) which corresponds to the choice \(N = (A A^*)^{-1}\).

We do not pursue this analysis here, but we do wish to mention two contributions of [32] which could also be extended to weighted GMRES: the first is a discussion on the choice of basis \(W_k\), the second is the analysis of the effect on the bounds of adding a vector to \(W_k\) when performing iteration \(k\).

2.2 Prescribed convergence curves↩︎

We now turn back to the convergence curve formalism. We start by proposing the construction of an inner product for which weighted GMRES achieves some desired convergence curve.

Theorem 2. Let \((A, b)\) define a given linear system, and consider \(\widetilde{g}\in\mathbb{R}_+^n\) a residual decrease vector. If \(\widetilde{g}\) is of length \(m:=\dim \mathcal{K}_n(A, b)\), then there exists an hpd matrix \(M\) such that \(M\)-GMRES(\(A,b\)) realizes the convergence curve induced by \(\widetilde{g}\).

Proof. Considering 2, the proof hinges on finding an hpd matrix \(M\) and a basis \((\widetilde{w}_i)_{i=1,\dots,n}\) such that: \((\widetilde{w}_i)_{i=1,\dots,m}\) is an \(M\)-orthonormal nested basis of \(A\mathcal{K}_m(A, b)\), and the decomposition of \(b\) in this basis writes \[\label{eq:b95in95W} b = \sum_{i=1}^m \widetilde{g}_i \widetilde{w}_i.\tag{10}\] According to 1, there exists \((w_i)_{i=1,\dots,m}\) an \(I\)-orthonormal nested basis of \(A\mathcal{K}_m(A, b)\) such that \(\left\langle b, w_i\right\rangle \in \mathbb{R}_+\) for each \(i\). We complete the set into an (\(I\)-)orthonormal basis \((w_i)_{i=1,\dots,n}\) of \(\mathbb{C}^n\). We denote by \(W\) its column-matrix representation and let \(g := W^{-1}b = W^* b\). (Although we do not use this in the proof, we remark that \(g\) is the residual decrease vector for \(I\)-GMRES\((A,b)\).)

We define the upper triangular matrix \(\widehat{T}\in\mathbb{C}^{m\times m}\) by setting all coefficients to zero, except \[\begin{cases} \widehat{T}_{ii} := g_i / \widetilde{g}_i &\text{ if } g_i \neq 0 \text{ and } \widetilde{g}_i \neq 0, \\ \widehat{T}_{ii} := 1 &\text{ if } g_i = \widetilde{g}_i = 0, \\ \widehat{T}_{ii} := -g_m / \widetilde{g}_i,\quad \widehat{T}_{im} := g_m / \widetilde{g}_m &\text{ if } g_i = 0 \text{ and } \widetilde{g}_i \neq 0, \\ \widehat{T}_{ii} := 1,\quad \widehat{T}_{im} := g_i / \widetilde{g}_m &\text{ if } g_i \neq 0 \text{ and } \widetilde{g}_i = 0. \end{cases}\] Note that \(\widetilde{g}_m \neq 0\) because \(\widetilde{g}\) is of length \(m\), and \(g_m \neq 0\) because \(m\) is the breakdown index of GMRES(\(A,b\)). Consequently, all diagonal coefficients are non-zero, ensuring that \(\widehat{T}\) is invertible. We then simply define \[\label{eq:T95def} T := \left( \begin{array}{c|c} \widehat{T} & \\ \hline & I \end{array} \right),\tag{11}\] where \(I\) is the identity matrix of size \((n-m)\). \(T\) is clearly invertible. Consequently, by 3, the matrix \(\widetilde{W} := WT\) defines a nested basis of \(A\mathcal{K}_m(A, b)\). Additionally, one can easily verify that this definition of \(T\) enforces the relation \[g = T \widetilde{g},\] which, multiplied by \(W\) on the left, yields \[b = \widetilde{W}\widetilde{g},\] i.e. that relation 10 holds.

It remains only to find \(M\) such that \(\widetilde{W}\) has \(M\)-orthonormal columns: we set \[\label{eq:M95def} M := (\widetilde{W} \widetilde{W}^*)^{-1},\tag{12}\] and verify that \[\widetilde{W}^* M \widetilde{W} = \widetilde{W}^* (\widetilde{W} \widetilde{W}^*)^{-1} \widetilde{W} = \widetilde{W}^* \widetilde{W}^{-*} \widetilde{W}^{-1}\widetilde{W} = I.\] We conclude by applying 2 in the \(M\)-inner product. ◻

In the proof above, if \(\widetilde{g}_i\) and \(g_i\) have no zeroes, i.e.,if \(M\)-GMRES and \(I\)-GMRES never stagnate (or if \(\widetilde{g}_i = 0 \Leftrightarrow g_i = 0\), i.e. if \(M\)-GMRES and \(I\)-GMRES stagnate at the same iterations) then the proposed \(T\) is a diagonal matrix and \(\widetilde{W}\) is simply a scaling of \(W\).

Corollary 1 (Any two convergence curves are simultaneously possible). Consider the convergence curves induced by \(g\) and \(\widetilde{g}\in\mathbb{R}_+^n\) of same length.
There exists a system \((A,b)\) and an hpd matrix \(M\) such that \(I\)-GMRES\((A,b)\) realizes \(g\), and \(M\)-GMRES\((A,b)\) realizes \(\widetilde{g}\). Additionally, the eigenvalues of \(A\) can be prescribed.

Proof. By 1, there exists a system \((A,b)\) such that \(I\)-GMRES\((A,b)\) realizes \(g\). Moreover, the eigenvalues of \(A\) can be prescribed. With these \(A\) and \(b\), the result follows from applying 2. ◻

In the proof, the system \((A,b)\) is set to satisfy only the prescribed convergence curve \(g\) for \(I\)-GMRES. Then, the second prescribed convergence curve imposes a condition on the inner product \(M\) without any further restriction on \((A,b)\). For this reason, we can impose more than two convergence curves in the following sense.

Corollary 2 (Any number of convergence curves is simultaneously possible). Consider the \(K + 1\) convergence curves induced by \(g\) and \((\widetilde{g}^{(k)})_{k=1,\dots,K} \in\mathbb{R}_+^n\). Assume that they all have the same length.
There exists a system \((A,b)\) and \(K\) hpd matrices \(M^{(k)}\) such that \(I\)-GMRES\((A,b)\) realizes \(g\), and \(M^{(k)}\)-GMRES\((A,b)\) realizes \(\widetilde{g}^{(k)}\). Additionally, the eigenvalues of \(A\) can be prescribed.

In the following theorem, we characterize the form of all weight matrices \(M\) for which \(M\)-GMRES realizes a prescribed convergence curve.

Theorem 3 (Characterization of the weight matrix). Let \((A,b)\) define a given linear system, \(m := \dim \mathcal{K}_n(A, b)\), and \(W\in\mathbb{C}^{n\times n}\) be a unitary matrix whose first \(m\) columns form a nested basis of \(A\mathcal{K}_m(A,b)\). Consider the residual decrease vector \(\widetilde{g}\in\mathbb{R}_+^n\) of length \(m\).
Consider \(M\) an hpd matrix. The two following statements are equivalent:

  1. \(M\)-GMRES\((A,b)\) realizes the convergence curve induced by \(\widetilde{g}\).

  2. There exists \(T\in\mathbb{C}^{n\times n}\) of the form 3 such that \[M^{-1} = W T (WT)^* \quad\text{ and }\quad b = WT\widetilde{g}.\]

Proof. Using 2, \(M\)-GMRES\((A,b)\) realizes the convergence curve induced by \(\widetilde{g}\) if and only if there exists a matrix \(\widetilde{W}\) whose columns are \(M\)-orthonormal, whose first \(m\) columns form a nested basis of \(A\mathcal{K}_m(A,b)\), and such that \(\widetilde{W} \widetilde{g} = b\). By 3, this is equivalent to: there exist a matrix \(T\) of the form 3 and a unitary matrix \(W\) whose first \(m\) columns form a nested basis of \(A\mathcal{K}_m(A,b)\) such that \(\widetilde{W} = W T\), and \(\widetilde{W}\) has \(M\)-orthonormal columns. Finally,

\[\left\{ \begin{align} \widetilde{W}^* M \widetilde{W} = I \\ \widetilde{W} \widetilde{g} =b \end{align} \right. \Leftrightarrow \left\{ \begin{align} M = (W T (WT)^*)^{-1} \\ b = WT \widetilde{g}. \end{align} \right.\] ◻

Remark 2. In 3 (ii), \(M\) does not depend on the particular choice of \(W\), since all possibilities differ only by scalar factors of modulus 1 for each vector (see 1). Indeed, the multiplicative factor of modulus 1 can be carried over to the corresponding row of \(T\).

In the preceding results, the system \((A,b)\) was fixed, and we explored the weight matrices \(M\) that enforce a prescribed convergence curve for \(M\)-GMRES\((A,b)\). We now fix the weight matrix \(M\), and investigate the existence of a system \((A,b)\) such that both the convergence curves of \(I\)-GMRES\((A,b)\) and \(M\)-GMRES\((A,b)\) are prescribed.

Theorem 4 (Simultaneous prescription of two convergence curves). Let \(M\in\mathbb{C}^{n\times n}\) be an hpd matrix, and consider the residual decrease vectors \(g\) and \(\widetilde{g}\in\mathbb{R}_+^n\) of matching length. Let \(\lambda_1\),…, \(\lambda_n\) be \(n\) non-zero complex numbers. The two following statements are equivalent:

  1. There exists a system \((A,b)\) such that the eigenvalues of \(A\) are the \((\lambda_i)_i\), \(I\)-GMRES(\(A,b\)) realizes \(g\) and \(M\)-GMRES(\(A,b\)) realizes \(\widetilde{g}\).

  2. There exists a non-singular matrix \(T\) of the form 3 such that \(g = T\widetilde{g}\) and the singular values of \(T\) are \((1/\sqrt{\mu_i})_i\) with \((\mu_i)_i\) denoting the (positive) eigenvalues of \(M\).

Remark that, once more, there is no condition at all on the spectrum of \(A\). In 2.3, the conditions on \(T\) in the second item of the theorem are analyzed and discussed.

Proof. Assume that [it:two-cc-1] holds. According to 2, there exists an \(I\)-orthonormal (resp.\(M\)-orthonormal) basis of \(\mathbb{C}^n\) such that \((w_i)_{i=1,\dots,m}\) (resp.\((\widetilde{w}_i)_{i=1,\dots,m}\)) is a nested basis of \(A\mathcal{K}_m(A, b)\) verifying \[\label{eq:b95Wg95Wt95gt} b = Wg = \widetilde{W}\widetilde{g}.\tag{13}\] According to 3 [it:two-cc-1], there exists a non-singular matrix \(T\) of the form 3 such that \[\label{eq:Wt95WT} \widetilde{W} = WT.\tag{14}\] Plugging 14 into 13 , we infer \(g = T\widetilde{g}\). Additionally, \(\widetilde{W}\) having \(M\)-orthonormal columns writes \[I = \widetilde{W}^*M\widetilde{W} = T^*W^*MWT \quad \Leftrightarrow \quad (TT^*)^{-1}=W^*M W \quad \Leftrightarrow \quad TT^* = W^* M^{-1} W.\] Since \(W^* = W^{-1}\), the matrices \(TT^*\) and \(M^{-1}\) are similar, so they share the same set of eigenvalues \((1/\mu_i)_i\). Consequently, the singular values of \(T\) are the \((1/\sqrt{\mu_i})_i\).

Conversely, assume that [it:two-cc-2] holds. Then, \(TT^*\) and \(M^{-1}\) are two hpd matrices that share the same set of eigenvalues, so there exists a unitary matrix \(W\) such that \[\label{eq:similar} TT^* = W^* M^{-1} W.\tag{15}\] Let us pose \(b := Wg\). By 1, there exists a matrix \(A\) such that the eigenvalues of \(A\) are the \((\lambda_i)_i\), and \(I\)-GMRES(\(A,b\)) realizes the convergence curve induced by \(g\). We next check that \(M\)-GMRES(\(A,b\)) realizes the convergence curve induced by \(\widetilde{g}\). Let \(m := \dim \mathcal{K}_n(A, b)\). Letting \(\widetilde{W} := WT\) ensures that the first \(m\) columns of \(\widetilde{W}\) form a nested basis of \(A\mathcal{K}_m(A, b)\) and that \(b = \widetilde{W}\widetilde{g}\). By 2, it remains only to prove that \(\widetilde{W}\) is \(M\)-orthonormal, which comes from \[\widetilde{W}^*M\widetilde{W} = T^*W^*MWT = I\] by 15 . ◻

Theorem 5. Let \((A,b)\) define a given linear system and \(M\) (hpd) define an inner product. Let \(g\) and \(\widetilde{g}\) be the residual decrease vectors realized by \(I\)- and \(M\)-GMRES, respectively. Let \(m\) be their common length. By 4, there exists a non-singular matrix \(T\) of the form 3 such that \(g = T\widetilde{g}\). We denote by \(T_{k+1:m}\) the block of \(T\) consisting of the rows and columns between indices \(k+1\) and \(m\). If, \(\sigma_{\min}(T_{k+1:m})\) and \(\sigma_{\max}(T_{k+1:m})\) denote the extreme singular values of this matrix, then \[\label{eq:r95sigma} \sigma_{\min}(T_{k+1:m}) \|\widetilde{r}_k \|_M \leq \|r_k\|_I \leq \sigma_{\max}(T_{k+1:m}) \|\widetilde{r}_k \|_M,\qquad{(3)}\] where, as usual, \(r_k\) and \(\widetilde{r}_k\) are the \(k\)-th residual vectors produced by \(I\)- and \(M\)-GMRES(\(A,b\)), respectively.

Proof. In this proof we use the (MATLAB inspired) notation \(y(a:b)\) (respectively, \(Y(a:b,a:b)\)) to select elements in a vector \(y\) (respectively, submatrices in a matrix \(Y\)) that correspond to indices between \(a\) and \(b\). Since \(g = T \widetilde{g}\) with \(T\) of the form 3 , and only the first \(m\) entries of \(g\) and \(\widetilde{g}\) are possibly non-zero, \[g(1:m) = T(1:m,1:m) \widetilde{g}(1:m) .\] Moreover, \(\widehat{T} = T(1:m,1:m)\) is upper triangular, so for any \(k\leq m-1\), \[g(k+1:m) = T(k+1:m,k+1:m) \widetilde{g}(k+1:m) = T_{k+1:m} \widetilde{g}(k+1:m),\] with the notation introduced in the theorem. It follows that \[\|g(k+1:m)\|_I^2 = \|\widetilde{g}(k+1:m)\|^2_{ T_{k+1:m}^* T_{k+1:m} },\] and \[\sigma_{\min}( T_{k+1:m})^2 \|\widetilde{g}(k+1:m)\|_I^2 \leq \| g(k+1:m)\|_I^2 \leq \sigma_{\max}^2( T_{k+1:m}) \|\widetilde{g}(k+1:m)\|_I^2,\] which is equivalent to the result in the theorem by definition of the residual decrease vectors. ◻

By an interlacing theorem for singular values [31], \[[\sigma_{\min}( T_{k+1:m}), \sigma_{\max}( T_{k+1:m})] \subset [\sigma_{\min}( T), \sigma_{\max}( T)].\] Together with 5 and ?? , this provides a new proof for 5 .

Remark 3 (Comparison with [21]). The previous result reminds us of a result by Pestana [21]. There, two nested bases for the Krylov subspace \(\mathcal{K}_k(A,b)\) at iteration \(k\) are denoted by \(V_k^I\) and \(V_k^M\), where the first is \(I\)-orthonormal and the second is \(M\)-orthonormal. Letting \(R_k\) be the non-singular upper triangular matrix, such that \(V_k^I = V_k^M R_k\), the author proves that \[\label{eq:pestana95r95sigma} \sigma_{\min}(R_{k+1}^{-1}) \|\widetilde{r}_i \|_M \leq \|r_i\|_I \leq \sigma_{\max}(R_{k+1}^{-1}) \|\widetilde{r}_i \|_M .\qquad{(4)}\] A significant difference between both bounds is that \(R_m\) links two Krylov bases while our \(\widehat{T}\) links two Krylov residual bases. A consequence is that the quantities in the bound in [21] can be computed at the considered iteration whereas our bound looks ahead.

2.3 Analysis of the necessary and sufficient condition in 4↩︎

It appears to us that 4 is crucial in predicting whether the convergence of GMRES\((A,b)\) can be significantly modified by changing the inner product. The necessary and sufficient condition in item [it:two-cc-2] of 4 is unfortunately not very natural. Assuming for simplicity that there is no breakdown, there are \(n(n+1)/2\) coefficients in \(T\). The condition \(g = T \widetilde{g}\) produces one linear constraint within each row of \(T\) which leaves \(n(n-1)/2\) degrees of freedom to get the correct singular values.

For a \(2 \times 2\) matrix, we can examine the compatibility between ensuring \(g = T \widetilde{g}\) and setting the singular values to \(\sigma_1\) and \(\sigma_2\). Let \(T = \begin{pmatrix} a & b \\ 0 & d\end{pmatrix}\), \(g=(g_1,g_2)\), \(\widetilde{g} = (\widetilde{g}_1,\widetilde{g}_2)\), with \(g_2,\widetilde{g}_2 \neq 0\). If \(g = T \widetilde{g}\) then \[\label{eq:abd} \begin{equation} d = \frac{g_2}{\widetilde{g}_2} \text{ and } b = \frac{g_1 - a \widetilde{g}_1 }{\widetilde{g}_2}, \end{equation} so only a is still free. However, the product of the singular values equals \det(T) so, \begin{equation} \sigma_1 \sigma_2 = ad = \frac{ a g_2}{\widetilde{g}_2} \, \Leftrightarrow a = \frac{\sigma_1 \sigma_2 \widetilde{g}_2}{g_2}, \end{equation}\tag{16}\] and \(T\) has been entirely set. In order for \(T\) to satisfy the conditions in item [it:two-cc-2] of 4, it remains to ensure one final condition which can take the form of a condition on \(\sigma_1^2 + \sigma_2^2\) \[\label{eq:condition95singular95values} \sigma_1^2 + \sigma_2^2 = \tr(T^* T) = a^2 + b^2 + d^2 = \left(\frac{\sigma_1 \sigma_2 \widetilde{g}_2}{g_2}\right)^2 + \left( \frac{g_1 g_2 - {\sigma_1 \sigma_2 \widetilde{g}_2} \widetilde{g}_1}{g_2 \widetilde{g}_2} \right)^2 + \left( \frac{g_2}{\widetilde{g}_2} \right)^2.\tag{17}\] Unless \(\sigma_1\), \(\sigma_2\), \(g\) and \(\widetilde{g}\) satisfy the above, there is no system \((A,b)\) such that \(I\)-GMRES realizes \(g\) and \(M\)-GMRES realizes \(\widetilde{g}\).

Example 1. Consider the weight matrix \(M := \begin{pmatrix} 1 & 0 \\ 0 & 1/4\end{pmatrix}\) and the residual decrease vectors \(g := \begin{pmatrix} 2 \\ 1\end{pmatrix}, \widetilde{g} := \begin{pmatrix} 1 \\ 1\end{pmatrix}\). 4 [it:two-cc-2] indicates that \(T\) must have the singular values \(\sigma_1 = 1, \sigma_2 = 2\), which, through formulas 16 , yields \(T = \begin{pmatrix} 2 & 0 \\ 0 & 1\end{pmatrix}\). One can easily check that condition 17 is verified. As a consequence, 4 [it:two-cc-1] holds (for any desired spectrum for the matrix \(A\)).
On the other hand, set \(g_1 := 3\) while keeping the rest unchanged. Formulas 16 fix \(T = \begin{pmatrix} 2 & 1 \\ 0 & 1\end{pmatrix}\), and one can check that 17 is not verified, which means that the singular values \(\sigma_1 = 1, \sigma_2 = 2\) are not enforced on \(T\). Consequently, there exists no system \((A, b)\) such as described in 4 [it:two-cc-1].

For \(n > 2\), the situation is not as clear, and we list below some requirements.

Lemma 4 (Necessary conditions for [it:two-cc-2] in 4). Let \(\sigma_1 \geq , \dots \geq \sigma_n\) be \(n\) positive real numbers. Consider two residual decrease vectors \(g, \widetilde{g} \in \mathbb{R}_+^n\) that share the same length \(m\). If there exists \(T\) of the form 3 such that \(g = T \widetilde{g}\) and the singular values of \(T\) are the \((\sigma_i)_i\), then

  1. \(T_{mm} = \widehat T_{mm} = {g}_m / \widetilde{g}_m\) (recall that \(\widehat T\) is the \((1,1)\)-block of \(T\)).

  2. If there is no breakdown, \(T\) is triangular and the diagonal values of \(T\) are the eigenvalues of \(T\).

  3. The first \(m\) diagonal values of \(T\) are eigenvalues of \(T\).

  4. The eigenvalues of \(T\), denoted by \(\xi_1, \dots, \xi_n\) and ordered so that \(|\xi_1]\geq |\xi_2| \geq \dots \geq |\xi_n|\) satisfy the Weyl conditions [31] \[|\xi_1 \dots \xi_k| \leq \sigma_1 \dots \sigma_k, \text{for each } k =1,\dots n,\] and the inequality is an equality for \(k=n\) \[|\xi_1 \dots \xi_n| = \sigma_1 \dots \sigma_n.\] Two special cases are \(k=1\) and \(k=n\) for which we get \(| \xi_1| \leq \sigma_1 \text{ and } |\xi_{n}| = \frac{|\xi_1 \dots \xi_n|}{|\xi_1 \dots \xi_{n-1}|} \geq \sigma_n.\) There is also an additive variant of the Weyl conditions \[|\xi_1| + \dots + |\xi_k| \leq \sigma_1 + \dots + \sigma_k, \text{for each } k =1,\dots n.\]

  5. Matrix \(T\) has \(\widetilde{g}_m / g_m\) as one of its eigenvalues so \[\sigma_n \leq \widetilde{g}_m / g_m \leq \sigma_1.\]

  6. The squared Frobenius norm of \(T\) satisfies \[\sum_{i=1}^n \sum_{j=1}^n |T_{ij}|^2 = \sum_{i=1}^n \sigma_i^2.\]

Proof.

  1. In the condition \(g = T\widetilde{g}\), the blocks denoted by \(*\) in 3 play no role because the corresponding entries of \(g\) and \(\widetilde{g}\) are zero. Moreover, the \((1,1)\) block \(\widehat T\) of \(T\) is upper triangular and \(\widetilde{g}_m \neq 0\).

  2. Straightforward.

  3. The first \(m\) diagonal values of \(T\) are the diagonal values of \(\widehat T\). These are also the eigenvalues of \(\widehat T\). Moreover, the eigenvalues of \(\widehat T\) are also eigenvalues of \(T\) since: \[\widehat T y = \lambda y \Rightarrow T \begin{pmatrix} y \\ 0 \end{pmatrix} = \lambda \begin{pmatrix} y \\ 0 \end{pmatrix},\] where the \(0\) block in the eigenvector of \(T\) is in \(\mathbb{R}^{n-m}\).

  4. From the literature.

  5. This is a combination of the first, third and fourth items.

  6. By definition.

 ◻

3 Preconditioned GMRES↩︎

While weighted GMRES may sometimes be considered as a theoretical tool, rather than a practical method to solve real-world problems, preconditioned GMRES is widely employed to enhance the convergence of the standard \(I\)-GMRES method. Yet, both are linked, and preconditioned GMRES can be interpreted as weighted GMRES applied to a modified system. In this section, we explore what our findings on weighted GMRES imply on preconditioned GMRES.

A preconditioner can be applied on the left or on the right. If both are used, we speak of split preconditioning. We consider this general case directly by denoting a pair of left and right preconditioners as \((H_L,H_R)\). One of them can be set to \(I\) to fall back on one-sided preconditioning. \(I\)-GMRES preconditioned on the left by \(H_L\) and on the right by \(H_R\) is defined as \(I\)-GMRES applied to the linear system \[H_L A H_R u = H_Lb, \qquad x = H_Ru.\] At the \(i\)-th iteration, \(I\)-GMRES produces the iterate \(u_i\) (from which the approximate solution \(x_i := H_Ru_i\) can be deduced) and the residual \(\widetilde{r}_i := b - A H_R u_i\). Denoting by \(H := H_R H_L\) the combined preconditioner, \(\widetilde{r}_i\) is characterized by \[\|H_L \widetilde{r}_i\|_I = \min_{u\in \mathcal{K}_i(H_L A H_R, H_L b)} \|H_L b- H_L A H_R u\|_I = \min_{u\in H_L\mathcal{K}_i(AH, b)} \|b-AH_Ru\|_{H_L^* H_L} = \min_{x\in H\mathcal{K}_i(AH, b)} \|b-Ax\|_{H_L^* H_L}.\] Finally, introducing the variable \(v := H^{-1}x\) and the matrix \(\widehat{A} := AH\), the characterization rewrites \[\label{eq:min95split} \|H_L \widetilde{r}_i\|_I = \min_{v\in \mathcal{K}_i(AH, b)} \|b-AHv\|_{H_L^* H_L} = \min_{v\in \mathcal{K}_i(\widehat{A}, b)} \|b-\widehat{A}v\|_{H_L^* H_L}.\tag{18}\] This formulation as well as 1 show that the \(i\)-th residual \(\widetilde{r}_i\) of \(I\)-GMRES\((A,b)\) split-preconditioned by \((H_L,H_R)\) is equal to the \(i\)-th residual of non-preconditioned \((H_L^* H_L)\)-GMRES\((\widehat{A},b)\). We say that \(I\)-GMRES\((A,b)\) split-preconditioned by \((H_L,H_R)\) is equivalent to non-preconditioned \((H_L^* H_L)\)-GMRES\((\widehat{A},b)\). Specializing formulation 18 for special choices of \((H_L,H_R)\) allows us to derive the following equivalent methods:

  1. If \(M\) is an hpd matrix that admits the factorization \(M = P^* P\), then \(M\)-GMRES\((A,b)\) is equivalent to \(I\)-GMRES\((A,b)\) split preconditioned by \((P, P^{-1})\).

  2. \(I\)-GMRES(\(A,b\)) right preconditioned by \(H\) is equivalent to unpreconditioned \(I\)-GMRES(\(\widehat{A},b\)).

  3. \(I\)-GMRES(\(A,b\)) left preconditioned by \(H\) is equivalent to unpreconditioned \((H^*H)\)-GMRES(\(\widehat{A},b\)).

We can also make two fundamental remarks:

  • The choice of preconditioning on the left or on the right, or of split preconditioning does not modify the Krylov space in which the approximate solution \(x_i\) is optimized. The minimization space depends only on the combined preconditioner \(H = H_R H_L\).

  • The norm in which the residual \(r_i = b - A x_i\) is minimized depends only on the left preconditioner through \(H_L^* H_L\). The fact that preconditioning on the right (i.e., setting \(H_L = I\)) does not modify the minimized norm is a rather well known fact.

3.1 Left, right and split preconditioned GMRES↩︎

Based on the equivalences above, the results from 2.1 can be rewritten for left, right and split preconditioned GMRES. We give below just two such examples that correspond to 6 and 9 (see also [7]).
Let the residuals of \(I\)-GMRES\((A,b)\) right preconditioned by \(H\) be denoted by \(r_k\) and the residuals of \(I\)-GMRES\((A,b)\) left preconditioned by \(H\) be denoted by \(\widetilde{r}_k\) (which means that the residual norm \(\|H \widetilde{r}_k\|_I\) is actually produced). The left/right preconditioned version of 5 is \[\label{eq:prec-GMRES-easy2} \| r_k \|_I \leq \| \widetilde{r}_k\|_I \leq \kappa(H) \| r_k \|_I \text{ and } \|H\widetilde{r}_k\|_I \leq \|H r_k\|_I \leq \kappa(H) \|H\widetilde{r}_k\|_I,\tag{19}\] where \(\kappa(H) := \|H\|_I\|H^{-1}\|_I = \sqrt{\kappa(H^* H)}\) is the condition number of \(H\).
The more involved bound is \[\label{eq:precIpsenfinal} \frac{ \|\widetilde{r}_k\|_N}{ \| r_k\|_N} = \frac{\| B (B^* H^* H B )^{-1} e_1\|_N}{ \| B (B^* B )^{-1} e_1\|_N }\frac{\| B (B^*B )^{-1} e_1\|_I^2}{\|H B (B^* H^* H B )^{-1} e_1\|_I^2},\tag{20}\] where \(N\) is any hpd matrix, \(B = (b \,\,\, W_k)\) is the concatenation of the right-hand-side with any matrix \(W_k \in \mathbb{C}^{n\times k}\) whose columns form a basis of \(AH \mathcal{K}_k(AH,b)\), and \(e_1 = (1,0, \dots, 0)^\top \in \mathbb{C}^{k+1}\).

3.2 Prescribed convergence curves↩︎

We now turn to extending the results of 2.2 to preconditioned GMRES. Following 18 and the subsequent remarks, we naturally extend the concept of realizing a convergence curve to preconditioned GMRES.

Definition 5 (Realization of a convergence curve for preconditioned GMRES). Let \(g \in \mathbb{R}_+^n\) and let \(p\) be its length. Let \((A,b)\) define a linear system. Consider \(I\)-GMRES\((A,b)\) split preconditioned by \((H_L,H_R)\), producing \(x_i\) as the \(i\)-th approximate solution. Denoting \(r_i := b-Ax_i\), we say that the preconditioned method realizes the convergence curve induced by \(g\) if \[p = \dim \mathcal{K}_n(A, b) \qquad\text{ and }\qquad g_j = \sqrt{\|H_L r_{j-1}\|_I^2 - \|H_L r_j\|_I^2} \qquad \forall j = 1,\dots, p,\] or, equivalently, if \[\|H_L r_i \|_I = \sqrt{\sum_{j=i+1}^n g_j^2} \qquad \forall i=0,\dots,n.\]

As a direct consequence of item [it:spliteq] above, 2 implies that

Theorem 6 (Split preconditioning). Let \((A, b)\) define a given linear system, and consider \(\widetilde{g}\in\mathbb{R}_+^n\) a residual decrease vector. If \(\widetilde{g}\) is of length \(m:=\dim \mathcal{K}_n(A, b)\), then there exists a split preconditioner such that \(I\)-GMRES(\(A,b\)) realizes the convergence curve induced by \(\widetilde{g}\).

Proof. By 2, there exists \(M\) hpd such that \(M\)-GMRES realizes the convergence curve. Let \(M = P^* P\) be the Cholesky factorization of \(M\). The prescribed residual norms are the \(\|r_i\|_M = \| P r_i\|_I\). By item [it:spliteq] above we conclude that \(I\)-GMRES preconditioned by \((P,P^{-1})\) also realizes the convergence curve (in the sense of 5). ◻

In the following result, we show that it is possible to simultaneously prescribe the convergence curves for the GMRES algorithm preconditioned on the left and on the right.

Theorem 7 (Any two convergence curves are simultaneously possible). Consider the convergence curves induced by \(g_L\) and \(g_R\in\mathbb{R}_+^n\) of same length.
There exists a system \((A,b)\) and a preconditioner \(H\) such that \(I\)-GMRES\((A,b)\) right preconditioned by \(H\) realizes \(g_R\), and \(I\)-GMRES\((A,b)\) left preconditioned by \(H\) realizes \(g_L\). Additionally, the eigenvalues of \(AH\) (or, equivalently, of \(HA\)) can be prescribed.

Proof. By 1, there exists a system \((\widehat A,b)\) and an hpd matrix \(M\) such that \(I\)-GMRES\((\widehat A,b)\) realizes \(g_R\), and \(M\)-GMRES\((\widehat A,b)\) realizes \(g_L\). Additionally, the eigenvalues of \(\widehat A\) can be prescribed. Since \(M\) is hpd, there exists \(H\) such that \(M = H^*H\). We moreover define \(A := \widehat{A}H^{-1}\).

Referring to [it:right95prec95eq], \(I\)-GMRES(\(\widehat{A},b\)) is equivalent to \(I\)-GMRES(\(A,b\)) right preconditioned by \(H\), which therefore realizes \(g_R\). Similarly, referring to [it:left95prec95eq], \(M\)-GMRES(\(\widehat{A},b\)) is equivalent to \(I\)-GMRES(\(A,b\)) left preconditioned by \(H\), which therefore realizes \(g_L\). Additionally, the eigenvalues of \(AH\) (which are also the eigenvalues of \(HA\)) can be prescribed. ◻

The following result translates 3 into the preconditioning formalism.

Theorem 8 (Characterization of the left preconditioner). Consider \((A,b)\) and \(H\) a given linear system and a preconditioner. Let \(\widehat A := AH\), \(m := \dim \mathcal{K}_n(\widehat A, b)\), and \(W\in\mathbb{C}^{n\times n}\) be a unitary matrix whose first \(m\) columns form a nested basis of \(\widehat A\mathcal{K}_m(\widehat A,b)\). Consider the residual decrease vector \({g_L}\in\mathbb{R}_+^n\) of length \(m\). The two following statements are equivalent:

  1. \(I\)-GMRES\((A,b)\) preconditioned on the left by \(H\) realizes the convergence curve induced by \(g_L\).

  2. There exists \(T\in\mathbb{C}^{n\times n}\) of the form 3 such that \[(H^* H)^{-1} = W T (WT)^* \quad\text{ and }\quad b = WTg_L.\]

Proof. By applying 3, to the linear system \((\widehat A, b)\) and the weight \(H^* H\), the two following statements are equivalent:

  1. \((H^*H)\)-GMRES\((\widehat A,b)\) realizes the convergence curve induced by \(g_L\).

  2. There exists \(T\in\mathbb{C}^{n\times n}\) of the form 3 such that \[(H^*H)^{-1} = W T (WT)^* \quad\text{ and }\quad b = WT g_L.\]

The proof is completed by recalling item [it:left95prec95eq] in the list of equivalences. ◻

The following result is a corollary of 7: for any given system and preconditioner, regardless of the convergence curves achieved by left and right preconditioned GMRES, there exists another preconditioned system with the same spectrum that exhibits the opposite behavior. This implies that, when considering all possible pairs of systems and preconditioners, neither left nor right preconditioning is inherently superior to the other. We give a constructive proof using 8.

Corollary 3. Let \((A,b)\) define a given linear system, and \(H\) a preconditioner. Denote by \(g_L\) the residual decrease vector realized by \(I\)-GMRES\((A,b)\) preconditioned by \(H\) on the left, and by \(g_R\) the residual decrease vector realized by \(I\)-GMRES\((A,b)\) preconditioned by \(H\) on the right.
There exists a system \((\widetilde{A},\widetilde{b})\) and a preconditioner \(\widetilde{H}\) such that:

  • \(I\)-GMRES\((\widetilde{A},\widetilde{b})\) realizes \(g_R\) when preconditioned by \(\widetilde{H}\) on the left, and \(g_L\) when preconditioned by \(\widetilde{H}\) on the right;

  • \(\widetilde{A}\widetilde{H}\) has the same spectrum as \(AH\).

Proof. Let \(\widetilde{H}\) be any non-singular matrix, and set \(\widetilde{A} := HA\widetilde{H}^{-1}\) so that \(\widetilde{A}\widetilde{H} = HA\). \(I\)-GMRES\((\widetilde{A},Hb)\) right preconditioned by \(\widetilde{H}\) realizes \(g_L\). Indeed, \(I\)-GMRES\((A,b)\) preconditioned by \(H\) on the left realizes \(g_L\) and is defined as unpreconditioned \(I\)-GMRES\((HA,Hb)\) which, in turn, is equivalent to \(I\)-GMRES\((HA\widetilde{H}^{-1},Hb)\) preconditioned on the right by \(\widetilde{H}\) (through [it:right95prec95eq]).
It remains to choose \(\widetilde{H}\) so that \(I\)-GMRES\((\widetilde{A},Hb)\) left preconditioned by \(\widetilde{H}\) realizes \(g_R\). Unpreconditioned \(I\)-GMRES\((HA,Hb)\) realized \(g_L\) so, by 2, there exists a unitary matrix \(W \in \mathbb{C}^{n\times n}\) such that the first columns in \(W\) form a nested basis of \(HA\mathcal{K}_n(HA,Hb)\) and \(H b = W g_L\).
Moreover, there exists \(T\in\mathbb{C}^{n\times n}\) of the form 3 such that \(g_L = T g_R\) (by the same construction as in the proof of 2 knowing that \(g_R\) and \(g_L\) are of the same length by definition). Now, we have \(H b = W T g_R\). If we finally set \(\widetilde{H} := (WT)^{-1}\), then \(({\widetilde{H}}^* \widetilde{H})^{-1} = W T (WT)^*\) and we conclude by 8 that GMRES\((\widetilde{A}, H b)\) preconditioned on the left by \(\widetilde{H}\) realized \(g_R\). ◻

We end with the preconditioned GMRES version of 4.

Theorem 9 (Simultaneous prescription of two convergence curves). Let \(H\in\mathbb{C}^{n\times n}\) be a non-singular matrix, and consider the residual decrease vectors \(g_L\) and \(g_R\in\mathbb{R}_+^n\). We assume that \(g_R\) and \(g_L\) have the same length. Let \(\lambda_1\),…, \(\lambda_n\) be \(n\) non-zero complex numbers. The two following statements are equivalent:

  1. There exists a system \((A,b)\) such that the eigenvalues of \(A H\) are the \((\lambda_i)_i\), \(I\)-GMRES(\(A,b\)) preconditioned on the right by \(H\) realizes \(g_R\), and \(I\)-GMRES(\(A,b\)) preconditioned on the left by \(H\) realizes \(g_L\).

  2. There exists a non-singular matrix \(T\) of the form 3 such that \(g_R = T g_L\) and the singular values of \(T\) are \((1/\mu_i)_i\) with \((\mu_i)_i\) denoting the singular values of \(H\).

The eigenvalues \(\lambda_i\) do not play a role in the second assertion, meaning that they can be independently prescribed.

Proof. Statement [it:one] is equivalent to

  1. There exists a system \((A,b)\) such that the eigenvalues of \(A H\) are the \((\lambda_i)_i\), \(I\)-GMRES(\(AH,b\)) realizes \(g_R\) and \((H^* H)\)-GMRES(\(A H,b\)) realizes \(g_L\).

We next prove that assertions [it:two] and [it:three] are equivalent. Let \(M = H^* H\). The eigenvalues of \(M\) are the squared singular values of \(H\), which we denote by \((\mu_i^2)_i\). Next, we apply 4, which states that item [it:two] is equivalent to: there exists a system \((\widehat A,b)\) such that the eigenvalues of \(\widehat A\) are the \((\lambda_i)_i\), \(I\)-GMRES(\(\widehat A,b\)) realizes \(g_R\) and \(M\)-GMRES(\(\widehat A,b\)) realizes \(g_L\). It simply remains to set \(A := \widehat A H^{-1}\) to recover [it:three]. ◻

The necessary and sufficient condition in 9 has been analyzed in 2.3.

From these results, we can make the following observation: there exist preconditioned systems where the choice of left or right preconditioning leads to significantly different GMRES convergence behaviours. For instance, left preconditioning may result in fast convergence, while right preconditioning may lead to slow convergence, even if in both cases, the eigenvalues of the preconditioned system are perfectly clustered. This observation reinforces what is already known: GMRES convergence is not solely determined by the eigenvalues. It also highlights that in certain cases, the choice of preconditioning on the left or on the right may not be trivial and lead to significant differences.

4 Illustrations↩︎

The purpose of the following experiments is to gain insight on the links between the convergence curves of \(I\)- and \(M\)-GMRES and the weight matrix \(M\). The experiments are run in MATLAB, and the scripts are openly available5. Previous numerical comparisons can be found in [18][20] for restarted GMRES, and [16], [22] for particular choices of the weight that arise from analyzing GMRES convergence.

A word of warning about the following results is that we only plot normalized residuals, so that all convergence curves start from the same initial point. This is the same as scaling \(b\) so that \(\|b\|_I = 1\) and scaling \(M\) so that \(\|b\|_M = 1\) also. For this reason, only the relative distribution of eigenvalues of \(M\) is significant. Moreover, we consider for simplicity that all prescribed convergence curves are of length \(n\) (i.e. no early breakdown), so that all matrices \(T\) of the form 3 are triangular.

4.1 Fixed spectrum for \(M\) and convergence curve for \(I\)-GMRES, variable \(T\)↩︎

We place ourselves in the formalism of 4. Our focus is on examining how the convergence of \(M\)-GMRES is affected by prescribing the spectrum of \(M\). Recall that for a given \(I\)-GMRES residual decrease vector \(g\in\mathbb{R}_+^n\) and a given spectrum \(\mu\in\mathbb{R}_+^n\) for \(M\), the possible convergence curves for \(M\)-GMRES correspond to the set of all \(\widetilde{g} := T^{-1}g\), such that the singular values of \(T\) are the \((1/\sqrt{\mu_i})_i\), which means that the singular values of \(T^{-1}\) are the \((\sqrt{\mu_i})_i\).

The experimental setup of this section is then the following: given a prescribed convergence curve for \(I\)-GMRES and a prescribed spectrum \(\mu\) for \(M\), we

  1. construct the residual decrease vector \(g\) by 2,

  2. randomly generate a matrix \(T^{-1}\) with singular values \((\sqrt{\mu_i})_i\) (see below),

  3. compute \(\widetilde{g} := T^{-1}g\),

  4. recover the residuals norms realized by \(M\)-GMRES through formula ?? .

In practice, to randomly generate a triangular matrix \(T^{-1}\) with prescribed singular values, we apply the following procedure: (i) generate a random orthogonal matrix \(V\) by performing the QR factorization of a general matrix with randomly generated coefficients; (ii) define \(T^{-1}\) as the triangular matrix in the QR factorization of \(\Sigma V\), where \(\Sigma\) denotes the diagonal matrix holding the prescribed singular values.

Browsing through all possible \(T^{-1}\) matrices spans all possible convergence curves for \(M\)-GMRES. However, in practice, randomizing the coefficients of \(T^{-1}\) by this procedure does not produce the complete variety of possible convergence behaviors. Indeed, first, the initial random matrix is drawn from a uniform distribution, which inherently restricts the diversity of resulting matrices (and thus, the range of orthogonal matrices \(V\) that can be obtained). Second, the QR factorization of \(\Sigma V\) produces a fully populated triangular matrix, excluding structurally sparse forms (such as diagonal matrices). Despite these limitations, we examine the convergence curves generated by this method as representative examples within the broader landscape of \(M\)-GMRES behavior.

In the following experiments, we consider real matrices and we set \(n=20\).

4.1.0.1 Experiment 1 (one eigenvalue jump)

The spectrum of \(M\) is chosen to contain two distinct eigenvalues, 1 and \(10^{12}\), with respective multiplicities \((n-k)\) and \(k\), with \(k=8\). 1 displays convergence curves of \(M\)-GMRES obtained from a sample of 5 random matrices \(T^{-1}\). Each subfigure corresponds to a prescribed convergence curve for \(I\)-GMRES: (a) complete stagnation until breakdown; (b) linear decay of the residual in logarithmic scale; (c) general, irregular decrease of the residual.

We observe that all samples initially follow the convergence pattern of \(I\)-GMRES. Subsequently, they exhibit a sudden and significant jump before resuming the residual decrease characteristic of \(I\)-GMRES. According to formula 7 , the magnitude of this jump is bounded by \(\sqrt{\kappa(M)}\), here \(10^6\). The plots indicate that this upper bound is closely approached. Notably, the jump occurs at iteration 8, which aligns with the order of multiplicity \(k\) of the large eigenvalue. Experiments with varying values of \(k\) confirm that the jump consistently occurs at iteration \(k\). This can be understood by recalling that \(T^{-1}\) is the triangular matrix in the QR factorization of \(\Sigma V\), a matrix that has \(8\) rows that are of much larger magnitude than the others.

Additionally, when the spectrum of \(M\) consists not of two distinct eigenvalues but of two clusters of eigenvalues randomly distributed around the same two values, the results remain qualitatively unchanged. Note also that permutations of the vector \(\mu\) does not change the results either.

Figure 1: Experiment 1. Convergence curves of M-GMRES for a sample of random T^{-1} matrices. M has two distinct eigenvalues with large gap: 1 and 10^{12}, with respective multiplicities 12 and 8. In the plots, the convergence curve of I-GMRES is represented in black with dot markers, while all other lines (colored, without markers) represent those of various instances of M-GMRES.

4.1.0.2 Experiment 2 (two eigenvalue jumps)

The spectrum of \(M\) is chosen to contain three distinct eigenvalues: 1, \(10^{10}\) and \(10^{20}\), with respective multiplicities \((n-k_1-k_2)\), \(k_1\) and \(k_2\), with \(k_1:=7, k_2:=4\). 2 illustrates the results under the same experimental conditions as Experiment 1. The plots are similar, except that two jumps are observed due to the two jumps in the eigenvalues. In this scenario, the combined magnitude of both jumps is theoretically constrained by \(\sqrt{\kappa(M)} = 10^{10}\), which is also closely approached in this case. Concerning the location of the jumps: the first jump occurs at iteration \(k_2=4\), which corresponds to the order of multiplicity of the largest eigenvalue; the second jump occurs \(k_1\) iterations later, which corresponds to the order of multiplicity of the second-largest eigenvalue, here \(11\).

Figure 2: Experiment 2. Convergence curves of M-GMRES for a sample of random T^{-1} matrices. M has three distinct eigenvalues with large gap: 1, 10^{10}, 10^{20}, with respective multiplicities 9, 7 and 4. In the plots, the convergence curve of I-GMRES is represented in black with dot markers, while all other lines (colored, without markers) represent those of various instances of M-GMRES.

4.1.0.3 Experiment 3 (uniform distribution)

The spectrum of \(M\) is uniformly distributed on a logarithmic scale between 1 and \(10^{12}\). 3 illustrates the results under the same experimental conditions as the previous experiments. Based on our earlier interpretations, these curves adhere to the convergence pattern of \(I\)-GMRES, supplemented by small decreases at each iteration. Given that the eigenvalues are equally spaced on a logarithmic scale, the resulting jumps are of similar magnitude. Furthermore, since all eigenvalues are distinct, these small jumps manifest at each iteration.

Figure 3: Experiment 3. Convergence curves of M-GMRES for a sample of random T^{-1} matrices. The spectrum of M is uniformly distributed on a logarithmic scale between 1 and 10^{12}. In the plots, the convergence curve of I-GMRES is represented in black with dot markers, while all other lines (colored, without markers) represent those of various instances of M-GMRES.

4.1.0.4 Experiment 4 (diagonal \(T^{-1}\))

While the previous experiments explored fully populated triangular matrices \(T^{-1}\), we now consider diagonal matrices. The experimental setup is the following: the convergence curve of \(I\)-GMRES is set to a linear decay in logarithmic scale, and \(T^{-1}\) is the diagonal matrix \(\operatorname{diag}(\sqrt{\mu})\), i.e.with coefficients \((\sqrt{\mu_i})_i\). Several settings for \(\mu\) are tried out, all based on two eigenvalues, 1 and \(10^{12}\), in various orders: \[\begin{align} \underline{\mu}^k &:= [\underbrace{1, \dots, 1}_{k}, \underbrace{10^{12}, \dots, 10^{12}}_{n/2}, \underbrace{1, \dots, 1}_{n/2-k}]^* &\forall k=0,\dots,n/2, \\ \overline{\mu}^k &:= [\underbrace{10^{12}, \dots, 10^{12}}_{k}, \underbrace{1, \dots, 1}_{n/2}, \underbrace{10^{12}, \dots, 10^{12}}_{n/2-k}]^* &\forall k=0,\dots,n/2. \end{align}\] The results are displayed in 4. We observe that \(M\)-GMRES with \(\mu := \underline{\mu}^k\) stagnates during \(k\) iterations, follows the residual decrease of \(I\)-GMRES during \(n/2\) iterations, then jumps and follows \(I\)-GMRES for the remaining iterations. On the other hand, with \(\mu := \overline{\mu}^k\): we notice that \(\overline{\mu}^0 = \underline{\mu}^{n/2}\) and \(\overline{\mu}^{n/2} = \underline{\mu}^0\) (in red); for all the other values of \(k\), the convergence of \(M\)-GMRES follows that of \(I\)-GMRES during \((k-1)\) iterations, then jumps at the \(k\)-th iteration, and finally stagnates.

Figure 4: Experiment 4. In the plots, the convergence curve of I-GMRES is represented in black with dot markers, while all other lines (colored, without markers) represent those of various instances of M-GMRES.

4.2 Can we break the observed behaviour?↩︎

In the first three experiments, all generated samples exhibited the same convergence pattern. In the following experiments, we demonstrate that this behavior can, in fact, be disrupted by setting up an experiment for which we can compute the residuals of weighted and unweighted GMRES as follows.

4.2.0.1 Experiment 5

  1. Set \(\mu \in(\mathbb{R}_+\setminus\{0\})^n\). Let \(M_0 := Q \operatorname{diag}(\mu) Q^*\), where \(\operatorname{diag}(\mu)\) is the diagonal matrix corresponding to \(\mu\), and \(Q\) is a random unitary matrix. This way, \(M_0\) is an hpd matrix with eigenvalues held in \(\mu\).

  2. Let \(b := \frac{1}{\sqrt{n}}Q [1, \dots, 1]^\top\) be the right-hand side.

  3. Normalize \(M_0\) as \(M := \beta M_0\), where \(\beta := \|b\|_{M_0}^{-2}\) (so as to enforce \(\|b\|_M = 1\)). This is our weight matrix.

  4. We consider a matrix \(A\) for which \(W := Q\) is a nested orthonormal basis of \(A\mathcal{K}_n(A,b)\) and compare \(I\)-GMRES\((A,b)\) to \(M\)-GMRES\((A,b)\). The residuals do not depend on the particular choice of \(A\) (by 2 ). There are two ways of computing the resulting residual norms:

    • Either, the matrix \(A\) can be constructed following the procedure in the proof of [11] (a result that extends [3] recalled in 1). Then \(I\)-GMRES\((A,b)\) and \(M\)-GMRES\((A,b)\) are run and the corresponding residual norms collected.

    • Or, the residuals can be computed directly. By 2 , denoting by \(w_i\) the \(i\)-th column of \(W\), \(\sqrt{\|r_{i-1}\|_I^2 - \|r_i\|_I^2} = |\langle b,w_i \rangle_I | = \frac{1}{\sqrt{n}}\) and \(\sqrt{\|r_{i-1}\|_M^2 - \|r_i\|_M^2} = \abs{\langle b, \sqrt{\frac{{\mu}_i}{\beta}}w_i \rangle_M} = \sqrt{\frac{\mu_i}{n \beta}}\) because the scaled vectors \((\sqrt{\frac{{\mu}_i}{\beta}} w_i)_i\) form an \(M\)-orthonormal nested basis of \(A\mathcal{K}_n(A,b)\).

The convergence curves are shown in 5. With \(n = 60, \epsilon = 10^{-2}\) and \(p=n/2\), three cases are considered for \(\mu\): \[\mu^1 := [\underbrace{1, \dots, 1}_{p}, \underbrace{\epsilon, \dots, \epsilon}_{n-p}]^\top, \text{ for which } \|\widetilde{r}_i\|_M = \begin{cases} \sqrt{1 - \frac{\beta}{n}i} &\text{if } i \leq p, \\ \sqrt{\|\widetilde{r}_{p}\|_M^2 - \frac{\beta \epsilon}{n}(i-p)} & \text{if } i > p, \end{cases}\] \[\mu^2 := [\underbrace{\epsilon, \dots, \epsilon}_{p}, \underbrace{1, \dots, 1}_{n-p}]^\top, \text{ for which } \|\widetilde{r}_i\|_M = \begin{cases} \sqrt{1 - \frac{\beta\epsilon}{n}i} \quad \approx 1 &\text{if } i \leq p, \\ \sqrt{\|\widetilde{r}_{p}\|_M^2 - \frac{\beta}{n}(i-p)} & \text{if } i > p, \end{cases}\] and \(\mu^3\), where the eigenvalues have been shuffled.

Figure 5: Experiment 5

4.3 Left and right preconditioning↩︎

Note that the results from the previous sections can also be interpreted as instances of left and right preconditioning strategies. In this section, we consider the matrix HB/mcfe6 from the University of Florida Sparse matrix collection [33]. It is a real, non-symmetric, sparse matrix of size \(765\times 765\) with a condition number (in \(\|\cdot\|_I\)) of approximately \(10^{14}\). First, we solve the linear system using unpreconditioned GMRES for two different right-hand sides: \(b=(1, \dots, 1)^\top\) and a random \(b\). In both cases, the relative residual remains greater than \(10^{-8}\) after \(n-1=764\) iterations. This outcome confirms the challenge posed by this problem for GMRES. Moving forward, we will use the random \(b\). Now, we consider two preconditioners: (i) ILU: the preconditioner is \(H := U^{-1}L^{-1}\), where \(L\) and \(U\) are the factors in the incomplete LU factorization of \(A\), (ii) Symmetric part: \(H\) is the inverse of \((A+A^*)/2\). The corresponding convergence curves are displayed in 6. Using ILU as a preconditioner leads to fast convergence in both cases (less than 12 iterations) with an advantage to left preconditioning. On the other hand, using the symmetric part as a preconditioner exhibits a significant difference in convergence speed. For this case, some metrics given in 1 do not allow us to explain this behaviour. Note that, from these results, one might be tempted to think that left preconditioning generally offers a faster convergence. However, 3 shows this is not the case. Finally, in 7, we present plots of the preconditioned and unpreconditioned relative residual norms, along with the error. We use solid lines to display the residual norms actually minimized by left and right preconditioned GMRES: the preconditioned residual \(\|Hr\|_I/\|b\|_I\) for left preconditioning and the unpreconditioned residual \(\|r\|_I/\|b\|_I\) for right preconditioning. These are the residual to which the stopping criterion respectively applies. The errors produced by these algorithms are plotted in dashed line. These errors are computed from the GMRES approximations at each iteration, compared against the algebraic solution obtained through an LU factorization. Additionally, the residual not minimized by the algorithm is plotted for reference. In particular, while left preconditioning shows rapid convergence in terms of the preconditioned residual and error, the unpreconditioned residual (i.e.in Euclidean norm) remains high. This is a typical case where monitoring only the left preconditioned residual could lead to early termination if the user is not aware that the Euclidean norm of the residual can still be high.

Table 1: Properties of the preconditioned matrix, with \(H=2(A+A^*)^{-1}\). The condition numbers are defined by \(\kappa(X) := \|X\|_I\|X^{-1}\|_I\).
\(\kappa(HA)\) \(10^7\)
\(\kappa(AH)\) \(10^6\)
min/max singular values of \(H\) \(10^{-18}\)/\(10^{-4}\)
\(\|HA\|_I\) 7
\(\|AH\|_I\) 7
Figure 6: Preconditioners applied on the left or on the right. The norm that is minimized by the preconditioned GMRES is displayed.
Figure 7: Residuals and errors yielded by left (L) and right (R) preconditioned GMRES.

5 Conclusion↩︎

In this work, we extended the theory of prescribed convergence curves for GMRES to the setting of weighted GMRES and preconditioned GMRES. Building on the foundational result of Greenbaum, Pták, and Strakoš, we demonstrated that for any linear system and any prescribed convergence behavior, one can construct a weight matrix or a preconditioning strategy that forces GMRES to exhibit this behavior. Our theoretical contributions include a full characterization of weight matrices that yield a desired convergence curve and the necessary and sufficient conditions for realizing two distinct convergence curves simultaneously (one for \(I\)-GMRES and the other for \(M\)-GMRES). We showed that these results naturally translate to the preconditioned setting, both with split and one-sided preconditioners, highlighting in particular that left and right preconditioning can yield markedly different convergence behaviors, regardless of the spectrum of the preconditioned system.

Acknowledgments↩︎

We thank Gérard Meurant for enlightening discussions about left and right preconditioning and for suggesting the HB/mcfe matrix to us.

References↩︎

[1]
Y. Saad and M. H. Schultz, GMRES: A Generalized Minimal Residual Algorithm for Solving Nonsymmetric Linear Systems,” SIAM Journal on Scientific and Statistical Computing, vol. 7, no. 3, pp. 856–869, 1986, doi: 10.1137/0907058.
[2]
Y. Saad, Iterative methods for sparse linear systems., 2nd ed. Philadelphia, PA: SIAM Society for Industrial and Applied Mathematics, 2003.
[3]
A. Greenbaum, V. Pták, and Z. Strakoš, “Any Nonincreasing Convergence Curve is Possible for GMRES,” SIAM Journal on Matrix Analysis and Applications, vol. 17, no. 3, pp. 465–469, 1996, doi: 10.1137/S0895479894275030.
[4]
N. S. Mendelsohn, “Some elementary properties of ill conditioned matrices and linear equations,” Am. Math. Mon., vol. 63, pp. 285–295, 1956, doi: 10.2307/2310510.
[5]
J. Scott and M. Tůma, Algorithms for sparse linear systems. Cham: Springer, 2023.
[6]
M. Benzi and M. Tůma, “A comparative study of sparse approximate inverse preconditioners,” Appl. Numer. Math., vol. 30, no. 2–3, pp. 305–340, 1999, doi: 10.1016/S0168-9274(98)00118-4.
[7]
N. Spillane, P. Matalon, and D. B. Szyld, (Accepted into the proceedings of the DD29 conference)“Do you precondition on the left or on the right?” 2026, [Online]. Available: https://arxiv.org/abs/2512.05160.
[8]
M. Arioli, V. Pták, and Z. Strakoš, “Krylov sequences of maximal length and convergence of GMRES,” BIT Numerical Mathematics, vol. 38, no. 4, pp. 636–643, 1998, doi: 10.1007/BF02510405.
[9]
G. Meurant, GMRES and the Arioli, Pták, and Strakoš parametrization,” BIT Numerical Mathematics, vol. 52, no. 3, pp. 687–702, 2012, doi: 10.1007/s10543-012-0374-4.
[10]
J. Duintjer Tebbens and G. Meurant, “Any Ritz Value Behavior Is Possible for Arnoldi and for GMRES,” SIAM Journal on Matrix Analysis and Applications, vol. 33, no. 3, pp. 958–978, 2012, doi: 10.1137/110843666.
[11]
J. Duintjer Tebbens and G. Meurant, “Prescribing the behavior of early terminating GMRES and Arnoldi iterations,” Numerical Algorithms, vol. 65, no. 1, pp. 69–90, 2014, doi: 10.1007/s11075-013-9695-x.
[12]
K. Du, J. Duintjer Tebbens, and G. Meurant, “Any admissible harmonic Ritz value set is possible for GMRES,” ETNA - Electronic Transactions on Numerical Analysis, vol. 27, pp. 37–56, 2017, doi: 10.1553/etna_vol47s37.
[13]
E. Vecharynski and J. Langou, “Any admissible cycle-convergence behavior is possible for restarted GMRES at its initial cycles,” Numerical Linear Algebra with Applications, vol. 18, no. 3, pp. 499–511, 2011, doi: 10.1002/nla.739.
[14]
M. Kubı́nová and K. M. Soodhalter, “Admissible and attainable convergence behavior of block Arnoldi and GMRES,” SIAM J. Matrix Anal. Appl., vol. 41, no. 2, pp. 464–486, 2020, doi: 10.1137/19M1272469.
[15]
G. Meurant, unpublished technical reportPrescribing the error in GMRES,” 2011.
[16]
M. Embree, “Extending elman’s bound for GMRES.” 2025, [Online]. Available: https://arxiv.org/abs/2312.15022.
[17]
S. C. Eisenstat, H. C. Elman, and M. H. Schultz, “Variational iterative methods for nonsymmetric systems of linear equations,” SIAM J. Numer. Anal., vol. 20, pp. 345–357, 1983, doi: 10.1137/0720023.
[18]
A. Essai, “Weighted FOM and GMRES for solving nonsymmetric linear systems,” Numerical Algorithms, vol. 18, no. 3, pp. 277–292, 1998, doi: 10.1023/A:1019177600806.
[19]
S. Güttel and J. Pestana, “Some observations on weighted GMRES,” Numerical Algorithms, vol. 67, no. 4, pp. 733–752, 2014, doi: 10.1007/s11075-013-9820-x.
[20]
M. Embree, R. B. Morgan, and H. V. Nguyen, “Weighted Inner Products for GMRES and GMRES-DR,” SIAM Journal on Scientific Computing, vol. 39, no. 5, pp. S610–S632, 2017, doi: 10.1137/16M1082615.
[21]
J. Pestana, “Nonstandard Inner Products and Preconditioned Iterative Methods,” PhD thesis, University of Oxford, 2011.
[22]
J. Pestana and A. J. Wathen, “On the choice of preconditioner for minimum residual methods for non-Hermitian matrices,” Journal of Computational and Applied Mathematics, vol. 249, pp. 57–68, 2013, doi: 10.1016/j.cam.2013.02.020.
[23]
A. Wathen, “Preconditioning and convergence in the right norm,” International Journal of Computer Mathematics, vol. 84, no. 8, pp. 1199–1209, 2007, doi: 10.1080/00207160701355961.
[24]
G. Starke, “Field-of-values analysis of preconditioned iterative methods for nonsymmetric elliptic problems,” Numer. Math., vol. 78, no. 1, pp. 103–117, 1997, doi: 10.1007/s002110050306.
[25]
A. Klawonn and G. Starke, “Block triangular preconditioners for nonsymmetric saddle point problems: Field-of-values analysis,” Numer. Math., vol. 81, no. 4, pp. 577–594, 1999, doi: 10.1007/s002110050405.
[26]
T. F. Chan, E. Chow, Y. Saad, and M. C. Yeung, “Preserving symmetry in preconditioned Krylov subspace methods,” SIAM J. Sci. Comput., vol. 20, no. 2, pp. 568–581, 1999, doi: 10.1137/S1064827596311554.
[27]
M. Sarkis and D. B. Szyld, “Optimal left and right additive Schwarz preconditioning for minimal residual methods with Euclidean and energy norms,” Comput. Methods Appl. Mech. Eng., vol. 196, no. 8, pp. 1612–1621, 2007, doi: 10.1016/j.cma.2006.03.027.
[28]
X.-C. Cai and O. B. Widlund, “Domain decomposition algorithms for indefinite elliptic problems,” SIAM J. Sci. Stat. Comput., vol. 13, no. 1, pp. 243–258, 1992, doi: 10.1137/0913013.
[29]
I. C. F. Ipsen, “Expressions and bounds for the GMRES residual,” BIT, vol. 40, no. 3, pp. 524–535, 2000, doi: 10.1023/A:1022371814205.
[30]
I. Ipsen, “A different approach to bounding the minimal residual norm in Krylov methods,” Citeseer, 1998.
[31]
R. A. Horn and C. R. Johnson, Matrix analysis., 2nd ed. Cambridge: Cambridge University Press, 2013.
[32]
J. Liesen, M. Rozloznı́k, and Z. Strakos, “Least squares residuals and minimal residual methods,” SIAM J. Sci. Comput., vol. 23, no. 5, pp. 1503–1525, 2002, doi: 10.1137/S1064827500377988.
[33]
T. A. Davis and Y. Hu, Id/No 1“The University of Florida sparse matrix collection,” ACM Trans. Math. Softw., vol. 38, no. 1, p. 25, 2011, doi: 10.1145/2049662.2049663.

  1. CNRS, CMAP, École polytechnique, Institut Polytechnique de Paris↩︎

  2. This work was supported in part by the ANR project DARK (research grant ANR-24-CE46-1633).↩︎

  3. https://github.com/hpc-maths/2025_prescribed_gmres↩︎

  4. https://github.com/hpc-maths/krylov4r↩︎

  5. https://github.com/hpc-maths/2025_prescribed_gmres↩︎

  6. https://www.cise.ufl.edu/research/sparse/matrices/HB/mcfe.html↩︎