# Affine Tracing: A New Paradigm for Probabilistic Linear Solvers

DevFeed: [Affine Tracing: A New Paradigm for Probabilistic Linear Solvers](<https://devfeed.tech/articles/affine-tracing-a-new-paradigm-for-probabilistic-linear-solvers-128526.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2605.10566>)

Author: Disha Hegde, Marvin Pf\\"ortner, Jon Cockayne

Published: 2026-11-11T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [Algorithms](<https://devfeed.tech/topics/algorithms.md>), [VAE](<https://devfeed.tech/topics/vae.md>), [tracing](<https://devfeed.tech/topics/tracing.md>)

Tags: [abstract](<https://devfeed.tech/tags/abstract.md>), [automatically](<https://devfeed.tech/tags/automatically.md>), [bayesian](<https://devfeed.tech/tags/bayesian.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [cs-na](<https://devfeed.tech/tags/cs-na.md>), [effort](<https://devfeed.tech/tags/effort.md>), [equality](<https://devfeed.tech/tags/equality.md>), [framework](<https://devfeed.tech/tags/framework.md>), [gaussian](<https://devfeed.tech/tags/gaussian.md>), [graph](<https://devfeed.tech/tags/graph.md>), [implement](<https://devfeed.tech/tags/implement.md>), [implementation](<https://devfeed.tech/tags/implementation.md>), [linear](<https://devfeed.tech/tags/linear.md>), [math-na](<https://devfeed.tech/tags/math-na.md>), [performance](<https://devfeed.tech/tags/performance.md>), [pim](<https://devfeed.tech/tags/pim.md>), [practical](<https://devfeed.tech/tags/practical.md>), [probabilistic](<https://devfeed.tech/tags/probabilistic.md>), [probability](<https://devfeed.tech/tags/probability.md>), [solution](<https://devfeed.tech/tags/solution.md>), [standard](<https://devfeed.tech/tags/standard.md>), [stat-ml](<https://devfeed.tech/tags/stat-ml.md>), [systems](<https://devfeed.tech/tags/systems.md>), [tracing](<https://devfeed.tech/tags/tracing.md>)

## AI overview

The paper argues that Bayesian probabilistic linear solvers are a special case of non-stationary affine probabilistic iterative methods (PIMs), and proves that any realistic affine PIM is calibrated. To reduce the manual work of implementing such methods, it introduces affine tracing: symbolic tracers pass through a standard affine iterative solver implementation to build a computational graph. The graph can be transformed to compute posterior covariances, while equality saturation simplifies expressions for particular prior choices. The authors demonstrate automatic generation of a probabilistic multigrid solver and evaluate it for Gaussian process approximation; the abstract provides no performance results.

## Source excerpt

arXiv:2605.10566v2 Announce Type: replace-cross Abstract: Probabilistic linear solvers (PLSs) return probability distributions that quantify uncertainty due to limited computation in the solution of linear systems. The literature has traditionally distinguished between Bayesian PLSs, which condition a prior on information obtained from projections of the linear system, and probabilistic iterative methods (PIMs), which lift classical iterative solvers to probability space. In this work we show this dichotomy to be false: Bayesian PLSs are a special case of non-stationary affine PIMs. In addition, we prove that any realistic affine PIM is calibrated. These results motivate a focus on (non-stationary) affine PIMs, but their practical adoption has been limited by the significant manual effort required to implement them. To address this, we introduce affine tracing, an algorithmic framework that automatically constructs a PIM from a standard implementation of an affine iterative method by passing symbolic tracers through the computation to build an affine computational graph. We show how this graph can be transformed to compute posterior covariances, and how equality saturation can be used to perform algebraic simplifications required for computation under specific prior choices. We demonstrate the framework by automatically generating a probabilistic multigrid solver and evaluate its performance in the context of Gaussian process approximation.