Stable and Scalable Probabilistic Numerical Solvers for Stiff and High-Dimensional ODEs

Nathanael BoschNeurIPS 2026

TL;DR

Probabilistic ODE solvers turn numerical simulation into Bayesian inference, giving you built-in uncertainty quantification alongside your solution—until now, however, you had to choose between solvers that could handle stiff equations and solvers that could scale to high dimensions. This paper breaks that trade-off by introducing MatfreeEK1, a probabilistic solver that scales linearly $\mathcal{O}(d)$ in dimension while retaining the full, exact Jacobian needed for stability. By blending classical matrix-free numerical linear algebra with stochastic covariance estimation, we can finally run uncertainty-aware simulations on massive, stiff partial differential equations (PDEs) with hundreds of thousands of dimensions.

What Problem Does This Paper Address?

When we simulate physical systems governed by PDEs—like fluid flow or chemical reactions—we often chop space into a fine grid, turning one PDE into a massive system of ordinary differential equations (ODEs). Fine grids create a double headache: the ODE system is both high-dimensional (huge $d$) and stiff (processes happen at wildly different timescales, causing naive solvers to blow up unless they take microscopic time steps).

In probabilistic numerics, "ODE filters" treat solving an ODE as a Bayesian filtering problem (specifically, using an Extended Kalman Filter, or EKF) to track numerical error as a Gaussian distribution. Existing ODE filters face a painful dilemma:

  • Stable methods (EK1, ExpEK) linearize the ODE using the exact Jacobian matrix. They handle stiffness well, but inverting and multiplying dense matrices costs $\mathcal{O}(d^3)$ time and $\mathcal{O}(d^2)$ memory—completely infeasible for large grids.
  • Scalable methods (EK0, DiagonalEK1) force $\mathcal{O}(d)$ scaling by zeroing out or diagonalizing the Jacobian, throwing away variable interactions and ruining stability on stiff problems.

Classical numerical analysis solved this decades ago using matrix-free Krylov methods. This paper asks: can we bring those classical tools into Bayesian filtering without breaking the probabilistic covariance tracking?

Wait—let's look at the overarching summary figure from the paper:

Figure 1: MatfreeEK1 is both 𝒪︀(𝑑) and stable, making it effective for stiff high-dimensional ODEs. (a) FitzHugh–Nagumo PDE with dimension 𝑑= 125000, solved with MatfreeEK1. (b)–(d) Runtime as a function of 𝑑 at constant stiffness (b), stiffness 𝜆 at fixed 𝑑 (c), and PDE resolution 1/Δ𝑥 with both 𝑑 and stiffness increasing (d). Established ODE filters are either scalable (𝒪︀(𝑑) in (b)) or stable (no strong growth with stiffness in (c)). MatfreeEK1 achieves both and therefore scales best in (d). The non-probabilistic matrix-free solver KenCarp4+GMRES is shown for reference. See Section A.3.6 for details.

Methods

The author introduces two complementary upgrades to standard EKF-based ODE solvers:

  1. MatfreeEK1 (Matrix-Free Update + Stochastic Covariance): Instead of approximating the ODE Jacobian (like DiagonalEK1), MatfreeEK1 keeps the exact Jacobian and approximates the posterior covariance structure instead, imposing a block-diagonal prior/posterior.

  2. Mean Update: Rather than instantiating dense matrices, it uses automatic differentiation to compute Jacobian-vector products (JVPs) and vector-Jacobian products (VJPs), and replaces $\mathcal{O}(d^3)$ matrix inversion with Preconditioned Conjugate Gradients (CG).

  3. Stochastic Covariance Update: Updating the covariance matrix without building dense matrices is tricky. The author rewrites the EKF covariance update in square-root form, passes $m$ standard normal random vectors through the matrix-free operators, and uses Monte Carlo estimation to reconstruct only the $d$ small diagonal blocks of the posterior covariance. Both steps run in $\mathcal{O}(d)$ time and memory!
  4. Iterative Re-linearization (IEKF): Standard EK1 linearizes the ODE once per step around the predicted mean (making it semi-implicit). By applying the Iterated Extended Kalman Filter (IEKF), the solver repeatedly re-linearizes and updates at each step until convergence—equivalent to Gauss–Newton optimization for the MAP estimate. This turns ODE filters into fully implicit solvers without altering their $\mathcal{O}(d)$ per-step scaling.

Datasets

