Classical ODE Solvers as Regression

Summary

Every classical ODE solver extrapolates a numerical estimate forward using the flow map , whose Taylor expansion in the step it matches to some order . Both single-step (Runge–Kutta) and multistep (Nordsieck) methods amount to iterated Hermite interpolation of the flow using derivative data . Stripping away the artificial “flow map” bookkeeping reveals that solving an IVP is nothing but regression on the data . Classical solvers are the (uncertainty-unaware) posterior means of such Gaussian regressions; adding calibrated noise to their Hermite extrapolation yields uncertainty-aware probabilistic solvers.

Overview

This note substantiates the thesis that classical solvers are posterior means of a Gaussian regression procedure. It builds the bridge from the “physics” view of an ODE solver (following the flow of a force field) to the statistical view (regression on derivative data), preparing the rigorous state-space model of ODE Filters and Smoothers.

Main Content

The flow map and forward extrapolation

Any estimate comes with a derivative estimate

which supports a local linearisation (Euler’s method). Symbols: numerical estimate; the derivative estimate from evaluating ; the step size.

After the first step a solver follows a new IVP with the same but initial value , motivating the flow map

where solves the IVP with . Standard solvers extrapolate by approximating as cheaply and precisely as possible.

Order conditions = matching Taylor summands of the flow

Taylor series of the flow (Eq. 37.3–37.4)

where the iterated coefficients are recursively defined by , , and

with the elementwise product. Crucially , i.e. the -th Taylor summand is the -th total time-derivative of the flow.

Order of a classical solver (§37)

A solver that matches the first summands of Eq. (37.3) has local convergence rate and, after steps, global rate ; it is called a th-order method.

A th-order single-step solver (e.g. th-order Runge–Kutta) matches the first derivatives of at , i.e. it locally performs Hermite interpolation of with data

Single-step methods collect additional Taylor information at sub-steps of ; multistep methods reuse information from previous steps. Both build a better polynomial extrapolation of ; Nordsieck (1962) already observed that all such methods are equivalent to finding an approximating polynomial.

Uncertainty-unawareness: the false data assignment

Because , classical solvers pretend the flow-map data (37.5) relate to the true solution rather than to the estimate . Removing the flow map gives the data set actually used:

Falsely treating the current estimate as the true (rather than re-conditioning on the exact solution) is the property called uncertainty-unawareness — a defining trait of classical numerics (Kersting 2020). It is overly optimistic: iterating Hermite interpolation on the true (but inaccessible) data would give a strictly more accurate regression, numerically demonstrated for RK4 in Fig. 37.2.

The regression formulation

Two observations unify single-step and multistep methods:

  1. Whenever an estimate is available, we may pool derivative data across all visited times .
  2. Even the higher-derivative data are artificial constructs built from the single principle (37.1); a regression method that aggregates information at least as skillfully can treat any evaluation as data on .

Discarding the artificial higher-derivative bookkeeping, on a discretisation , approximating is nothing but a regression on

The apparent circularity (needing to define the regression whose goal is ) is resolved because Gauss–Markov regression proceeds sequentially in time: at each a predictive mean conditioned on the preceding steps is available. The global regression (37.7) is revealed to the solver one step at a time, as a time series. Performing Bayesian regression on a state-space model realising (37.7) yields the ODE filters and smoothers.

Classical vs probabilistic: what changes

For a well-calibrated classical solver the point estimate lies close to the true solution — and equals the mean/mode of the corresponding Gaussian probabilistic solver. The probabilistic solver additionally returns a posterior whose width (standard deviation) is meaningfully related to the true error, and, in the nonparametric (perturbative/particle) case, whose samples cover the whole distribution of numerically possible trajectories (e.g. both branches of a bifurcation).

Examples

Euler's method as first-order Taylor / regression

Euler uses a first-order Taylor expansion to approximate . By Taylor’s theorem the local error is and, after steps, the global error is : a first-order method (). It is the purest instance of iterating the single principle (37.1).

RK4 vs iterated Hermite interpolation (Fig. 37.2)

On a linear ODE , , and on the Van-der-Pol oscillator, comparing fourth-order Runge–Kutta (which uses the inaccessible estimate-based data ) against iterated fourth-order Hermite interpolation on the exact data (37.6) shows the latter attains a lower maximal error. This quantifies the price of uncertainty-unawareness: classical solvers throw away information by mislabelling estimates as truth.

A brief history (§37.1)

Skilling (1991) first proposed treating ODEs as GP regression. Hennig & Hauberg (2014) generated data by evaluating at the posterior mean — the lineage of ODE filters (reproducing Runge–Kutta: Schober, Duvenaud & Hennig 2014; Kalman speed-up: Schober, Särkkä & Hennig 2019; rigorous SSM: Tronarp et al. 2019). Chkrebtii et al. (2016) evaluated at Gaussian samples — the lineage of perturbative solvers (Conrad et al. 2017 modelled local error as scaled random variables added after each step).

Connections

See Also