Learning dynamics on invariant measures using PDE-constrained optimization

Jonah Botvinick-Greenhouse, Robert Martin, Yunan Yang

Abstract

We extend the methodology in [Yang et al., 2023] to learn autonomous continuous-time dynamical systems from invariant measures. The highlight of our approach is to reformulate the inverse problem of learning ODEs or SDEs from data as a PDE-constrained optimization problem. This shift in perspective allows us to learn from slowly sampled inference trajectories and perform uncertainty quantification for the forecasted dynamics. Our approach also yields a forward model with better stability than direct trajectory simulation in certain situations. We present numerical results for the Van der Pol oscillator and the Lorenz-63 system, together with real-world applications to Hall-effect thruster dynamics and temperature prediction, to demonstrate the effectiveness of the proposed approach.

Introduction: The Lagrangian vs. Eulerian Perspective

Most contemporary data-driven physics models, such as SINDy (Sparse Identification of Non-linear Dynamics) or Neural ODEs, adopt a Lagrangian perspective. These methods attempt to match the predicted path of a particle to observed data points sequentially. While effective for high-frequency, clean data, this approach faces significant hurdles in real-world applications:

  1. Slow Sampling: When data snapshots are infrequent (e.g., satellite observations), calculating accurate velocities between points becomes impossible.
  2. Chaos: In chaotic systems like the Lorenz attractor, infinitesimal errors in initial conditions lead to exponential divergence, making point-by-point trajectory matching inherently unstable.
  3. Noise: Measurement noise is often amplified during derivative estimation, leading to model instability.

To overcome these limitations, we propose shifting to an Eulerian perspective. Rather than tracking individual trajectories, we focus on the invariant measure—the long-term statistical distribution of where the system's states reside in phase space.

Comparison of the proposed method against SINDy and Neural ODEs for the Van der Pol oscillator with slow sampling.

Methodology: PDE-Constrained Optimization

Our core innovation involves treating the learning of dynamics as a PDE-constrained optimization problem. We utilize the Fokker-Planck equation, a partial differential equation (PDE) that describes the evolution of a probability density under the influence of drift (velocity field) and diffusion (noise).

The Forward Model and Objective

We seek a velocity field $v(\theta)$ such that the steady-state solution of the Fokker-Planck equation matches the invariant measure of the observed data. By fitting the global statistics (the "shape" of the attractor) rather than specific paths, the model becomes significantly more resilient to noise and chaos.

Optimization and Regularization

To scale to high-dimensional models, we employ the adjoint-state method, allowing for efficient gradient calculation regardless of parameter count. We also implement "teleportation" (random restarts) and artificial diffusion to ensure the PDE has a unique, stable solution during training, preventing the optimization from stalling in local minima.

The computed steady state solution to the Fokker-Planck equation for decreasing values of grid spacing Δx.

Experimental Results

Synthetic Benchmarks

On the Van der Pol Oscillator, traditional Lagrangian methods failed when sampling frequencies dropped to 0.25 Hz, yielding errors between 1.8 and 3.5. In contrast, our proposed method maintained a low error of approximately 0.06. Similarly, for the Lorenz-63 System, our approach successfully reconstructed the iconic butterfly attractor despite the system's inherent chaos.

Real-World Applications

  • Hall-Effect Thruster (HET): We applied the method to high-speed plasma propulsion data. Using time-delay embedding, we reconstructed the "breathing mode" dynamics, demonstrating the method's utility for complex engineering systems.
  • Ithaca Temperature Data: Using 14 years of weekly rolling temperature averages, the model's predicted uncertainty bands accurately captured seasonal fluctuations and successfully bounded a testing year not seen during training.

Key Insights

  • Robustness of Statistics: While individual trajectories are sensitive, the invariant measure is remarkably stable. Fitting the shape of the attractor provides a more reliable foundation for modeling.
  • Built-in Uncertainty: Because the model is based on a probability density PDE, it naturally provides Uncertainty Quantification (UQ) for its forecasts.
  • Time Independence: The method does not strictly require precise timestamps for every data point, making it ideal for "found" datasets where temporal metadata may be missing or unreliable.

Limitations and Future Work

While effective for 2D and 3D systems, solving PDEs on a grid faces the "curse of dimensionality." Future research will explore mesh-free architectures to scale to higher-dimensional systems. Additionally, while we currently assume a known diffusion coefficient, future iterations will aim to learn the diffusion tensor $\Sigma(x)$ simultaneously with the velocity field.

Summary updated

BibTeX
@inproceedings{botvinickgreenhouse2023learning,
  author = {Jonah Botvinick-Greenhouse and Robert Martin and Yunan Yang},
  title = {{Learning dynamics on invariant measures using PDE-constrained optimization}},
  booktitle = {Chaos},
  year = {2023},
  doi = {10.1063/5.0149673},
}
Figure