Probabilistic Linear Solvers - Algorithmic Scaffold
Summary
This is the central note of Part III. It fills the abstract
Inferstep of the iterative skeleton (Algorithm 17.2) with concrete Gaussian inference over matrices. One may place a Gaussian prior on the matrix , on its inverse , or (implicitly) on the solution ; in the noise-free case observations can be read as linear maps of either or , so inference on one transforms into inference on the other. Kronecker-structured covariances give closed-form, low-rank posteriors whose mean is analytically invertible, providing the estimators the solver needs. Encoding symmetry (linear, easy) turns the solver into a conjugate-direction method; encoding positive-definiteness (a nonlinear cone, hard) cannot be done in a Gaussian likelihood. The four resulting model families are summarised in Table 19.1.
Overview
From The Linear Algebra Problem and Evaluation Strategies we have the iterative skeleton whose inference rule (line 12) was left abstract, and from Classic Linear Solvers - A Review we know which properties of that rule reproduce classical solvers. This chapter supplies Gaussian inference rules with those properties. The design questions are:
- What do we put a prior on — , , or ?
- What covariance structure keeps inference tractable? (Answer: Kronecker; see Gaussian Priors over Matrices and the Symmetric Kronecker Product.)
- Can we encode the known facts that is symmetric and positive-definite?
The recurring thesis made concrete: with these ingredients, an existing solver like CG becomes the policy of an agent that holds an internal Gaussian model over (or ), uses it to estimate the solution of , and performs Bayesian inference on the matrix-vector products it collects.
Main Content
A prior over A, H, or x?
The uncertain aspects of can be located differently:
Three modelling choices ^def-choices
- Inference on : treat the matrix as the latent object, . Advantage: the matrix-matrix product is described explicitly and linearly (relevant if the main uncertainty is that products are computed approximately). Downside: it does not explicitly involve ; a tractable distribution on can induce a complicated (even non-invertible-supporting) distribution on (Fig. 19.1 — the inverse of a Gaussian is not Gaussian).
- Inference on : write explicitly with and model . Advantage: since is a linear function of , tractable posteriors on give tractable posteriors on . Downside: if holds only approximately, the likelihood is hard to capture.
- Inference on : model only the solution vector for one specific (cheapest; see Computational Constraints on Probabilistic Solvers).
Duality of noise-free inference on A and H ^thm-duality
In the noise-free case, the observations can be written as linear maps of either or :
Inference on transforms directly into inference on by simultaneously exchanging
(Here collects the rescaled directions and the observations.) One therefore studies inference on and reads off by the exchange.
General Gaussian inference on A
With a general Gaussian prior , the noise-free observation is a Dirac likelihood, the limit of a Gaussian:
Because is a linear projection of (via the Kronecker map ), the posterior is Gaussian, (19.4), with
General Gaussian posterior ^thm-general-posterior
The posterior is always consistent: the marginal over the projection is (19.7), so every sample obeys , and if invertible also (required by Algorithm 17.2). This holds for the posterior mean too.
Problem: the Gram matrix is — larger than the original matrix. Structure on is mandatory.
Kronecker covariances give low-rank posteriors
With (spd ; see ^def-kron-cov), the posterior collapses to a rank- outer-product update:
Kronecker posterior mean and covariance ^thm-kron-posterior
Symbols: = residual between prediction and observation ; = predictive covariance between the rows of the residual; = predictive covariance between residual rows and rows of . All objects are stored in and involve a single inverse.
The estimator required by Algorithm 17.2 is . Thanks to the low-rank structure, the mean’s inverse is available via the matrix inversion lemma (15.9):
Lemma 19.3 (existence of the inverse-of-the-mean estimator) ^thm-193
If and are spd, and the search directions are linearly independent, then for spd the inverse (19.12) exists. Proof. If is spd its inverse exists; and products of spd matrices are spd, so is spd, hence is invertible.
This gives the first concrete realisation of Algorithm 17.2: set the prior and use from (19.12). Note (inverse of the expected value) is not (the harder object).
Encoding symmetry (linear ⇒ conjugate directions)
Symmetry is a linear constraint; the Gaussian family is closed under it. Using the symmetric Kronecker product covariance (see ^def-symkron) and prior (19.20, symmetric ), conditioning on gives:
Symmetric Gaussian posterior ^thm-sym-posterior
is symmetric when is (since is symmetric), and the term added to has rank at most . Introducing and (19.23), it is a rank- update
whose inverse follows from the matrix inversion lemma, inverting only a matrix (19.24) — cost at most (plus to multiply).
Because the estimator (equivalently ) is now symmetric, Theorem 18.2 applies: the solver is a conjugate-direction method (see ^thm-182). This is the key payoff of symmetry.
What about positive-definiteness? (the hard, nonlinear part)
The positive-definite cone obstruction ^cone
The set of spd matrices is a cone, a nonlinear sub-space of (and of the symmetric matrices; Fig. 19.5). Information about positive-definiteness therefore cannot be captured by a Gaussian likelihood using only linear terms in . A Gaussian posterior always places non-zero mass outside the cone.
Two partial remedies keep the posterior mean spd:
Corollary 19.9 (hereditary positive-definiteness via )
Assume is spd, is the posterior mean of (19.21), and Algorithm 17.2 uses conjugate search directions . If has the property , then all are symmetric positive-semi-definite. (This corresponds to the unrealistic but conceptually interesting choice .) Proof. The rank-2 mean update (19.25) is spsd iff (Lemma 19.8, Dennis & Moré Thm. 7.5). Under -conjugacy and , the offending term vanishes, so the condition (19.27) holds.
Theorem 19.10 (drag the mean into the cone by inflating the prior) ^thm-1910
Assume scalar prior parameters , for , with the posterior mean (19.21) and conjugate search directions . Then there exists a finite such that any choice ensures all are positive-semi-definite. (Proof in Ch. 22.4; developed in ^proof-1910. Intuition: since is bounded by , hereditary pos-def is achieved by setting much larger than .)
Both are dissatisfying probabilistically: they are post-hoc statements about the mean only. The Gaussian distribution still puts mass outside the cone, and the correction is not a use of prior knowledge during inference — the known fact ” is spd” changes the estimate but is not truly exploited in the action rule. At the time of writing there is no clean solution.
The four model families
Summary of Gaussian linear-solver models (Table 19.1) ^def-four-models
Aiming to solve with spd , adopting the iterative paradigm (Algorithm 17.2) with projection–observation pairs , , there are four Gaussian model classes, from the two axes {model vs model } × {asymmetric vs symmetric}:
Asymmetric prior Symmetric prior Model for ; mean ; cov ; mean adds symmetric rank- term; cov Model for ; mean ; cov ; mean (19.21); cov (with etc.) Modelling allows a joint Gaussian model over and the solution . Modelling allows explicit treatment of Gaussian observation noise, and still gives a low-rank mean estimate for (so an easily-computable estimate of ). The likelihoods in all four cases are Dirac masses on or , arising from different limit processes; the symmetric ones require the symmetric Kronecker product in the covariance, else the compact forms break — this is the principal reason the framework does not extend easily to the noisy setting.
Consistency between beliefs on A and H, and preconditioning
Because the inverse of a Gaussian is not Gaussian (Fig. 19.9), a Gaussian on does not correspond to a Gaussian on exactly; but when the signal-to-noise ratio is large the correspondence is good.
Posterior correspondence ^def-correspondence
Two solvers (one with belief on , prior mean , covariance parameter , posterior mean ; one with belief on , mean , parameter , posterior mean ) exhibit posterior correspondence if for all (19.28), and weak posterior correspondence if only (19.29). Lemma 19.12 (asymmetric) and Theorem 19.13 (symmetric) give the algebraic conditions; e.g. pairs with .
Theorem 19.14 (probabilistic projection methods) ^thm-1914
Any Gaussian generative model on elements of , , or on , , used in Algorithm 17.2, gives rise to a projection method. Proof. By Eq. (19.7) the estimator obeys the consistency requirement of line 12, hence is a projection method by construction.
Theorem 19.15 (probabilistic conjugate-direction methods) ^thm-1915
Any Gaussian model with symmetric Kronecker covariance for or — or with spd or — used in Algorithm 17.2 gives rise to a conjugate-direction method. Proof. Immediate from Theorem 18.2 (symmetric estimator ⇒ conjugacy) and consistency of the Gaussian posterior (19.7).
Corollary 19.17 (probabilistic preconditioned CG) ^thm-1917
For a prior with spd and scalars , Algorithm 17.2 is equivalent to preconditioned CG with preconditioner . The same holds for . Proof. pCG runs CG on with ; by Theorem 19.16 running CG on equals inferring from ; the transformation maps this to the stated prior on .
This is the precise sense in which a preconditioner is a choice of prior (mean and surrounding uncertainty), with the ideal the most “natural” prior.
Examples
The point-estimate "trick" — means need only accessible quantities
It seems odd that Theorem 19.16 lists the inaccessible true (or ) as an allowed parameter . But the posterior means contain only as or . Since and , one can substitute and — quantities available at runtime. So the point estimator is computable even though its “prior covariance” formally references the unknown matrix. The covariances, however, explicitly contain ; that is why calibrating the covariance (Ch. 21) needs an empirical-Bayes estimate of .
Consistency check on the posterior
No matter the prior covariance, the marginal on the projection is a delta at the data: . Any sample satisfies ; if invertible, . The solver’s belief is always exactly consistent with the matrix-vector products it has seen.
Connections
- The symmetry ⇒ conjugacy chain (19.15 → Theorem 18.2) is what connects this scaffold to CG; the full equivalence (parameters , ) is Theorem 19.16, detailed in Conjugate Gradients as Probabilistic Inference.
- The choice , (Corollary 19.9) reappears as the computationally and calibration-favoured choice in Computational Constraints on Probabilistic Solvers.
- Empirical-Bayes estimation of the covariance parameter is the subject of Uncertainty Calibration for Linear Solvers.
- Compare with Hierarchical Inference in Gaussian Models for the general empirical-Bayes / conjugate-prior machinery invoked for scale estimation.
See Also
- Gaussian Priors over Matrices and the Symmetric Kronecker Product — the covariance machinery used throughout.
- Conjugate Gradients as Probabilistic Inference — Theorem 19.16 and the CG-equivalence proof.
- Computational Constraints on Probabilistic Solvers — instantiating cheap, CG-cost solvers; inference on only.
- Uncertainty Calibration for Linear Solvers — calibrating the covariance .
- The Linear Algebra Problem and Evaluation Strategies — the skeleton (Algorithm 17.2) instantiated here.
- Classic Linear Solvers - A Review — the classical properties (projection, conjugacy, Krylov) these models realise.
- Gaussian Process Regression — the “posterior mean = classic estimate, at little extra cost” pattern parallels GP regression’s Hessian/covariance reuse.