betaFeedback

WorksMathematics

Near-optimal convergence of Widlund's method and numerical exploration of different implementations

Abstract

For linear systems arising from the discretization of certain classes of mathematical models, the splitting of the linear system into its Hermitian and skew-Hermitian parts has a physical meaning. If, in addition, the Hermitian part is positive definite, there exist Krylov subspace methods based on three-term recurrences where the Hermitian part is used as a preconditioner. Two such Krylov subspace methods are Widlund's method and Rapoport's method. In this paper we establish a ``near-optimal'' guarantee for the convergence of Widlund's method, showing that the overall convergence of Widlund's method is nearly as good as that of Rapoport's method. Specifically, we show that for every iteration kk, there exists an iteration j≤kj\leq k where the residual norm of Widlund's method is less than k+1\sqrt{k+1} times the residual norm of Rapoport's method at iteration kk. This bound is sharp. We also provide a computational study on various implementations of Widlund's method in the exact and inexact cases, and show that certain implementations may stagnate while others do not, i.e., we look at the robustness of the different implementations. We recommend two implementations.

AMS subject classifications. 65F10, 65F50

Introduction

We want to solve the equation

Ax=b,(1)Ax=b, \tag*{(1)}

where A∈Cn×nA \in\mathbb{C}^{n \times n}. One can split AA into its Hermitian and skew-Hermitian components, HH and SS, i.e., A=H+SA=H+S, where

H=12(A+A∗),S=12(A−A∗).(2)H=\frac{1}{2}\left(A+A^*\right), \qquad S=\frac{1}{2}\left(A-A^*\right). \tag*{(2)}

We assume HH to be positive definite, and so we can define the HH-inner product ⟨x,y⟩H=y∗Hx\langle x,y\rangle_H=y^*Hx, which induces a norm ∥x∥H2=x∗Hx=∥H1/2x∥22\|x\|_H^2=x^*Hx=\|H^{1/2}x\|_2^2. For reference, note that ∥Hx∥22=(Hx)∗Hx=x∗H2x=∥x∥H22\|Hx\|_2^2=(Hx)^*Hx=x^*H^2x=\|x\|_{H^2}^2 and ∥H−1x∥H=∥x∥H−1\|H^{-1}x\|_H=\|x\|_{H^{-1}}.

For linear systems arising from the discretization of certain classes of mathematical models, the splitting A=H+SA=H+S arises naturally and has a physical meaning. This occurs, e.g., in the discretization of dissipative Hamiltonian DAEs and of port-Hamiltonian systems [4, 8]. In these settings HH is positive definite, and there exist Krylov subspace methods based on three-term recurrences where the Hermitian part is used as a preconditioner.

Define K=H−1SK=H^{-1}S. Let InI_n be the n×nn \times n identity matrix, or simply II when the order is understood from the context. We can re-formulate AA as A=H(I+K)A=H(I+K). It follows that (1.1) is equivalent to

(In+K)x=b^,(3)(I_n+K)x=\hat{b}, \tag*{(3)}

where b^=H−1b\hat{b}=H^{-1}b.

Because I+KI+K is a shifted skew-Hermitian matrix with respect to the HH-inner product, it has an optimal 3-term recurrence for the construction of an orthogonal basis of a corresponding Krylov subspace, see, e.g., [6, 9]. Using the notation Km(A,b)\mathcal{K}_m(A,b) for the Krylov subspace Km(A,b)=span⁡{b,Ab,…,Am−1b}\mathcal{K}_m(A,b)=\operatorname{span}\{b,Ab,\ldots,A^{m-1}b\} of dimension mm generated by the matrix AA and vector bb, the 3-term recurrence can be written as

(I+K)Vm=Vm+1Tm+1,m,(4)(I+K)V_m=V_{m+1}T_{m+1,m}, \tag*{(4)}

where the columns viv_i of the n×mn\times m matrix VmV_m form an HH-orthonormal basis of Km(I+K,b^)\mathcal{K}_m(I+K,\hat{b}), and the (m+1)×m(m+1)\times m matrix Tm+1,mT_{m+1,m} is tridiagonal. Note that Km(I+K,b^)=Km(K,b^)\mathcal{K}_m(I+K,\hat{b})=\mathcal{K}_m(K,\hat{b}), as Krylov subspaces are shift invariant. Let TmT_m be the matrix consisting of the first mm rows of Tm+1,mT_{m+1,m}.

The method of Widlund [16] and, independently, of Concus and Golub [3] is an oblique projection method onto this Krylov subspace, Km(K,b^)\mathcal{K}_m(K,\hat{b}), designed so that

xm∈x0+Km(K,b^),rm=b^−(I+K)xm⊥HKm(K,b^),(5)x_m\in x_0+\mathcal{K}_m(K,\hat{b}),\qquad r_m=\hat{b}-(I+K)x_m\perp_H\mathcal{K}_m(K,\hat{b}), \tag*{(5)}

where x0x_0 is the initial vector. This is an example of an Orthogonal Residual (OR) method onto Km(K,b^)\mathcal{K}_m(K,\hat{b}), as defined, e.g., in [5].

The method of Rapoport [12] is the corresponding Minimum Residual (MR) method using the same Krylov subspace, Km(K,b^)\mathcal{K}_m(K,\hat{b}). That is, Rapoport’s method is an orthogonal projection method designed so that

∥rm∥H=min⁡x∈x0+Km(K,b^)∥b^−(I+K)x∥H.(6)\|r_m\|_H=\min_{x\in x_0+\mathcal{K}_m(K,\hat{b})}\|\hat{b}-(I+K)x\|_H. \tag*{(6)}

