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 , there exists an iteration where the residual norm of Widlund's method is less than times the residual norm of Rapoport's method at iteration . 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
where . One can split into its Hermitian and skew-Hermitian components, and , i.e., , where
We assume to be positive definite, and so we can define the -inner product , which induces a norm . For reference, note that and .
For linear systems arising from the discretization of certain classes of mathematical models, the splitting 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 is positive definite, and there exist Krylov subspace methods based on three-term recurrences where the Hermitian part is used as a preconditioner.
Define . Let be the identity matrix, or simply when the order is understood from the context. We can re-formulate as . It follows that (1.1) is equivalent to
where .
Because is a shifted skew-Hermitian matrix with respect to the -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 for the Krylov subspace of dimension generated by the matrix and vector , the 3-term recurrence can be written as
where the columns of the matrix form an -orthonormal basis of , and the matrix is tridiagonal. Note that , as Krylov subspaces are shift invariant. Let be the matrix consisting of the first rows of .
The method of Widlund [16] and, independently, of Concus and Golub [3] is an oblique projection method onto this Krylov subspace, , designed so that
where is the initial vector. This is an example of an Orthogonal Residual (OR) method onto , as defined, e.g., in [5].
The method of Rapoport [12] is the corresponding Minimum Residual (MR) method using the same Krylov subspace, . That is, Rapoport’s method is an orthogonal projection method designed so that
Throughout the paper, we will use and to denote the -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 , the pair can be seen as FOM/MINRES on the preconditioned system (3) with the -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 is not applied exactly. In other words, in order to compute we first compute , then solve a linear system . If this system is solved iteratively or inexactly, then the basis vectors of may fail to be -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 which are no longer -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 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, , for both methods, and thus . First of all, since Rapoport’s method is an MR method, for all , 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, is no worse than .
Theorem 2.1. For every ,
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 , and for define
where is the -th entry of . The residuals are related in the following sense.
Theorem 2.2. For every ,
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 , Theorem 2.2 holds.
Proof of Theorem 2.1. By [11 Lemma 2.3], is singular if and only if . In this case, the residual of Widlund’s method is undefined and we define . By Theorem 2.2, for all
Plugging (8) into (9) we obtain
From our construction, , and thus
Taking the largest ,
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 , which was originally considered in [8 Section 6.2]. It is the system created by discretizing the incompressible Stokes equations using the - finite element approximation of the (unsteady) channel domain problem in IFISS [13].

Figure 2.1. Left-hand and right-hand sides of (2.1) alongside the -norm relative residual.
The bound (7) is tight, as we show in the following theorem.
Theorem 2.3. For every , there exists a matrix and vector such that
Proof. Fix . Let , be the standard unit vectors. Let , , where is the symmetric tridiagonal matrix
Let and . Since is symmetric positive definite and is skew-symmetric, we can define Widlund’s method (with initial vector ) on . Let . Expanding the Arnoldi relation, we can obtain
Since Widlund’s method is an OR method, the residual is , where is defined such that . We seek an explicit expression for , which we obtain using the cofactor formula for . Let , , and for all . Since is tridiagonal, we can determine using the recurrence relation
From this, one can show that . Hence is nonsingular, and the cofactor formula gives
Thus, the residual is
Further, since , and so for all . From (10), we have
Finally, since , .
We remark that (2.4) can be used to show the following well-known relationship (see, e.g., [15 §4])
Indeed, from (10),
Then, taking the reciprocal of both sides,
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
where , , , and . This gives rise to the Lanczos relation (4). Then, with a special normalization, a solution can be formed as
Then the tridiagonal structure of is exploited to instead write
This is rendered in Algorithm 1, which we refer to as “ExplicitK”.
Algorithm 1 Widlund: Implementation with Explicit
, , ,
, ,
for do
,
end for
The second implementation, Algorithm 2, which was used in [1, 8], exploits the fact that (14) and (12) result in
and therefore
We refer to Algorithm 2 as “implicitK”.
Moreover, one can show that (15) and (14) imply
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 tridiagonal matrix , which is used in the auxiliary problem
Algorithm 2 Widlund: Implementation with implicit by solving
, ,
,
for do
,
end for
Algorithm 3 Widlund: Implementation by solving , and recurrence
, , ,
,
for do
,
end for
MSS also uses the following identity to simplify .
Finally, the new approximate solution is . One can show that the residual, , is a scalar multiple of , where the scalar is determined by and .
Algorithm 4 Widlund: MSS implementation
,
, ,
,
for do
end for
DFK uses right preconditioning to form the Lanczos relation
where the columns of are -orthonormal and form a basis for the Krylov subspace , and . The residuals can be written analogous to the residual computation used in MSS. That is, is expressed as a scalar multiple of , where the scalar is determined by and the entries of .
Algorithm 5 Widlund: DFK implementation
,
,
, , ,
for do
Solve
end for
The numerical examples in this section and the next, following [7], are based on the advection-diffusion equation for a concentration , where ,
Both the positive diffusion coefficients and the velocity field may depend on and $y. The discretization in space uses the standard central finite difference scheme with equidistant points in both and . This produces a semi-discretized system
where 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 , step size , and , we have to solve
for . We set the exact solution, , to be a random vector whose components are independent and uniformly distributed on with corresponding right-hand side .
For the first example, we take in and , , and . Thus, . We consider the case of advection in one direction, , , and constant diffusion, .
For the second example, following the example in [16], we take , , , and . Thus, . 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.