Because this is a numerical simulation paper rather than a machine-learning training paper, there are no training datasets. Instead, methods are evaluated on standard dynamical systems and spatially discretized PDE benchmarks:

  • FitzHugh–Nagumo PDE (2D): Scaled up to $d = 125,000$ to test joint stiffening and spatial refinement.
  • Lorenz96: A chaotic system whose dimension $d$ (tested up to $>10^6$) can be scaled independently of stiffness.
  • 1D Brusselator: A reaction-diffusion system with a tunable stiffness parameter $\alpha$.
  • 1D Burgers ($d=500$) & 2D Fisher-KPP ($d=4096$): Semi-linear stiff PDEs used to benchmark fixed-step and adaptive-step accuracy vs. wall-clock time.

Key Insights and Ideas

  • Approximating the covariance beats approximating the Jacobian: Both DiagonalEK1 and MatfreeEK1 maintain $\mathcal{O}(d)$ block-diagonal covariances, but DiagonalEK1 drops off-diagonal Jacobian terms to preserve that structure naturally. Keeping the exact Jacobian via AD and stochastically projecting the covariance back onto block-diagonal form (MatfreeEK1) makes a night-and-day difference for stability.
  • Scalar A-stability can be a mirage: On the classic scalar Dahlquist test equation, DiagonalEK1 is formally A-stable because a $1 \times 1$ Jacobian is diagonal. Yet on multidimensional PDEs, it becomes severely stability-limited. Conversely, MatfreeEK1 loses strict theoretical A-stability at finite Monte Carlo sample sizes $m$, yet behaves nearly identically to the exact, A-stable EK1 in practice.
  • Adaptive step-sizing steals IEKF's thunder (sometimes): Iterative re-linearization (IEKF) noticeably stabilizes MatfreeEK1 at large fixed step sizes, and substantially accelerates DiagonalEK1 everywhere. However, when adaptive step-size control is turned on, MatfreeEK1 alone is already so well-behaved that IEKF adds virtually no extra benefit.

Key Results

  • True $\mathcal{O}(d)$ Scaling: On Lorenz96, MatfreeEK1 matches the linear $\mathcal{O}(d)$ per-step runtime scaling of explicit EK0 and DiagonalEK1 past $d=10^6$, while EK1 and ExpEK hit a cubic $\mathcal{O}(d^3)$ wall around $d \approx 10^3 - 10^4$.
Figure 2: MatfreeEK1 scales linearly in the ODE dimension. Wall-clock time of a single solver step on the Lorenz96 system as a function of dimension 𝑑. MatfreeEK1 matches the linear scaling of EK0 and DiagonalEK1; EK1 and ExpEK scale cubically. IEKF does not affect scaling behavior.
  • Immunity to Stiffness: Sweeping stiffness $\alpha$ from $0.02$ to $10$ on the 1D Brusselator forces EK0 and DiagonalEK1 step counts up by orders of magnitude (to $>10^6$ steps), whereas MatfreeEK1 keeps its step count flat around $\sim 10^2$ steps, matching dense EK1.
Figure 3: MatfreeEK1 is stable under increasing stiffness. Number of steps as a function of the stiff­ ness parameter 𝛼 of the 1D Brusselator (a), and work-precision diagrams for the least and most stiff settings (b, c). EK0 and DiagonalEK1 require more steps as stiffness increases, whereas MatfreeEK1, EK1, and ExpEK keep their step count essentially constant. IEKF does not affect MatfreeEK1 but reduces the step count of DiagonalEK1.
  • Solving Large Stiff PDEs: On the 2D Fisher-KPP ($d = 4096$), cubic EK1 took ~26 minutes even at the loosest error tolerance. MatfreeEK1 solved the problem across the entire tolerance spectrum, finishing in just over 2 minutes at the tightest tolerance ($\sim 10^{-12}$ error), and successfully scaled to a $d = 125,000$ FitzHugh–Nagumo PDE.

Limitations and Future Work

  • Conditioning and Krylov Iterations: Claiming $\mathcal{O}(d)$ cost assumes the Conjugate Gradient iteration count $k$ stays constant. As PDE grids get finer and stiffer, matrix conditioning worsens and $k$ creeps up, causing slightly super-linear runtime growth under grid refinement. Incorporating problem-specific preconditioners (standard in classical solvers) is a prime next step.
  • Finite-Sample Stability Theory: Because covariance blocks are estimated with a tiny number of Monte Carlo samples ($m = 2(q+1)$), formal finite-sample stability guarantees for MatfreeEK1 remain an open theoretical question.
  • Uncertainty Calibration & Classical Overhead: Classical matrix-free solvers like KenCarp4+GMRES are still faster in raw wall-clock time (though they lack uncertainty quantification), and a deep dive into how well-calibrated the stochastic block-diagonal posterior uncertainties are is left for future work.

Summary updated

BibTeX
@inproceedings{bosch2026stable,
  author = {Nathanael Bosch},
  title = {{Stable and Scalable Probabilistic Numerical Solvers for Stiff and High-Dimensional ODEs}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=kWEGM5zPCL},
}
Figure