Throughout the paper, we will use rkWr_k^W and rkRr_k^R to denote the kk-th residual of Widlund’s method and Rapoport’s method, respectively. We remark that due to the methods of Widlund/Rapoport being an OR/MR pair on Km(K,b^)\mathcal{K}_m(K,\hat{b}), the pair can be seen as FOM/MINRES on the preconditioned system (3) with the HH-inner product replacing the standard inner product.

In [8], both Widlund’s and Rapoport’s methods are considered, in part because Rapoport’s method, as an MR method, has monotonically decreasing residual norms. Our first contribution in this paper is to show that the residual norms of Widlund’s method are “nearly-optimal” in a certain sense. Thus, the benefit of Rapoport’s monotonically decreasing residual norms may not outweigh the associated computational cost, see, e.g., the timings reported in [8]. For this reason, we will emphasize Widlund’s method from § 3 onward.

Our second contribution in this paper is to provide a computational study demonstrating that different implementations of Widlund’s method, while mathematically equivalent, may have different behaviors. We consider three implementations based on [16], one straightforward implementation of (1.4) used in [10], and one which uses right preconditioning to create a flexible method from [16]. We also consider the practical situation in which the matrix-vector product with K=H−1SK=H^{-1}S is not applied exactly. In other words, in order to compute KvKv we first compute SvSv, then solve a linear system Hw=SvHw=Sv. If this system is solved iteratively or inexactly, then the basis vectors of Km\mathcal{K}_m may fail to be HH-orthogonal. Thus, the resulting “inexact Widlund’s method” is no longer guaranteed to have an orthogonal basis, and therefore the method is also non-optimal in the sense of [14]. Again, there are two situations here: the inexact matrix-vector products and, as a consequence of this inexactness, the matrices VmV_m which are no longer HH-orthogonal. We assume exact arithmetic throughout; that is, the word “inexact” refers only to the matrix-vector product, and does not refer to round-off error. We show that not all implementations appear to be stable in the inexact setting.

The paper is organized as follows. In § 2 we show that the residual norms of Widlund’s method are “nearly-optimal” in the sense of [2]. In § 3 we provide a computational study of different implementations of Widlund’s method, and in § 4 we provide a computational study of the implementations when H−1H^{-1} is computed inexactly, thus discussing the robustness of the different implementations.

Near Optimal Convergence of Widlund

In this section we aim to show that Widlund’s method is “near-optimal” in the sense of [2]. We take the same initial vector, x0W=x0Rx_0^W=x_0^R, for both methods, and thus r0W=r0Rr_0^W=r_0^R. First of all, since Rapoport’s method is an MR method, ∥rkR∥H≤∥rkW∥H\lVert r_k^R\rVert_H\le\lVert r_k^W\rVert_H for all kk, and Widlund’s method will never converge in fewer iterations than Rapoport’s method. However, Widlund’s method is “near-optimal” in the sense that, on average, ∥rkW∥H\lVert r_k^W\rVert_H is no worse than k+1∥rkR∥H\sqrt{k+1}\lVert r_k^R\rVert_H.

Theorem 2.1. For every k≥1k\ge1,

min⁡0≤j≤k∥rjW∥H≤k+1∥rkR∥H.(7)\min_{0\le j\le k}\lVert r_j^W\rVert_H\le\sqrt{k+1}\lVert r_k^R\rVert_H. \tag*{(7)}

Our proof mirrors the argument found in [2 Theorem 2.1] regarding the near-optimality of FOM. Central to this proof is a characterization of the Rapoport residuals in terms of the Widlund residuals. Define ϑ1=1\vartheta_1=1, and for k≥1k\ge1 define

ϑk+1=−1tk+1,k∑j=k−1kϑjtj,k,\vartheta_{k+1}=-\frac{1}{t_{k+1,k}}\sum_{j=k-1}^{k}\vartheta_j t_{j,k},

where ti,jt_{i,j} is the (i,j)(i,j)-th entry of Tk+1,kT_{k+1,k}. The residuals are related in the following sense.

Theorem 2.2. For every k≥0k\ge0,

∥rkW∥H∥r0W∥H=1∣ϑk+1∣.(8)\frac{\lVert r_k^W\rVert_H}{\lVert r_0^W\rVert_H}=\frac{1}{\lvert\vartheta_{k+1}\rvert}. \tag*{(8)}
∥rkR∥H2∥r0R∥H2=(∑j=1k+1∣ϑj∣2)−1.(9)\frac{\lVert r_k^R\rVert_H^2}{\lVert r_0^R\rVert_H^2}=\left(\sum_{j=1}^{k+1}\lvert\vartheta_j\rvert^2\right)^{-1}. \tag*{(9)}

This is a special case of [11 Theorem 3.12], which requires that the two methods are the orthogonal residual and minimum residual pair over a given Krylov subspace.

Because Widlund’s and Rapoport’s methods are the OR/MR pair on the space K(K,b^)\mathcal{K}(K,\hat{b}), Theorem 2.2 holds.

Proof of Theorem 2.1. By [11 Lemma 2.3], TkT_k is singular if and only if ϑk+1=0\vartheta_{k+1}=0. In this case, the residual of Widlund’s method is undefined and we define ∥rk+1W∥H=∞\lVert r^W_{k+1}\rVert_H=\infty. By Theorem 2.2, for all 0≤j≤k0\leq j\leq k

∥r0W∥H∥rjW∥H=∣ϑj+1∣.\frac{\lVert r^W_0\rVert_H}{\lVert r^W_j\rVert_H}=\lvert\vartheta_{j+1}\rvert.

Plugging (8) into (9) we obtain

∥rkR∥H2∥r0R∥H2=(∑j=0k∥r0W∥H2∥rjW∥H2)−1.\frac{\lVert r^R_k\rVert_H^2}{\lVert r^R_0\rVert_H^2}=\left(\sum_{j=0}^{k}\frac{\lVert r^W_0\rVert_H^2}{\lVert r^W_j\rVert_H^2}\right)^{-1}.

