Symplectic Gaussian Process Dynamics

Katharina Ensinger, Friedrich Solowjow, Michael Tiemann, Sebastian Trimpe

Introduction

In the quest to build AI that understands the physical world, a fundamental challenge persists: standard machine learning models often lack an inherent "knowledge" of physics. While they can fit curves accurately in the short term, they frequently violate basic physical laws, such as the conservation of energy or volume, when extrapolated over time.

A recent framework, Structure-preserving Gaussian Process Dynamics (SGPD) (also referred to as Symplectic Gaussian Process Dynamics), addresses this by embedding classical numerical integrators directly into the architecture of Gaussian Processes (GPs). This approach allows models to learn from data while strictly respecting the underlying geometry and invariants of physical systems.

The Problem: Numerical Drift in Discrete Modeling

When modeling dynamical systems—such as pendulums or planetary orbits—machine learning models typically predict the state at time $t+1$ given the state at time $t$. Mathematically, this often defaults to an explicit Euler method, the simplest form of numerical integration.

However, real-world systems are continuous, while sensors provide discrete data. Naive discretizations like Euler lead to "numerical drift." For instance, a simulated pendulum might erroneously gain energy, or a satellite might spiral inward because the model fails to preserve the "volume" of the phase space (symplecticity). While Gaussian Processes excel at handling uncertainty, they have traditionally lacked mechanisms to enforce these crucial physical constraints.

Methods: Structure-preserving Gaussian Process Dynamics

The core innovation of SGPD is moving beyond one-step predictions by embedding Runge-Kutta (RK) schemes into the GP framework.

The SGPD graphical model illustrates how implicit integration steps are treated as layers within a variational inference scheme.

The methodology consists of several key components:

  1. Implicit Layers for GPs: High-quality integrators are often "implicit," meaning the next state is defined by an equation depending on itself. SGPD treats these as "implicit layers," adapted for probabilistic GP modeling.
  2. Decoupled Sampling: To maintain tractability, the authors use decoupled sampling. This enables sampling globally consistent functions from the GP posterior, allowing the model to solve implicit integration equations during both training and prediction.
  3. Variational Inference: The process is integrated into a sparse variational inference framework. By using "inducing points" (representative pseudo-data), the model scales efficiently to larger datasets.
  4. Differentiable Solvers: Training via gradient descent is made possible by using the Implicit Function Theorem to backpropagate through the numerical solver, enabling the model to learn physics-preserving parameters directly.

Evaluation and Benchmarks

The authors evaluated SGPD on four classic physical benchmarks:

  • Ideal Pendulum: A standard separable Hamiltonian system.
  • Two-Body Problem: Gravitational interaction between two masses.
  • Non-separable Hamiltonian System: A complex system where kinetic and potential energy are coupled.
  • Rigid Body Dynamics: A system with a quadratic geometric constraint (angular momentum conservation).

Key Results

SGPD was compared against standard Euler-based GPs and Hamiltonian Neural Networks (HNNs).

  • Accuracy: SGPD consistently achieved the lowest $L^2$ (mean squared) error across all tasks. In the rigid body task, SGPD reached an error of 0.046, significantly outperforming the Euler-based GP's 0.073.
  • Energy Conservation: In non-separable Hamiltonian tasks, SGPD’s energy error ($9 \cdot 10^{-4}$) was an order of magnitude lower than both the Euler-GP and the HNN ($10^{-3}$).
  • Structure Preservation: Qualitative analysis demonstrates that while Euler-based models tend to "spiral out" or drift from the true physical path, SGPD rollouts remain perfectly aligned with expected orbits and manifolds.
In the rigid body task, SGPD preserves the quadratic invariant over time, whereas the Euler-based GP exhibits significant numerical drift.

Conclusion and Future Directions

By forcing the GP to operate through a symplectic or geometric integrator, SGPD bakes physical inductive biases into the model's core. This bridges the gap between stable classical numerics and the flexible learning capabilities of machine learning.

While powerful, the method currently requires prior knowledge of the system's type (e.g., Hamiltonian) to select the appropriate integrator. Future work may focus on extending this framework to systems with control inputs for robotics and handling partially observed states through latent state-space models.

Paper Citation: Ensinger, K., Solowjow, F., Ziesche, S., Tiemann, M., & Trimpe, S. (2022). Structure-preserving Gaussian Process Dynamics. arXiv:2102.01606v3.

Summary updated

BibTeX
@inproceedings{ensinger2022symplectic,
  author = {Katharina Ensinger and Friedrich Solowjow and Michael Tiemann and Sebastian Trimpe},
  title = {{Symplectic Gaussian Process Dynamics}},
  booktitle = {ECML/PKDD},
  year = {2022},
  url = {https://openreview.net/forum?id=o3yeKWdyE1},
}
Figure