Exact Inference for Continuous-Time Gaussian Process Dynamics

Katharina Ensinger, Nicholas Tagliapietra, Sebastian Ziesche, Sebastian Trimpe

Introduction

Modeling physical systems often requires learning the underlying continuous-time dynamics from discrete, sometimes irregularly sampled observations. While Gaussian Processes (GPs) are a popular choice for modeling such dynamics due to their non-parametric nature and robust uncertainty quantification, standard approaches typically rely on a "one-step-ahead" prediction model. Mathematically, this corresponds to an explicit Euler method, a first-order numerical approximation that often fails to capture complex physical behaviors accurately over time.

The Limitations of Euler-Centric GP Dynamics

The traditional approach of training a GP to predict $x_{n+1}$ from $x_n$ (i.e., $x_{n+1} = x_n + h f(x_n)$) is inherently limited. This first-order approximation leads to significant inaccuracies over long-term trajectories, struggles with irregular sampling intervals, and frequently violates physical constraints like energy conservation. While higher-order integrators like Runge-Kutta offer better precision, they typically require evaluating the dynamics at intermediate, unobserved time steps. This requirement breaks the tractability of standard GP inference, forcing researchers to use approximate variational methods that sacrifice the mathematical guarantees of exact GPs.

Proposed Framework: Exact Inference with Higher-Order Integrators

This work introduces a framework for learning continuous-time ordinary differential equations (ODEs) using GPs with exact inference. The key innovation lies in selecting specific classes of numerical integrators that only evaluate dynamics at known trajectory points, thereby keeping the GP mathematics tractable.

Multistep and Taylor Integrators

The authors leverage two primary classes of integrators:

  1. Multistep Integrators: Methods like Adams-Bashforth (AB) or Backward Differentiation Formula (BDF) use a history of past states to predict future ones. Because they only require evaluations at the discrete time steps where data is available, they are perfectly suited for exact GP regression.
  2. Taylor Integrators: These model the state using Taylor expansions. By modeling each term in the series with independent GPs, the framework can handle varying step sizes more effectively than fixed-history multistep methods.
Overview of the exact GP inference framework for continuous-time dynamics.

The framework automatically derives tailored kernels based on the chosen integration scheme. Furthermore, it incorporates Decoupled Sampling (DS), allowing for the generation of consistent function samples from the GP posterior. These samples can then be integrated using high-fidelity adaptive solvers (like RK45) at test time, effectively treating the learned model as a standard continuous ODE.

Experimental Evaluation

The performance of higher-order GP dynamics was evaluated across several benchmarks, including simulated oscillators and real-world motion data.

Accuracy and Robustness

In the Damped Harmonic Oscillator (DHO) benchmark, increasing the integration order led to dramatic improvements. An Order-3 BDF method achieved an MSE of 0.006, a massive improvement over the 0.750 MSE of the standard Euler (AB1) baseline.

For systems with irregular sampling, such as the Van-der-Pol (VDP) oscillator, Taylor integrators proved particularly robust. As shown in the results, higher-order Taylor expansions significantly outperform their first-order counterparts in both time-series prediction and phase-space reconstruction.

Comparison of Taylor 1 (standard Euler-like) and Taylor 3 integrators on an oscillatory system. The higher-order method (red) tracks the ground truth (black) much more accurately than the first-order baseline (blue), especially in the phase plot.

Real-World Application

On a real mass-spring system, the AB3 method reduced error by two orders of magnitude compared to the Euler baseline (MSE 0.007 vs 0.502). While the benefits were less pronounced in high-noise environments like Human Motion Capture (MoCap) data—where noise can mask the precision of the integrator—the overall trend confirms that "order matters" when modeling physical reality.

Conclusion

By moving beyond the Euler-centric paradigm, this framework enables the learning of high-fidelity continuous-time ODEs while retaining the benefits of exact GP inference. The ability to handle irregular sampling and provide rigorous uncertainty bounds makes this approach a powerful tool for scientific modeling and model-based reinforcement learning. Future work will explore the mathematical dependencies between Taylor series terms to further refine the kernel designs.

Summary updated

BibTeX
@inproceedings{ensinger2024exact,
  author = {Katharina Ensinger and Nicholas Tagliapietra and Sebastian Ziesche and Sebastian Trimpe},
  title = {{Exact Inference for Continuous-Time Gaussian Process Dynamics}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i11.29074},
}
Figure