From our construction, ∥r0R∥H=∥r0W∥H\lVert r^R_0\rVert_H=\lVert r^W_0\rVert_H, and thus

∥rkR∥H2=(∑j=0k1∥rjW∥H2)−1.(10)\lVert r^R_k\rVert_H^2=\left(\sum_{j=0}^{k}\frac{1}{\lVert r^W_j\rVert_H^2}\right)^{-1}. \tag*{(10)}

Taking the largest 1∥rjW∥H2\frac{1}{\lVert r^W_j\rVert_H^2},

∥rkR∥H2≥((k+1)max⁡0≤j≤k1∥rjW∥H2)−1=(k+1)−1min⁡0≤j≤k∥rjW∥H2.\lVert r^R_k\rVert_H^2\geq\left((k+1)\max_{0\leq j\leq k}\frac{1}{\lVert r^W_j\rVert_H^2}\right)^{-1} =(k+1)^{-1}\min_{0\leq j\leq k}\lVert r^W_j\rVert_H^2.

Taking the square root of both sides, we obtain the desired inequality. □

We remark that we do not use any specific property of Widlund/Rapoport, so the proof of Theorem 2.1 gives the same bound on any OR/MR pair.

In Figure 2.1 we illustrate (7) holding for [4 Example 2] of order n=3,151,875n=3,151,875, which was originally considered in [8 Section 6.2]. It is the system created by discretizing the incompressible Stokes equations using the Q1Q_1-Q1Q_1 finite element approximation of the (unsteady) channel domain problem in IFISS [13].

Plot of Widlund Residual, Widlund Residual Min, Rapoport Residual, and Bound (2.1)

Figure 2.1. Left-hand and right-hand sides of (2.1) alongside the HH-norm relative residual.

The bound (7) is tight, as we show in the following theorem.

Theorem 2.3. For every k≥1k\geq1, there exists a matrix AA and vector bb such that

min⁡0≤j≤k∥rjW∥H=k+1∥rkR∥H.(11)\min_{0\leq j\leq k}\lVert r^W_j\rVert_H=\sqrt{k+1}\lVert r^R_k\rVert_H. \tag*{(11)}

Proof. Fix k≥1k \ge1. Let eje_j, j=1,…,k+1j = 1,\ldots,k+1 be the standard unit vectors. Let H=Ik+1H = I_{k+1}, S=iΣS = \mathrm{i}\Sigma, where Σ∈R(k+1)×(k+1)\Sigma\in\mathbb{R}^{(k+1)\times(k+1)} is the symmetric tridiagonal matrix

Σ=(01102⋱⋱⋱k−10kk0).\Sigma= \begin{pmatrix} 0 & 1 & & & \\ 1 & 0 & 2 & & \\ & \ddots& \ddots& \ddots& \\ & & k-1 & 0 & k \\ & & & k & 0 \end{pmatrix}.

Let A=H+SA = H + S and b=e1b = e_1. Since HH is symmetric positive definite and SS is skew-symmetric, we can define Widlund’s method (with initial vector x0W=0x_0^W = 0) on K(I+H−1S,H−1b)\mathcal{K}(I + H^{-1}S,H^{-1}b). Let j≤kj \le k. Expanding the Arnoldi relation, we can obtain

Tj=(1−111−2⋱⋱⋱j−21−(j−1)j−11).T_j = \begin{pmatrix} 1 & -1 & & & \\ 1 & 1 & -2 & & \\ & \ddots& \ddots& \ddots& \\ & & j-2 & 1 & -(j-1) \\ & & & j-1 & 1 \end{pmatrix}.

Since Widlund’s method is an OR method, the residual is ∥rjW∥H=jejTyj\lVert r_j^W\rVert_H = j e_j^T y_j, where yjy_j is defined such that Tjyj=e1T_j y_j = e_1. We seek an explicit expression for ∥rjW∥H\lVert r_j^W\rVert_H, which we obtain using the cofactor formula for Tj−1T_j^{-1}. Let d1=1d_1 = 1, d2=2d_2 = 2, and di=det⁡(Ti)d_i = \det(T_i) for all 3≤i≤j3 \le i \le j. Since TjT_j is tridiagonal, we can determine djd_j using the recurrence relation

dj=dj−1+(j−1)2dj−2.d_j = d_{j-1} + (j-1)^2 d_{j-2}.

From this, one can show that dj=j!d_j = j!. Hence TjT_j is nonsingular, and the cofactor formula gives

ejTyj=(T−1)j,1=(−1)j+1∏ℓ=1j−1ℓdj.e_j^T y_j = (T^{-1})_{j,1} = (-1)^{j+1}\frac{\prod_{\ell=1}^{j-1}\ell}{d_j}.

Thus, the residual is

∥rjW∥H=j∣ejTyj∣=∏ℓ=1j−1ℓdj=j!j!=1.\lVert r_j^W\rVert_H = j\lvert e_j^T y_j\rvert= \frac{\prod_{\ell=1}^{j-1}\ell}{d_j} = \frac{j!}{j!} = 1.

Further, since H=Ik+1H = I_{k+1}, ∥r0W∥H=∥e1∥2=1\lVert r_0^W\rVert_H = \lVert e_1\rVert_2 = 1 and so ∥rjW∥H=1\lVert r_j^W\rVert_H = 1 for all j=0,…,kj = 0,\ldots,k. From (10), we have

∥rkR∥H2=(∑j=0k1∥rjW∥H2)−1=(k+1)−1.\lVert r_k^R\rVert_H^2 = \left(\sum_{j=0}^{k}\frac{1}{\lVert r_j^W\rVert_H^2}\right)^{-1} = (k+1)^{-1}.

