Theory of ODE Filters and Smoothers
Summary
ODE filters attain global polynomial convergence rates when derivatives are modelled — on par with th-order Runge–Kutta — with a posterior standard deviation that is asymptotically well-calibrated (contracts at the same rate). Two analyses give this: a classical Grönwall-type argument (EKF0, -times IWP) and a scattered-data-interpolation argument in an RKHS (MAP estimate, general priors). The EKF1/EKS1 are A-stable; numerical-linear-algebra instabilities from ill-conditioned are cured by a re-scaled (Nordsieck-like) coordinate transform and square-root filtering. In steady state the EKF0 with IWP prior is the trapezoidal rule () and a third-order Nordsieck method ().
Overview
Classical numerics has two analytical desiderata: convergence rates ( as ) and numerical stability (well-behaved at practical , especially for stiff ODEs). Probabilistic solvers add a third: calibration of the posterior variance. This note states the main theorems for the -times IWP prior (the standard choice, ODE Filters and Smoothers), with conditions and proof sketches. Throughout, w.l.o.g. the step size is constant.
Main Content
Convergence rates — classical analysis (§39.1.1)
Regularity assumption (Assumption 39.1)
; globally Lipschitz; all derivatives of up to order uniformly bounded and globally Lipschitz. Formally there is with for all multi-indices , and for .
Local convergence of the EKF0 (Theorem 39.2)
Let the prior be a -times IWP or IOUP, , and the filtering mean from one step of the EKF0. Under Assumption 39.1 there is such that for all sufficiently small ,
I.e. the local (per-step) rate is , the optimal Taylor rate.
Proof sketch. Bound all relevant quantities and apply Taylor’s theorem; full argument in Kersting, Sullivan & Hennig (2020, Thm. 8).
Global convergence of the EKF0/EKS0 (Theorem 39.3)
Under the assumptions of Thm. 39.2, additionally restrict , the prior to a -times IWP, and constant across time. Then there is , depending on final time , such that for all sufficiently small
where is the EKF0 posterior-mean estimate of . The same bound holds for the EKS0.
Proof sketch. Combine fixed-point arguments with a discrete Grönwall inequality (Kersting, Sullivan & Hennig 2020, Thm. 14). For the EKS0 the bound follows because filtering and smoothing distributions coincide at the final time .
Global calibration (Theorem 39.4)
Under the assumptions/restrictions of Thm. 39.3, there is such that the final posterior standard deviation obeys
for both EKF0 and EKS0. Thus the error bars contract at the same rate as the true error — the posterior is asymptotically well-calibrated.
The main limitation of Thms. 39.3–39.4 is the restriction . Experiments (Kersting et al. 2020; Krämer & Hennig 2020) validate the rates for up to , so extension to general is widely believed.
Convergence rates — scattered-data interpolation (§39.1.2)
An alternative analysis (Tronarp, Särkkä & Hennig 2021) works from the SSM directly. The global MAP estimate maximises the posterior under the restriction that the information operator
vanishes at grid points, . The MAP is then a scattered-data interpolant in a Sobolev space; only one extra derivative is needed (no Lipschitz/boundedness).
Convergence of the MAP estimate (Theorem 39.6)
Under Assumption 39.5 () and for any prior of smoothness (a.s. -times differentiable sample paths — includes the Matérn/IWP/IOUP family), there is with
where is the MAP estimate for a discretisation .
Proof sketch. Analyse the regularity inherits from under Assumption 39.5, then apply scattered-data interpolation bounds in the RKHS/Sobolev space of the prior (Tronarp, Särkkä & Hennig 2021, Thm. 3).
Uniform error of the MAP estimate (Corollary 39.7)
If Assumption 39.5 holds and is globally -Lipschitz, then for any prior of smoothness there is with
Proof sketch. By the fundamental theorem of calculus (with ), the triangle inequality, and Eq. (39.1):
Grönwall’s inequality (integral form) then closes the bound.
Discussion. Cor. 39.7 applies to any prior with derivatives (vs Thm. 39.3’s IWP), but bounds only the MAP estimate , which standard EKF/EKS do not exactly compute for nonlinear (the IEKS converges to a local MAP minimum, possibly not the global one). So strictly it does not certify any particular algorithm — but experiments show EKS0/EKS1/IEKS all attain the MAP rate. Compared to classical methods, is optimal and on par with Runge–Kutta as a single-step method; because an ODE filter stores information from previous steps in its derivatives, it is really more like a multistep method that can achieve even higher rates in some settings (§39.3).
Numerical stability (§39.2)
A-stability (§39.2.1)
On the Dahlquist test equation , , with having eigenvalues in the unit circle around zero (so ), a solver is A-stable iff its estimate also as for fixed . For the EKF0/EKF1 the predictive mean obeys
and A-stability holds iff has eigenvalues in the unit circle (with steady-state gain ).
A-stability of EKF1/EKS1 (Theorem 39.8, Tronarp et al. 2019)
The EKF1 and EKS1 with a -times IWP prior are A-stable.
Proof sketch. Filtering theory (Anderson & Moore 1979) guarantees the steady-state gain exists and has eigenvalues in the unit circle for the EKF1; the EKS1 inherits this since smoothing and filtering means coincide as .
By contrast the EKF0 is not A-stable (Exercise 39.9): on its mean fails to converge to if is large enough. The EKS1’s A-stability was demonstrated on a very stiff Van-der-Pol ODE (Bosch, Hennig & Tronarp 2021).
Stability of the linear algebra (§39.2.2)
Gaussian inference reduces to matrix operations, exact up to rounding — except matrix inversions (of covariances). For the -times IWP prior,
whose entries span orders of magnitude ( to ), causing ill-conditioning for large . Two fixes (Krämer & Hennig 2020):
Re-scaled (Nordsieck-type) coordinates (Eq. 39.5)
Use with . The transformed matrices become scale-invariant:
so the condition number is independent of and can be precomputed across step sizes.
Square-root filtering: track the Cholesky factors of covariances rather than the covariances themselves. E.g. where is the upper-triangular QR factor of (with Cholesky factors of ) — obtained without ever assembling . Same complexity, better stability. Both tricks are in ProbNum.
Connection with classical solvers (§39.3)
EKF0 = explicit trapezoidal rule (Proposition 39.11, Schober–Särkkä–Hennig 2018)
The EKF0 with 1-times IWP prior and is equivalent to the explicit trapezoidal rule (Heun’s method). Its filtering means follow
Proof sketch. For the 1-times IWP with the Kalman gains reach a constant steady state for all ; the mean recursion is then -independent and reduces to the P(EC) implementation of the trapezoidal rule (Schober, Särkkä & Hennig 2019, Prop. 1).
EKF0 = third-order Nordsieck method (Theorem 39.13, Schober–Särkkä–Hennig 2018)
The EKF0 with 2-times IWP prior and , in its steady state , is a Nordsieck method of order 3. Initialised in steady state,
Proof sketch. Derive the steady-state gain ; insert it as the Nordsieck weight vector into Skeel (1979, Thm. 4.2), which gives global rate .
Remark. For this steady-state rate is , better than the of Thms. 39.3/39.7 — but only in steady state, reflecting the multistep-like information sharing between adjacent steps.
The Nordsieck vector is with — the first Taylor summands of . In these coordinates is the Pascal upper-triangle matrix , and the EKF0 mean recursion (39.16) has the structural form of a Nordsieck method (39.17) , with the Kalman gain in the role of the weight vector (but data-dependent, unlike the fixed classical ).
Examples
Why EKF0 is not A-stable (Exercise 39.9)
On the 1-D test ODE with : for any fixed the EKF0 filtering mean fails to converge to as once is large enough — the solver becomes unstable on stiff problems. This motivates preferring the EKF1/EKS1 (Thm. 39.8) whenever stiffness is a concern.
Information sharing (Exercise 39.14)
The trapezoidal-rule equivalence (39.12) uses both and , unlike Euler (, only ). This shows an ODE filter behaves like a multistep method, exploiting adjacent-step information for higher accuracy.
Connections
- Certifies the accuracy/calibration promised by ODE Filters and Smoothers; the IWP prior’s Taylor semantics come from Classical ODE Solvers as Regression.
- Steady-state equivalences realise the “classical solvers are posterior means” thesis rigorously.
- Grönwall/SDE machinery from Gauss-Markov Processes and SDEs.
See Also
- ODE Filters and Smoothers — the algorithms these theorems analyse (EKF0/1, EKS0/1, IEKS).
- Classical ODE Solvers as Regression — the flow-Taylor view underpinning the IWP prior and Nordsieck link.
- Perturbative ODE Solvers — an alternative whose mean-square convergence is rate .
- Further Topics in ODE Solvers — where these rates feed into inverse problems and BVPs.