# Affine Tracing: A New Paradigm for Probabilistic Linear Solvers

*Disha Hegde, Marvin Pförtner, Jon Cockayne*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/150970) · [OpenReview](https://openreview.net/forum?id=duOAO1yJKQ) · [Open on the map](../papers.html#p150970)

Category: [Time Series, PDEs & Probabilistic ML](../pcat/9.md) › [Bayesian Filtering and Tracking](../pgroup/139.md) · Type: new method · Keywords: probabilistic linear solvers, affine iterative methods, Bayesian PLS, probabilistic multigrid, Gaussian process approximation, symbolic tracing

Areas: [Optimization & Algorithms](../areas/optimization.md) › Optimization, Estimation, Approximation › Bayesian learning

## Summary
Affine Tracing is an algorithmic framework that automatically constructs probabilistic iterative methods from standard affine iterative solvers, enabling rapid development of solvers such as a probabilistic multigrid method.

## Explained to a 5-year-old
People want to solve big math problems that need a lot of work. Sometimes they can only do a little bit and need to know how sure they are about the answer. This paper creates a way to automatically make a tool that does a little math step by step and also tells you how confident you can be. It helps make solving these problems easier and faster. The tool can even be used to improve other math tools.

## Explained to a 5-year-old, longer
Imagine you have a huge puzzle with many pieces. You might not have enough time to finish all of it. So you do a few pieces and guess the rest. You also want to know how sure you are about your guess. This paper makes a special robot that can look at how you do a few steps. It then builds a picture of the whole puzzle and adds a number that shows how sure you are. The robot works for many kinds of puzzles, like those used in science and engineering. It can even help improve other robots that solve puzzles. The new robot is called affine tracing, but we can think of it as a smart helper. It saves a lot of time because you don’t have to write a lot of code yourself. You just give it a normal puzzle-solving program, and it does the rest. This makes it easier for many people to use advanced math tools.

## For a technical reader
The paper introduces affine tracing, an automated framework that transforms a conventional affine iterative solver into a probabilistic iterative method by symbolically tracing its computation and building an affine computational graph. This graph is then modified to compute posterior covariances, allowing the solver to quantify uncertainty in its results. Equality saturation is applied to simplify algebraic expressions when specific prior distributions are used, reducing computational overhead. The authors demonstrate the approach by generating a probabilistic multigrid solver and evaluating it on Gaussian process approximation tasks. Overall, affine tracing reduces the manual effort required to develop calibrated probabilistic solvers while preserving the performance of their deterministic counterparts.

## Problem
Probabilistic linear solvers traditionally distinguish between Bayesian PLSs and probabilistic iterative methods, but this distinction is not theoretically justified, and implementing affine PIMs manually is labor-intensive.

## Method
The approach symbolically traces the computation of an affine iterative method to build an affine computational graph, transforms this graph to compute posterior covariances, and uses equality saturation for algebraic simplifications under specific priors.

## Contributions
The paper proves that Bayesian PLSs are a special case of non-stationary affine PIMs, shows that realistic affine PIMs are calibrated, and provides an automated framework for constructing such methods from standard implementations.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/150970)