Finally, since min⁡0≤j≤k∥rjW∥H=1\min_{0\leq j\leq k}\lVert r_j^W\rVert_H = 1, min⁡0≤j≤k∥rjW∥H=k+1∥rkR∥H\min_{0\leq j\leq k}\lVert r_j^W\rVert_H = \sqrt{k+1}\lVert r_k^R\rVert_H. □\square

We remark that (2.4) can be used to show the following well-known relationship (see, e.g., [15 §4])

∥rkW∥H=∥rkR∥H1−(∥rkR∥H∥rk−1R∥H)2.\lVert r_k^W\rVert_H = \frac{\lVert r_k^R\rVert_H}{\sqrt{1-\left(\frac{\lVert r_k^R\rVert_H}{\lVert r_{k-1}^R\rVert_H}\right)^2}}.

Indeed, from (10),

1∥rkW∥H2=∑j=0k1∥rjW∥H2−∑j=0k−11∥rjW∥H2=1∥rkR∥H2−1∥rk−1R∥H2.\frac{1}{\lVert r_k^W\rVert_H^2} = \sum_{j=0}^{k}\frac{1}{\lVert r_j^W\rVert_H^2} - \sum_{j=0}^{k-1}\frac{1}{\lVert r_j^W\rVert_H^2} = \frac{1}{\lVert r_k^R\rVert_H^2} - \frac{1}{\lVert r_{k-1}^R\rVert_H^2}.

Then, taking the reciprocal of both sides,

∥rkW∥H2=11∥rkR∥H2−1∥rk−1R∥H2=∥rkR∥H21−∥rkR∥H2∥rk−1R∥H2,\lVert r_k^W\rVert_H^2 = \frac{1}{\frac{1}{\lVert r_k^R\rVert_H^2}-\frac{1}{\lVert r_{k-1}^R\rVert_H^2}} = \frac{\lVert r_k^R\rVert_H^2}{1-\frac{\lVert r_k^R\rVert_H^2}{\lVert r_{k-1}^R\rVert_H^2}},
∥rkW∥H=∥rkR∥H1−∥rkR∥H2∥rk−1R∥H2.\lVert r_k^W\rVert_H = \frac{\lVert r_k^R\rVert_H}{\sqrt{1-\frac{\lVert r_k^R\rVert_H^2}{\lVert r_{k-1}^R\rVert_H^2}}}.

We conclude that while Rapoport’s method guarantees a minimal number of iterations through the monotonically non-increasing residual norm, the increased computational cost associated with obtaining the minimum residual may negate the potential savings in computation time. Further, while the residual norms produced by Widlund’s method are not monotonically non-increasing, we have shown that “on average” they are non-increasing. Thus, we emphasize Widlund’s method in our computational experiments.

Three Possible Implementations

Widlund [16] shows that in exact arithmetic, there are two possible formulations of Widlund’s method. The first computes the basis vectors directly from a 3-term recurrence of the form

αmvm+1=−Kvm−βmvm−1,(12)\alpha_m v_{m+1} = -K v_m - \beta_m v_{m-1}, \tag*{(12)}

where αj+1=1+ρj+1ρjαj\alpha_{j+1}=1+\frac{\rho_{j+1}}{\rho_j}\alpha_j, ρj=(vj,vj)H\rho_j=(v_j,v_j)_H, βj=1−αj\beta_j=1-\alpha_j, and α0=1\alpha_0=1. This gives rise to the Lanczos relation (4). Then, with a special normalization, a solution can be formed as

xm=Vmym,where(Im+Tm)ym=e1.(13)x_m=V_m y_m,\quad\text{where}\quad(I_m+T_m)y_m=e_1. \tag*{(13)}

Then the tridiagonal structure of Im+TmI_m+T_m is exploited to instead write

xm+1=(1−ωm+1)xm−1+ωm+1xm+ωm+1vm,ωm+1=1/αm.(14)x_{m+1}=(1-\omega_{m+1})x_{m-1}+\omega_{m+1}x_m+\omega_{m+1}v_m,\quad\omega_{m+1}=1/\alpha_m. \tag*{(14)}

This is rendered in Algorithm 1, which we refer to as “ExplicitK”.

Algorithm 1 Widlund: Implementation with Explicit KK

  1. α0=0\alpha_0=0, x0=0x_0=0, v0=0v_0=0, ρ0=1\rho_0=1

  2. x1=0x_1=0, v1=H−1bv_1=H^{-1}b, r1=br_1=b

  3. for m=1,2,3,…m=1,2,3,\ldots do

  4. ρm=(vm,vm)H\rho_m=(v_m,v_m)_H

  5. αm=1+ρmρm−1αm−1\alpha_m=1+\frac{\rho_m}{\rho_{m-1}}\alpha_{m-1}, ωm+1=1/αm\omega_{m+1}=1/\alpha_m

  6. xm+1=(1−ωm+1)xm−1+ωm+1xm+ωm+1vmx_{m+1}=(1-\omega_{m+1})x_{m-1}+\omega_{m+1}x_m+\omega_{m+1}v_m

  7. rm+1=b−Axm+1r_{m+1}=b-Ax_{m+1}

  8. vm+1=−ωm+1Kvm+(1−ωm+1)vm−1v_{m+1}=-\omega_{m+1}Kv_m+(1-\omega_{m+1})v_{m-1}

  9. end for

The second implementation, Algorithm 2, which was used in [1, 8], exploits the fact that (14) and (12) result in

vm=H−1rm,(15)v_m=H^{-1}r_m, \tag*{(15)}

and therefore

(vm,vm)H=(rm,vm).(16)(v_m,v_m)_H=(r_m,v_m). \tag*{(16)}

We refer to Algorithm 2 as “implicitK”.

Moreover, one can show that (15) and (14) imply

rm+1=(1−ωm+1)rm−1−ωm+1Svm,(17)r_{m+1}=(1-\omega_{m+1})r_{m-1}-\omega_{m+1}Sv_m, \tag*{(17)}

