In scientific computing, the solution to a linear system $Ax = b$ is typically treated as a single point estimate. However, iterative solvers are frequently stopped before full convergence, leaving an unknown error. Probabilistic Numerics addresses this by framing linear solvers as statistical inference problems. Instead of a single guess, a probabilistic solver like BayesCG—an extension of the Conjugate Gradient (CG) method—provides a probability distribution that quantifies its own uncertainty.
This paper investigates the statistical "honesty" or calibration of BayesCG. Specifically, it asks whether the solver's reported uncertainty accurately reflects the actual error in its approximations.
The Challenge of Calibration
Most iterative solvers provide a sequence of iterates that converge to the solution. If stopped early, the distance to the true solution is unknown. Probabilistic solvers output a posterior distribution (typically Gaussian), where the mean is the current estimate and the covariance represents the uncertainty.
A solver is "calibrated" if its predicted error matches its actual performance. Many existing solvers are "pessimistic," overestimating their error. Conversely, an "optimistic" solver underestimates it. This research seeks to rigorously evaluate BayesCG's calibration and the impact of practical, low-rank approximations on its reliability.
Methodology and New Metrics
The study focuses on BayesCG under the Krylov prior. The authors introduce several key tools for evaluation:
- A-Wasserstein Distance: A metric used to measure the discrepancy between "ideal" full-rank posteriors and the computationally efficient low-rank approximations used in practice.
- The S-statistic: A novel, robust metric that compares the actual squared error (in the A-norm) to the trace of the predicted covariance. If a solver is well-calibrated, these values should align on average.
- Empirical Bayesian Interpretation: The authors show that the Krylov prior can be viewed as an empirical Bayesian procedure, where the search directions themselves serve as the "data" used to construct the prior.
Key Insights
The research reveals several critical properties of the BayesCG algorithm:
- Strict Calibration vs. Practical Utility: Strict mathematical calibration requires the solver's uncertainty to be independent of the right-hand side $b$. Because BayesCG's search directions are residual-dependent, it cannot be strictly calibrated. However, it remains highly effective in practice.
- The Dirac Distribution: Under the traditional $Z$-statistic, BayesCG produces a Dirac distribution rather than the expected chi-squared distribution. This indicates that the solver's error is not just statistically likely but is precisely determined by the remaining Krylov subspace.
- Optimism in Approximations: While BayesCG matches the convergence of standard CG, it tends to be slightly optimistic when using low-rank approximations, meaning it may slightly underestimate its error.
Experimental Results
The authors validated their findings using the BCSSTK14 matrix, a standard structural engineering benchmark.
- Accuracy: The $S$-statistic demonstrated that predicted and actual errors were highly aligned, often matching to three significant figures for full posteriors.
- Efficiency: Even with a rank-50 approximation for a system of size 1806, the solver remained only slightly optimistic. This suggests that engineers can obtain reliable uncertainty bounds without the computational cost of a full-rank posterior.
Conclusion
While BayesCG under the Krylov prior does not meet the strictest definitions of mathematical calibration, it proves to be a remarkably "honest" and efficient solver. By providing a principled way to quantify uncertainty, it offers a significant advancement for scientific computing applications where understanding error is as important as the estimate itself.
Summary updated