Figure 3.1. -norm relative residual for example one ().
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.

Figure 3.2. -norm relative residual for example two ().
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 , , and . MSS requires two matvecs, namely and . ImplicitK and DFK both require one matvec, . Finally, 3termR also only requires one matvec, . 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 . The following table contains the number of iterations, as well as the time per iteration, for each implementation applied to example two.
| Iters | ms/iter | Total | vs. Best | |
| 3termR | 125 | 3.253 | 406.6 ms | — |
| ImplicitK | 137 | 3.600 | 493.3 ms | 1.21× |
| DFK | 127 | 4.179 | 530.7 ms | 1.31× |
| MSS | 127 | 4.269 | 542.2 ms | 1.33× |
| ExplicitK | 127 | 4.462 | 566.6 ms | 1.39× |
| Rapoport | 126 | 4.549 | 573.2 ms | 1.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 exactly in step 4 of implicitK or 3termR. For example, we may have an inexact factorization of , and we solve
as done, e.g., in [8]. Thus, the basis vectors are no longer -orthogonal. Nevertheless, the implementations can work. There are two possible situations. First, we have a fixed approximation to for all iterations, as in the above example of inexact . Second, we have changing with each iteration, e.g., when the system 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
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 using either incomplete Cholesky factorization with threshold 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.

Figure 4.1. -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.

Figure 4.2. -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.

Figure 4.3. -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 . The lines in the “inexactImplicitK” column indicate that the implementation did not converge within 3500 iterations.

Figure 4.4. -norm relative residual for Stokes problem with no fill.
| droptol | nnz(L) | inexactImplicitK Iters | inexactImplicitK Time (s) | inexactDFK Iters | inexactDFK Time (s) |
| no-fill | 29 800 | — | 2873 | 1.57 | |
| 1e-01 | 29 800 | — | 102 | 0.05 | |
| 1e-02 | 49 303 | — | 84 | 0.05 | |
| 1e-03 | 123 438 | — | 162 | 0.11 | |
| 1e-04 | 276 914 | 785 | 0.68 | 277 | 0.27 |
| 1e-05 | 536 252 | 305 | 0.44 | 270 | 0.43 |
| 1e-06 | 792 100 | 203 | 0.41 | 198 | 0.42 |
| 1e-07 | 898 097 | 172 | 0.41 | 168 | 0.42 |
| 1e-08 | 931 242 | 156 | 0.39 | 154 | 0.40 |
| 1e-09 | 947 565 | 149 | 0.38 | 147 | 0.40 |
| 1e-10 | 957 773 | 145 | 0.39 | 141 | 0.39 |
| exact | 206 332 | 135 | 0.10 | 125 | 0.11 |
Table 4.1. Example 1 ().
| droptol | nnz() | inexactImplicitK | inexactDFK | ||
| Iters | Time (s) | Iters | Time (s) | ||
| no-fill | 48 133 | — | — | 3222 | 4.45 |
| 1e-01 | 48 133 | — | — | 112 | 0.16 |
| 1e-02 | 79 759 | — | — | 128 | 0.19 |
| 1e-03 | 201 306 | — | — | 216 | 0.42 |
| 1e-04 | 460 730 | — | — | 353 | 1.11 |
| 1e-05 | 935 444 | — | — | 351 | 1.86 |
| 1e-06 | 1 504 060 | 242 | 2.04 | 228 | 2.00 |
| 1e-07 | 1 798 165 | 187 | 1.87 | 180 | 1.91 |
| 1e-08 | 1 888 277 | 165 | 1.70 | 165 | 1.78 |
| 1e-09 | 1 927 546 | 155 | 1.54 | 154 | 1.59 |
| 1e-10 | 1 951 080 | 149 | 1.60 | 147 | 1.65 |
| exact | 350 112 | 137 | 0.37 | 127 | 0.39 |
Table 4.2. Example 2 ().
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 . This can be shown inductively using
The iterates of inexact3termR converge to , the true solution of . Thus, the residual norm converges to , 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]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]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]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]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]Michael Eiermann and Oliver G. Ernst. Geometric aspects of the theory of Krylov subspace methods. Acta Numerica, 10:251–312, 2001.DOI
- [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]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]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]J. Liesen and Z. Strakoš. On optimal short recurrences for generating orthogonal Krylov subspace bases. SIAM Review, 50(3):485–503, 2008.DOI
- [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]Gérard Meurant and Jean Duintjer Tebbens. Krylov Methods for Nonsymmetric Linear Systems: From Theory to Computations. Springer, 2020.DOI
- [12]David Rapoport. A nonlinear Lanczos algorithm and the stationary Navier-Stokes equation. Department of Mathematics, New York University, PhD. Thesis, 1978.
- [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]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]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]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.