resulting in a third possible algorithm, Algorithm 3, which we refer to as “3termR”.

We now explore how these three implementations behave in practice, together with two implementations available in the literature: the implementation in [10], which we refer to as MSS, and [4 Algorithm 2], which we refer to as DFK.

In MSS, (12) is used to construct an (m+1)×m(m+1)\times m tridiagonal matrix Tm+1,mT_{m+1,m}, which is used in the auxiliary problem

(I+Tm+1,m)ym=∥b^∥He1.(I+T_{m+1,m})y_m=\lVert\hat{b}\rVert_H e_1.

Algorithm 2 Widlund: Implementation with implicit KK by solving Hvm=rmHv_m = r_m

  1. α0=0\alpha_0 = 0, x0=0x_0 = 0, ρ0=1\rho_0 = 1

  2. x1=0x_1 = 0, r1=br_1 = b

  3. for m=1,2,3,…m = 1, 2, 3, \ldots do

  4. vm=H−1rmv_m = H^{-1}r_m

  5. ρm=(vm,rm)\rho_m = (v_m, r_m)

  6. αm=1+ρmρm−1αm−1\alpha_m = 1 + \frac{\rho_m}{\rho_{m-1}}\alpha_{m-1}, ωm+1=1/αm\omega_{m+1} = 1/\alpha_m

  7. xm+1=(1−ωm+1)xm−1+ωm+1xm+ωm+1vmx_{m+1} = (1 - \omega_{m+1})x_{m-1} + \omega_{m+1}x_m + \omega_{m+1}v_m

  8. rm+1=b−Axm+1r_{m+1} = b - Ax_{m+1}

  9. end for

Algorithm 3 Widlund: Implementation by solving Hvm=rmHv_m = r_m, and rm+1r_{m+1} recurrence

  1. α0=0\alpha_0 = 0, x0=0x_0 = 0, r0=br_0 = b, ρ0=1\rho_0 = 1

  2. x1=0x_1 = 0, r1=br_1 = b

  3. for m=1,2,3,…m = 1, 2, 3, \ldots do

  4. vm=H−1rmv_m = H^{-1}r_m

  5. ρm=(vm,rm)\rho_m = (v_m, r_m)

  6. αm=1+ρmρm−1αm−1\alpha_m = 1 + \frac{\rho_m}{\rho_{m-1}}\alpha_{m-1}, ωm+1=1/αm\omega_{m+1} = 1/\alpha_m

  7. xm+1=(1−ωm+1)xm−1+ωm+1xm+ωm+1vmx_{m+1} = (1 - \omega_{m+1})x_{m-1} + \omega_{m+1}x_m + \omega_{m+1}v_m

  8. rm+1=(1−ωm+1)rm−1−ωm+1Svmr_{m+1} = (1 - \omega_{m+1})r_{m-1} - \omega_{m+1}Sv_m

  9. end for

MSS also uses the following identity to simplify Tm+1,mT_{m+1,m}.

αk=((I+K)vm,vm−1)H=−(vm,vm+αm−1vm−1+βm−2vm−2)H=−βm.\begin{aligned} \alpha_k &= ((I + K)v_m,v_{m-1})_H \\ &= -(v_m,v_m+\alpha_{m-1}v_{m-1}+\beta_{m-2}v_{m-2})_H \\ &= -\beta_m. \end{aligned}

Finally, the new approximate solution is xm=Vmymx_m = V_my_m. One can show that the residual, rmr_m, is a scalar multiple of vm+1v_{m+1}, where the scalar is determined by ymy_m and βm+1\beta_{m+1}.

Algorithm 4 Widlund: MSS implementation

  1. b^=H−1b\hat{b} = H^{-1}b, β0=∥b^∥H\beta_0 = \lVert\hat{b}\rVert_H

  2. v0=0v_0 = 0, v1=b^/β0v_1 = \hat{b}/\beta_0, β1=0\beta_1 = 0

  3. η1=1\eta_1 = 1, ζ1=β0\zeta_1 = \beta_0

  4. for m=1,2,3,…m = 1, 2, 3, \ldots do

  5. w=Kvm+βmvm−1w = Kv_m + \beta_mv_{m-1}

  6. w~=Hw\widetilde{w} = Hw

  7. pm=(vm+βmpm−1)/ηmp_m = (v_m + \beta_mp_{m-1})/\eta_m

  8. xm=xm−1+ζmpmx_m = x_{m-1} + \zeta_mp_m

  9. rm=−(ζm/ηm)w~r_m = -(\zeta_m/\eta_m)\widetilde{w}

  10. βm+1=(w,w~)1/2\beta_{m+1} = (w,\widetilde{w})^{1/2}

  11. vm+1=w/βm+1v_{m+1} = w/\beta_{m+1}

  12. λm+1=βm+1/ηm\lambda_{m+1} = \beta_{m+1}/\eta_m

  13. ηm+1=1+λm+1βm+1\eta_{m+1} = 1 + \lambda_{m+1}\beta_{m+1}

  14. ζm+1=−λm+1ζm\zeta_{m+1} = -\lambda_{m+1}\zeta_m

  15. end for

DFK uses right preconditioning to form the Lanczos relation

(H+S)Zm=Vm+1Tm+1,m,(H + S) Z_m = V_{m+1} T_{m+1,m},

where the columns of Vm+1V_{m+1} are H−1H^{-1}-orthonormal and form a basis for the Krylov subspace K(I+SH−1,b)\mathcal{K}(I + SH^{-1}, b), and Zm=H−1VmZ_m = H^{-1}V_m. The residuals can be written analogous to the residual computation used in MSS. That is, rmr_m is expressed as a scalar multiple of vm+1v_{m+1}, where the scalar is determined by ymy_m and the entries of Tm+1,mT_{m+1,m}.

