NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Probabilistic Iterative Methods for Linear Systems

Jon Cockayne, Ilse C. F. Ipsen, Chris J. Oates, Tim W. Reid

TL;DR

Classical iterative linear solvers output a sequence of point approximations to the solution $\mathbf{x}$ of $\mathbf{A}\mathbf{x} = \mathbf{b}$. This paper proposes probabilistic iterative methods, which lift standard solvers to act on probability distributions by pushing forward an initial belief distribution. This yields both a point estimate (the mean) and well-calibrated, structured uncertainty quantification (UQ) that can be easily sampled and propagated through downstream tasks.

What Problem Does This Paper Address?

When solving high-dimensional linear systems $\mathbf{A}\mathbf{x} = \mathbf{b}$ iteratively, stopping after a finite number of iterations $m$ leaves an unknown error $\mathbf{e}_m = \mathbf{x} - \mathbf{x}_m$. Classical error bounds (such as the $\mathbf{A}$-norm bound for Conjugate Gradients) are scalar, conservative, and cannot capture directional structure in the error. If $\mathbf{x}$ is fed into a downstream computation $F(\mathbf{x})$, scalar bounds rarely translate into meaningful error bars.

Probabilistic numerical methods (PNMs) aim to treat linear algebra statistically, but prior Bayesian approaches (such as BayesCG) condition on search directions generated adaptively via Lanczos recursions. Because these directions depend on the right-hand side $\mathbf{b}$, the statistical independence required for valid Bayesian updating is violated, causing previous probabilistic solvers to be poorly calibrated (frequently over-confident).

Methods

Rather than relying on Bayes’ theorem, the authors treat uncertainty through pushforward measures:

  1. Lifting to Probability Space: Given an iterative method defined by maps $\mathbf{x}_m = P_m(\mathbf{x}_{m-1})$, the algorithm acts directly on probability distributions $\mu \in \mathcal{P}(\mathbb{R}^d)$ via pushforwards: $$\mu_m = (P_m)_\# \mu_{m-1}$$ In practice, this is equivalent to drawing initial states $\mathbf{X}_0 \sim \mu_0$ and applying the standard deterministic solver $P^m(\mathbf{X}_0)$. Generating samples from the final uncertainty distribution inherits the exact stability and efficiency of the base solver without requiring new matrix operations.

  2. Closed-Form Linear Stationary Iterations: When $P(\mathbf{v}) = \mathbf{G}\mathbf{v} + \mathbf{f}$ (e.g., Richardson or Jacobi iteration) and the initial belief is Gaussian $\mu_0 = \mathcal{N}(\mathbf{x}_0, \mathbf{\Sigma}_0)$, the belief distribution at step $m$ is Gaussian: $$\mu_m = \mathcal{N}(\mathbf{x}_m, \, \mathbf{G}^m \mathbf{\Sigma}_0 (\mathbf{G}^m)^\top)$$

  3. Calibration Framework:
  4. Strong Calibration: Requires that normalized error vectors $\mathbf{\Sigma}_m^{-1/2}(\mathbf{X} - \mathbf{x}_m) \sim \mathcal{N}(\mathbf{0}, \mathbf{I})$ when $\mathbf{B} = \mathbf{A}\mathbf{X}$ with $\mathbf{X} \sim \mu_0$. The authors prove this holds for linear stationary iterations with both nonsingular and diagonalizable singular iteration matrices $\mathbf{G}$.
  5. Weak Calibration: A weaker, testable property requiring that the marginal distribution of solver samples matches $\mu_0$. The authors evaluate this using a Maximum Mean Discrepancy (MMD) two-sample kernel test with bootstrap significance.

Datasets

The authors evaluate the approach on a synthetic 1D kernel interpolation testbed:

  • Size: $d = 520$ points in $[0, 1]$ (clustered into $60$ points in $[0, 0.1]$, $400$ in $[0.2, 0.8]$, and $60$ in $[0.9, 1]$).
  • Target Function: $f(z) = \mathbf{1}_{z < 0.5}\sin(2\pi z) + \mathbf{1}_{z \ge 0.5}\sin(4\pi z)$.
  • Kernel: Squared exponential with length-scale $\ell = 0.0012$, creating an ill-conditioned, non-trivial system where the exact solution is accessible via direct factorization for benchmarking.

Key Insights and Ideas

  • Bypassing the Bayesian Trap: Instead of shoehorning linear solvers into a strict Bayesian conjugate-update framework (which breaks when iterations depend on data), generalized belief distributions via pushforwards provide statistically rigorous, defensible UQ.
  • Trivial Implementation: Sampling from the solution uncertainty does not require specialized, potentially unstable probabilistic linear algebra; one simply runs existing deterministic solver code initialized with random vectors from $\mu_0$.
  • Spectral Decomposition of Error: By examining the principal components of $\mathbf{A}\mathbf{\Sigma}_m\mathbf{A}^\top$, the method reveals where and how the solver is uncertain (e.g., low-frequency shifts across densely sampled intervals dominate early error).

Key Results

  • Calibration Testing (Table 1): In MMD two-sample tests ($\alpha = 0.05$), all tested probabilistic iterative methods failed to reject the null hypothesis of weak calibration across various priors (default, natural, and opt):
  • Stationary Richardson (default $\omega$): $q \in [0.34, 0.60]$
  • Optimal stationary Richardson: $q \in [0.47, 0.64]$
  • Adaptive Richardson & 2nd-order Richardson: $q \in [0.43, 0.68]$
  • Conjugate Gradient (CG): $q \in [0.47, 0.68]$
  • BayesCG was rejected as miscalibrated in nearly every setting ($q = 0.00$ to $0.03$).
  • Nonlinear Surprises: Even though CG is nonlinear, empirical MMD tests indicate it is weakly calibrated.
  • Error Modes: Principal Component Analysis on Richardson iterations showed that at $m = 100$, the top 6 components capture over $50\%$ of the error variation, predominantly targeting low-frequency vertical shifts.

Limitations and Future Work

  • Theoretical Gaps for Nonlinear Solvers: Strong calibration is proved only for linear stationary methods. A theoretical proof explaining why nonlinear methods like CG appear calibrated remains open.
  • Multi-step Priors: Second-degree methods require joint initial distributions over both $\mathbf{x}_0$ and $\mathbf{x}_1$; setting a sensible distribution over the second iterate is not straightforward.
  • Prior Sensitivity: If the true solution possesses structural properties (e.g., smoothness) not captured by $\mu_0$, transient bias appears in early iterations.
  • Future Directions: Formulating these updates as discretizations of gradient flows on probability space $\mathcal{P}(\mathbb{R}^d)$, and extending the framework to eigenvalue problems, numerical optimization, and nonlinear ODE solvers.

Summary updated

BibTeX
@article{cockayne2021probabilistic,
  author = {Jon Cockayne and Ilse C. F. Ipsen and Chris J. Oates and Tim W. Reid},
  title = {{Probabilistic Iterative Methods for Linear Systems}},
  journal = {J. Mach. Learn. Res.},
  year = {2021},
  url = {https://openreview.net/forum?id=tm6KAGMid3},
}
Figure