Bayesian ODE solvers: the maximum a posteriori estimate

Filip Tronarp, Simo Särkkä, Philipp Hennig · DOI

Abstract: This paper establishes a rigorous theoretical foundation for probabilistic ODE solvers by analyzing their Maximum A Posteriori (MAP) estimates. By mapping the Bayesian inference problem to optimization in Reproducing Kernel Hilbert Spaces (RKHS), the authors demonstrate that MAP estimates are equivalent to optimal interpolants in Sobolev spaces. They prove that a solver employing a $\nu$-times differentiable prior achieves a global convergence order of $\nu$, bridging the gap between probabilistic methods and classical numerical analysis.

Introduction

Classical numerical ODE solvers, such as the Runge-Kutta family, typically provide a single point estimate of a solution. In contrast, probabilistic ODE solvers treat the problem as a statistical inference task, returning a probability distribution that quantifies uncertainty. While these solvers are increasingly popular for downstream tasks like parameter estimation, their theoretical convergence properties—specifically for deterministic Gaussian Process-based solvers—were not fully established. This research aims to bridge this gap by determining if the MAP estimate from a Bayesian solver converges to the true solution as the mesh is refined, and at what rate.

Methodology

The study focuses on probabilistic solvers utilizing linear time-invariant Gauss-Markov priors. A $\nu$-times differentiable stochastic process serves as the prior for the ODE solution. To compute the MAP estimate, the authors employ the Iterated Extended Kalman Smoother (IEKS), a computationally efficient algorithm that acts as a Gauss-Newton optimizer for the trajectory.

Comparison of computational costs and function evaluations for different Kalman smoother variants.

As shown in the table above, the IEKS scales linearly with the number of time steps ($N$), providing a way to find the MAP estimate without the $O(N^3)$ cost typically associated with standard Gaussian Process regression. The methodology involves mapping the Bayesian inference problem to an optimization problem in an RKHS, which is shown to be norm-equivalent to a Sobolev space of smoothness $\nu + 1$.

Theoretical Framework

A core insight of this work is that the MAP estimate of a Bayesian ODE solver is mathematically identical to an optimal interpolant in a specific Sobolev space. Consequently, the convergence rate is directly tied to the differentiability of the prior: a $\nu$-times differentiable prior yields a global error order of $\nu$. This alignment brings probabilistic solvers into the established "order" framework of classical numerical analysis.

Experimental Results

The authors evaluated the solvers using four synthetic ODE benchmarks: the Logistic equation, a Riccati equation, the Fitz-Hugh-Nagumo model, and a custom non-smooth ODE.

  • Theoretical Convergence: Numerical experiments confirmed the predicted rates; for instance, using a prior with $\nu=4$ resulted in a significantly steeper error reduction than $\nu=1$ as step size decreased.
  • Uncertainty Quantification: IEKS and EKS1 methods demonstrated superior uncertainty quantification compared to the simpler EKS0, which often exhibited overconfidence or oscillations.
  • Robustness: Even in cases where smoothness assumptions were violated (the non-smooth benchmark), the solvers remained robust, although higher-order priors experienced reduced convergence rates.

Discussion and Limitations

While IEKS is efficient, it is a gradient-based optimizer and may only find local MAP estimates in highly non-linear vector fields. Additionally, optimal hyperparameter tuning (e.g., the diffusion constant $\sigma^2$) remains a practical challenge for the user. Future research may extend these convergence proofs to broader classes of non-smooth differential equations.

Summary updated

BibTeX
@article{tronarp2021bayesian,
  author = {Filip Tronarp and Simo Särkkä and Philipp Hennig},
  title = {{Bayesian ODE solvers: the maximum a posteriori estimate}},
  journal = {Stat. Comput.},
  year = {2021},
  doi = {10.1007/s11222-021-09993-7},
}
Figure