Algorithm 5 Widlund: DFK implementation

  1. x0=0x_0 = 0, r0=br_0 = b

  2. r^0=H−1r0\hat{r}_0 = H^{-1}r_0, β0=(r0,r^0)1/2\beta_0 = (r_0,\hat{r}_0)^{1/2}

  3. v1=r0/β0v_1 = r_0/\beta_0, z1=r^0/β0z_1 = \hat{r}_0/\beta_0, v0=0v_0 = 0, z0=0z_0 = 0

  4. for m=1,2,3,…m = 1, 2, 3, \ldots do

  5. w=(H+S)zmw = (H + S)z_m

  6. αm=(w,zm)\alpha_m = (w,z_m)

  7. γm=(w,zm−1)\gamma_m = (w,z_{m-1})

  8. w=w−αmvm−γmvm−1w = w - \alpha_m v_m - \gamma_m v_{m-1}

  9. w^=H−1w\hat{w} = H^{-1}w

  10. βm=(w,w^)1/2\beta_m = (w,\hat{w})^{1/2}

  11. vm+1=w/βmv_{m+1} = w/\beta_m

  12. zm+1=w^/βmz_{m+1} = \hat{w}/\beta_m

  13. Solve Tmym=β0e1T_m y_m = \beta_0 e_1

  14. xm=Zmymx_m = Z_m y_m

  15. ηm=emTym\eta_m = e_m^T y_m

  16. rm=−βmηmvm+1r_m = -\beta_m\eta_m v_{m+1}

  17. end for

The numerical examples in this section and the next, following [7], are based on the advection-diffusion equation for a concentration c=c(x,y,t):[0,1]×[0,1]×[0,T]→Cc = c(x,y,t): [0,1] \times[0,1] \times[0,T] \to\mathbb{C}, where 0<T∈R0 < T \in\mathbb{R},

∂∂tc=−∂∂xα∂∂xc−∂∂yβ∂∂yc+∂∂xνc+∂∂yμc,(18)\frac{\partial}{\partial t}c = -\frac{\partial}{\partial x}\alpha\frac{\partial}{\partial x}c - \frac{\partial}{\partial y}\beta\frac{\partial}{\partial y}c + \frac{\partial}{\partial x}\nu c + \frac{\partial}{\partial y}\mu c, \tag*{(18)}
c(x,y,t)=0if (x,y)∈∂([0,1]×[0,1]),(19)c(x,y,t) = 0 \quad\text{if } (x,y) \in\partial\left([0,1]\times[0,1]\right), \tag*{(19)}
c(x,y,0)=c0(x,y)if (x,y)∈[0,1]×[0,1].(20)c(x,y,0) = c_0(x,y) \quad\text{if } (x,y) \in[0,1]\times[0,1]. \tag*{(20)}

Both the positive diffusion coefficients α,β\alpha,\beta and the velocity field (ν,μ)(\nu,\mu) may depend on xx and $y. The discretization in space uses the standard central finite difference scheme with NN equidistant points in both xx and yy. This produces a semi-discretized system

∂∂tc=Bt,c(x,y,0)=c0(x,y) for all grid points x,y,(21)\frac{\partial}{\partial t}c = Bt,\quad c(x,y,0) = c_0(x,y)\ \text{for all grid points }x,y, \tag*{(21)}

where c=c(t)c = c(t) is a two-dimensional array with elements corresponding to the grid points. The implicit Euler rule is used as a symplectic integrator, so for a given time tt, step size kk, and A=I+k2BA = I + \frac{k}{2}B, we have to solve

Ac(t+1)=(I+k2B)c(t+1)=k2Bc(t)(22)Ac(t+1) = \left(I + \frac{k}{2}B\right)c(t+1) = \frac{k}{2}Bc(t) \tag*{(22)}

for c(t+1)c(t+1). We set the exact solution, xx, to be a random vector whose components are independent and uniformly distributed on (0,1)(0,1) with corresponding right-hand side b=Axb=Ax.

For the first example, we take N=100N=100 in xx and yy, h=1N+1h=\frac{1}{N+1}, and k=0.5h2k=0.5h^2. Thus, n=10,000n=10{,}000. We consider the case of advection in one direction, ν=50\nu=50, μ=0\mu=0, and constant diffusion, α=β=0.5\alpha=\beta=0.5.

For the second example, following the example in [16], we take N=127N=127, α=β=1\alpha=\beta=1, ν=10000\nu=10000, and ∂∂tc=0\frac{\partial}{\partial t}c=0. Thus, n=16,129n=16{,}129. We take the exact solution and right-hand side to be the same as in example one.

In Figure 3.1, we report on experiments with the five different implementations for example one. We observe that the residual curves for all five implementations largely coincide, with 3termR converging in the fewest iterations and implicitK requiring the most iterations.

H-norm relative residual for example one

Figure 3.1. HH-norm relative residual for example one (n=10000n=10000).

In Figure 3.2, we report on experiments with the five different implementations for example two. We observe that the residual curves remain similar overall, with 3termR again converging fastest and implicitK slowest.

H-norm relative residual curves for example two

Figure 3.2. HH-norm relative residual for example two (n=16129n = 16129).

Since the number of iterations required for each implementation is similar, we will use the cost per iteration, both in storage and computation, as the main metric for recommending the implementation. All 5 implementations require one solve. ExplicitK, ImplicitK, MSS, and 3termR all store 6 vectors, whereas DFK stores 10 vectors. ExplicitK requires three matvecs, namely AvAv, HvHv, and SvSv. MSS requires two matvecs, namely HvHv and SvSv. ImplicitK and DFK both require one matvec, AvAv. Finally, 3termR also only requires one matvec, SvSv. While 3termR does not compute the true residual each iteration, the max distance from the computed residual to the true residual in both examples is on the order of 10−1510^{-15}. The following table contains the number of iterations, as well as the time per iteration, for each implementation applied to example two.

