Classic Linear Solvers - A Review
Summary
This note casts the abstract iterative skeleton
LinSolve_Project(Algorithm 17.2) in the language of classical numerical linear algebra: projection methods, orthogonal / Galerkin methods, conjugate-direction methods, and Krylov subspace methods. The main structural results (Theorem 18.2, Lemma 18.3, Theorem 18.4, Corollary 18.5) pin down exactly which properties of the abstract inference rule make the skeleton equal to Conjugate Gradients. It closes with preconditioning and the observation that, unlike quadrature, no single Gaussian prior is forced by these classical constraints.
Overview
The point of Ch. 18 is to connect the generic solver of The Linear Algebra Problem and Evaluation Strategies (Algorithm 17.2), whose inference rule in line 12 is left abstract, to established families of classical solvers. Doing so lets us later (Corollary 18.5) identify a requirement that any probabilistic solver must satisfy to be equivalent to CG. The taxonomy is nested:
Main Content
Projection methods
Independent of the inference rule, Algorithm 17.2 selects its estimate as with the expanding subspace spanned by the search directions.
Projection method ^def-projection
An algorithm choosing estimates for some sequence of subspaces is a projection method. Because the step size (Eq. 17.3) minimises along , the resulting gradient satisfies a constraint: there is a space orthogonal to the gradient,
If the method is an orthogonal projection method and (18.1) is the Galerkin condition. If the method is oblique (Petrov–Galerkin).
Symbols: = space in which the estimate lives; = space orthogonal to the residual; = residual/gradient at step .
Conjugate directions
Conjugate directions (A-conjugacy) ^def-conjugate
Given symmetric , two vectors are -conjugate if . A solver for with symmetric is a conjugate directions method if it chooses projections that are pairwise -conjugate.
Conjugate-direction methods enjoy:
- Linear consistency: they converge to the exact in at most steps (Nocedal & Wright, Thm. 5.1).
- The gradient after steps is orthogonal to all preceding directions, for (Nocedal & Wright, Thm. 5.2) — so they are orthogonal projection methods.
Theorem 18.2 (symmetric estimator ⇒ conjugate directions) ^thm-182
If is symmetric, and the inference rule in line 12 of Algorithm 17.2 produces a symmetric estimator , then Algorithm 17.2 is a conjugate directions method.
(Proof by induction on the directions, using symmetry of in the key algebraic step; full proof in Ch. 22, reproduced in ^proof-182.)
This is the load-bearing bridge to the probabilistic story: symmetry of the inverse estimate is exactly what buys -conjugacy of the search directions.
Krylov subspace methods
Krylov sequence and Krylov methods ^def-krylov
The Krylov sequence of order generated by and is
A projection method with equal to the Krylov sequence is a Krylov subspace method. Examples: CG, GMRES, BiCG, CGS, QMR. CG is closely tied to the Lanczos process for eigenvalues of symmetric matrices; GMRES to the more general Arnoldi process.
Because line 12 of Algorithm 17.2 is generic, the skeleton is not a Krylov method in general — §18.4 states what is needed to make it one.
Lemma 18.3 (Krylov characterisation) ^thm-183
Assumption (18.3) — namely that the search directions satisfy
— is equivalent to Algorithm 17.2 being a Krylov subspace method, i.e. to
(Proof by a nearly trivial induction; Ch. 22.2. Here , , and .)
Conjugate Gradients as the intersection
Theorem 18.4 (CG conditions) ^thm-184
If is spd, is symmetric for all , Assumption (18.3) holds, and Algorithm 17.2 does not terminate before step , then the residuals are mutually orthogonal,
and there exist scalars for such that line 12 can be written
Comparing with CG (Algorithm 16.1), the directions are identical up to rescaling by : .
(Proof in Ch. 22.3; the full argument is developed in Conjugate Gradients as Probabilistic Inference.)
Corollary 18.5 (equivalence to CG) ^thm-185
Under the assumptions of Theorem 18.4 on the estimators , Algorithm 17.2 is equivalent to the method of conjugate gradients: it produces the exact same sequence of estimates as CG initialised at .
(The scaling is cancelled by the step size in line 7, so both algorithms produce identical estimates.)
CG is thus characterisable as the conjugate-direction method that is also a Krylov subspace method. Fig. 18.1 gives the geometric intuition: gradients sampled by CG are drawn (in effect) from a spherical Gaussian around the extremum and are dominated by the eigenvectors of the largest eigenvalues — the Lanczos process’s low-rank capture of the dominant structure that underlies conjugate gradients.
Preconditioning
Krylov subspaces are invariant under scaling (), translation (), and orthonormal change of basis () (Eq. 18.6).
Preconditioned system ^def-precond
Given a non-singular preconditioner , solve the transformed problem
A good makes CG converge much faster. Preconditioning is externalised from the solver by adding lines that solve with (Algorithm 18.1, pCG). The ideal but impractical choice is (one-step solution). Practical choices are incomplete/approximate decompositions of .
In the probabilistic language: a measure consistent with CG, altered so directions map to the transformed space,
becomes consistent with preconditioned CG. This modification will later (Corollary 19.17) correspond to a change of the prior of the probabilistic solver, with the ideal associated with a particularly “natural” prior.
Examples
Why linear algebra has no forced Gaussian prior (contrast with integration)
None of the restrictions above (projection, conjugacy, Krylov) implies a concrete — let alone Gaussian — form for . This differs sharply from integration, where each quadrature rule maps (up to one scalar) onto a specific Gaussian process prior. The reason: an invertible matrix has a finite degrees of freedom; at each step the solver identifies of them perfectly while learning nothing about the other . Linear algebra is largely sophisticated book-keeping rather than inference of an intractable object — so uncertainty is a “corner case” that classical solvers legitimately ignore.
When uncertainty does matter
Uncertainty in linear solvers becomes prominent when: (i) the object is an infinite-dimensional operator (PDEs); (ii) one needs the matrix inverse itself more than the solution (e.g. Laplace approximations / inverse Hessians of deep nets, which have few prominent eigenvalues and are stopped very early); or (iii) projection observations are corrupted by noise (data subsampling — sometimes re-phrasable as a Schur-complement projection).
Connections
- Theorem 18.2 (symmetry ⇒ conjugacy) is the pivot reused in Probabilistic Linear Solvers - Algorithmic Scaffold (Theorem 19.15) once the estimator is Gaussian.
- The Krylov/Lanczos picture reappears in Uncertainty Calibration for Linear Solvers via Rayleigh regression.
- Preconditioning-as-prior (Corollary 19.17) is developed in Probabilistic Linear Solvers - Algorithmic Scaffold.
See Also
- The Linear Algebra Problem and Evaluation Strategies — defines Algorithm 17.2 that these results characterise.
- Conjugate Gradients as Probabilistic Inference — states Theorem 18.4 / Corollary 18.5 with full proof sketch.
- Probabilistic Linear Solvers - Algorithmic Scaffold — the Gaussian models satisfying these classical requirements.
- Gauss-Markov Processes and SDEs — Krylov/Lanczos parallels the Markovian state-space compression seen elsewhere.