Itersms/iterTotalvs. Best
3termR1253.253406.6 ms—
ImplicitK1373.600493.3 ms1.21×
DFK1274.179530.7 ms1.31×
MSS1274.269542.2 ms1.33×
ExplicitK1274.462566.6 ms1.39×
Rapoport1264.549573.2 ms1.41×

Table 1.

Overall, the computational study indicates that 3termR requires the fewest iterations, the fewest matvecs, and uses the least amount of storage. We recommend 3termR in the exact setting.

Inexact Widlund Implementations

In practical situations, we may not solve for rmr_m exactly in step 4 of implicitK or 3termR. For example, we may have an inexact LULU factorization of HH, and we solve

LUvm=rmLUv_m = r_m

as done, e.g., in [8]. Thus, the basis vectors are no longer HH-orthogonal. Nevertheless, the implementations can work. There are two possible situations. First, we have a fixed Hˉ\bar{H} approximation to HH for all iterations, as in the above example of inexact LULU. Second, we have Hˉ=Hˉm\bar{H} = \bar{H}_m changing with each iteration, e.g., when the system Hvm=rmHv_m = r_m is solved with an iterative method to a specified tolerance. We explore the first case computationally in the remainder of this section.

To define the inexact analogues of the implicitK and 3termR algorithms, which we refer to as “inexactImplicitK” and “inexact3termR,” we replace line 4 of both algorithms by

vm=Hˉ−1rm.v_m = \bar{H}^{-1}r_m.

We refer to [4 Section 3.2] for the inexact version of DFK, which we refer to as “implicitDFK”. Our examples are the same as in § 3, approximating the action of H−1H^{-1} using either incomplete Cholesky factorization with threshold 10−410^{-4} or incomplete Cholesky with no fill. Unless otherwise specified, we use the threshold incomplete Cholesky.

In Figure 4.1, we report on experiments with inexactImplicitK, inexact3termR, and inexactDFK for example one. We observe that inexact3termR stagnates, while inexactImplicitK and inexactDFK converge and have similar residual curves. Because inexact3termR stagnates, we do not recommend it. Also, it is worth noting that the number of iterations needed for inexactImplicitK and inexactDFK to converge is more than three times as large as in the exact case. It is notable that inexactImplicitK converges at all, since the inexactness causes the basis generated from implicitK to lose the orthogonality needed in the three-term recurrence of the basis vectors. However, since the level of inexactness is relatively small given our method of doing incomplete Cholesky, [4 Proposition 5] provides a guarantee of convergence for inexactDFK.

H-norm relative residual curves for example one

Figure 4.1. HH-norm relative residual for example one

In Figure 4.2, we report on experiments with the three inexact implementations for example two. We observe that inexact3termR stagnates again, and that both inexactDFK and inexactImplicitK converge. However, in this example inexactImplicitK takes significantly longer to converge than inexactDFK.

H-norm relative residual for example two

Figure 4.2. HH-norm relative residual for example two.

In Figure 4.3 we report on experiments with the three inexact implementations for example two when we use incomplete Cholesky with no fill. While inexact3termR and inexactDFK behave similarly to the experiment shown in Figure 4.2, inexactImplicitK actually diverges. More specifically, the even and odd residual norms of inexactImplicitK both stagnate, though to different values.

H-norm relative residual for example two with no fill

Figure 4.3. HH-norm relative residual for example two with no fill.

In Figure 4.4 we report on experiments with the three inexact implementations for the Stokes problem setup outlined in § 2, and we compute incomplete Cholesky with no fill. We observe that inexact3termR stagnates as usual, and inexactImplicitK also displays the same long term behaviour as in the experiment in Figure 4.3. However, inexactDFK now diverges due to the level of inexactness of the factorization. Table 4.1 and Table 4.2 show the number of iterations and wall-clock time needed for both methods to converge for a range of drop tolerances used in the incomplete Cholesky factorization of HH. The lines in the “inexactImplicitK” column indicate that the implementation did not converge within 3500 iterations.

H-norm relative residual for Stokes problem with no fill

Figure 4.4. HH-norm relative residual for Stokes problem with no fill.

droptolnnz(L)inexactImplicitK ItersinexactImplicitK Time (s)inexactDFK ItersinexactDFK Time (s)
no-fill29 800—28731.57
1e-0129 800—1020.05
1e-0249 303—840.05
1e-03123 438—1620.11
1e-04276 9147850.682770.27
1e-05536 2523050.442700.43
1e-06792 1002030.411980.42
1e-07898 0971720.411680.42
1e-08931 2421560.391540.40
1e-09947 5651490.381470.40
1e-10957 7731450.391410.39
exact206 3321350.101250.11

Table 4.1. Example 1 (n=10000n = 10000).

droptolnnz(LL)inexactImplicitKinexactDFK
ItersTime (s)ItersTime (s)
no-fill48 133——32224.45
1e-0148 133——1120.16
1e-0279 759——1280.19
1e-03201 306——2160.42
1e-04460 730——3531.11
1e-05935 444——3511.86
1e-061 504 0602422.042282.00
1e-071 798 1651871.871801.91
1e-081 888 2771651.701651.78
1e-091 927 5461551.541541.59
1e-101 951 0801491.601471.65
exact350 1121370.371270.39

Table 4.2. Example 2 (n=16129n = 16129).

From our experiments, we recommend inexactDFK in the inexact setting. While it requires four more vectors of storage and the computational cost per iteration is higher than inexactImplicitK, the convergence of inexactDFK is faster when both methods converge which causes the total cost to be similar in most cases. InexactDFK is also more robust to the level of inexactness and has more theoretical guarantees, see [4].

We remark that inexact3termR can be interpreted as the exact version, 3termR, applied to Aˉx=(Hˉ+S)x=b\bar{A}x = (\bar{H} + S)x = b. This can be shown inductively using

b−Aˉxm+1=b−Aˉ[(1−ωm+1)xm−1+ωm+1xm+ωm+1vm]=(1−ωm+1)(b−Aˉxm−1)+ωm+1(b−Aˉxm)−ωm+1Aˉvm=(1−ωm+1)rm−1+ωm+1rm−ωm+1Hˉvm−ωm+1Svm=(1−ωm+1)rm−1−ωm+1Svm=rm+1.\begin{aligned} b - \bar{A}x_{m+1} &= b - \bar{A}\left[(1-\omega_{m+1})x_{m-1} + \omega_{m+1}x_m + \omega_{m+1}v_m\right] \\ &= (1-\omega_{m+1})\left(b-\bar{A}x_{m-1}\right) + \omega_{m+1}\left(b-\bar{A}x_m\right) - \omega_{m+1}\bar{A}v_m \\ &= (1-\omega_{m+1})r_{m-1} + \omega_{m+1}r_m - \omega_{m+1}\bar{H}v_m - \omega_{m+1}Sv_m \\ &= (1-\omega_{m+1})r_{m-1} - \omega_{m+1}Sv_m \\ &= r_{m+1}. \end{aligned}

The iterates of inexact3termR converge to xˉ∗\bar{x}_*, the true solution of Aˉx=b\bar{A}x = b. Thus, the residual norm converges to ∥(I−AAˉ−1)b∥H\lVert(I-A\bar{A}^{-1})b\rVert_H, which is not necessarily close to zero.

Conclusion

We proved that the residual norms of Widlund’s method, while they are not monotonically decreasing, are “nearly-optimal” in a certain sense; and this result justifies its practical usage over Rapoport’s method. Through a computational study, we demonstrated that 3termR should be used as the implementation in the exact setting, and inexactDFK should be used in the inexact setting.

References

  1. [1]R. Altmann, J. Ramme, and P. Schulze. Three-term recurrence iterations for energy-based models, 2026. arXiv:2606.03833 [math.NA].arxiv.org/abs/2606.03833
  2. [2]Tyler Chen and Gérard Meurant. Near-optimal convergence of the full orthogonalization method. Electronic Transactions on Numerical Analysis, 60:421–427, 2024.DOI
  3. [3]Paul Concus and Gene H. Golub. A generalized conjugate gradient method for nonsymmetric systems of linear equations. In R. Glowinski and J. L. Lions, editors, Computing Methods in Applied Sciences and Engineering, pages 56–65, Berlin, Heidelberg, 1976. Springer Berlin Heidelberg.DOI
  4. [4]Malak Diab, Andreas Frommer, and Karsten Kahl. A flexible short recurrence Krylov subspace method for matrices arising in the time integration of port-Hamiltonian systems and ODEs/DAEs with a dissipative Hamiltonian. BIT Numerical Mathematics, 63(57):1–17, 2023.arxiv.org/abs/2212.14208
  5. [5]Michael Eiermann and Oliver G. Ernst. Geometric aspects of the theory of Krylov subspace methods. Acta Numerica, 10:251–312, 2001.DOI
  6. [6]Vance Faber and Thomas Manteuffel. Necessary and sufficient conditions for the existence of a conjugate gradient method. SIAM Journal on Numerical Analysis, 21(2):352–362, 1984.DOI
  7. [7]Andreas Frommer and Daniel B. Szyld. On the convergence of Randomized and greedy relaxation schemes for solving nonsingular linear systems of equations. Numerical Algorithms, 92(1):639–664, 2022.DOI
  8. [8]Candan Gü dü cü lü, Jörg Liesen, Volker Mehrmann, and Daniel B. Szyld. On non-Hermitian positive (semi)definite linear algebraic systems arising from dissipative Hamiltonian DAEs. SIAM Journal on Scientific Computing, 44:A2871–A2894, 2022.
  9. [9]J. Liesen and Z. Strakoš. On optimal short recurrences for generating orthogonal Krylov subspace bases. SIAM Review, 50(3):485–503, 2008.DOI
  10. [10]Volker Mehrmann, Manuel Schaller, and Martin Stoll. Iterative solvers for partial differential equations with dissipative structure: Operator preconditioning and optimal control. Electronic Transactions on Numerical Analysis, 65:226–253, 2026.arxiv.org/abs/2510.16399
  11. [11]Gérard Meurant and Jean Duintjer Tebbens. Krylov Methods for Nonsymmetric Linear Systems: From Theory to Computations. Springer, 2020.DOI
  12. [12]David Rapoport. A nonlinear Lanczos algorithm and the stationary Navier-Stokes equation. Department of Mathematics, New York University, PhD. Thesis, 1978.
  13. [13]David Silvester, Howard Elman, and Alison Ramage. Incompressible flow and iterative solver software (ifiss), version 3.6, February 2019. http://www.manchester.ac.uk/ifiss/.
  14. [14]Valeria Simoncini and Daniel B. Szyld. The effect of non-optimal bases on the convergence of Krylov subspace methods. Numerische Mathematik, 100:711–733, 06 2005.DOI
  15. [15]Valeria Simoncini and Daniel B. Szyld. Recent computational developments in Krylov subspace methods for linear systems. Numerical Linear Algebra with Applications, 14(1):1–59, 2007.DOI
  16. [16]Olof B. Widlund. A Lanczos method for a class of non-symmetric systems of linear equations. SIAM Journal on Numerical Analysis, 15:801–812, 1978.

Paper details

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

views · 10

downloads · 1

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

  • Mathematics

Not recorded for this paper

View statement
Looking for related papers…
Contents