Learning Dynamics Models with Stable Invariant Sets

Naoya Takeishi, Yoshinobu Kawahara

Introduction: The Stability Challenge in Neural Dynamics

Modeling the temporal evolution of physical systems—from the rhythmic beating of a heart to the complex fluid dynamics over an aircraft wing—is a fundamental task in science and engineering. While deep learning has revolutionized short-term prediction, standard neural networks often struggle with long-term stability. They frequently exhibit "drift," where predictions eventually diverge to infinity or decay to zero, even when the underlying physical system is known to settle into a stable, repeating behavior.

Existing "provably stable" machine learning techniques typically focus on equilibrium points—states where a system comes to a complete rest. However, many real-world phenomena are characterized by invariant sets, such as limit cycles (stable oscillations) or line attractors. This paper introduces a novel framework that guarantees neural networks will settle into these complex stable structures by design.

Methodology: Embedding Stability via Latent Primitive Shapes

The core innovation lies in a five-step pipeline that bakes mathematical stability directly into the model architecture. Instead of forcing a network to learn a complex attractor directly in the high-dimensional state space, the authors leverage the concept of topological equivalence.

The proposed framework maps complex dynamics in state space $\mathcal{X}$ to a latent space $\mathcal{Z}$ where stability and invariance are enforced on a primitive shape $\tilde{S}$.
  1. Learnable Invertible Transform: An invertible neural network (e.g., a Normalizing Flow) maps the state space $\mathcal{X}$ to a latent space $\mathcal{Z}$.
  2. Base Dynamics: A standard network predicts the raw movement in this latent space.
  3. Ensuring Stability: Using a Lyapunov-based approach, the model defines a "primitive shape" (like a unit sphere) in $\mathcal{Z}$. The predicted movement is modified to ensure trajectories are mathematically forced toward this shape.
  4. Ensuring Invariance: A second modification ensures that once a trajectory reaches the stable shape, it cannot escape. This distinction between stability (returning to a set) and invariance (staying within it) is a key theoretical contribution.
  5. Projecting Back: The latent state is mapped back to the original space via the inverse transform $\phi^{-1}$.

By learning the geometry through the invertible mapping while fixing the topology in the latent space, the model remains highly flexible yet physically consistent.

Experimental Results: Beyond Equilibrium Points

The researchers evaluated their framework against "vanilla" neural network models across several benchmark systems, including synthetic 2D attractors, the nonlinear Van der Pol oscillator, and high-dimensional fluid dynamics (Cylinder Wake).

Phase portrait of the Van der Pol oscillator showing the proposed model (dashed green) closely following the ground truth (blue) compared to a vanilla model (dotted red).

In the Van der Pol oscillator test, the proposed model maintained high accuracy over hundreds of steps, whereas baseline models quickly diverged from the true limit cycle. In fluid dynamics simulations, the model successfully captured periodic vortex shedding—a complex repeating pattern—where standard models produced physically impossible results. A significant advantage of this approach is its ability to learn from "off-attractor" data, correctly predicting the final stable behavior even if the training data only captures the system's settling phase.

Conclusion and Future Directions

This work demonstrates that stability and invariance can be enforced in deep learning models without sacrificing expressivity. By prioritizing topology over exact geometry, the framework allows neural networks to learn complex real-world attractors with rigorous mathematical guarantees.

Future work aims to extend this deterministic framework to stochastic systems, where noise is a factor. Additionally, the authors suggest that applying these principles to "input-to-state stability" could significantly impact the field of robotics and automated control systems, where safety and long-term stability are paramount.

Summary updated

BibTeX
@inproceedings{takeishi2021learning,
  author = {Naoya Takeishi and Yoshinobu Kawahara},
  title = {{Learning Dynamics Models with Stable Invariant Sets}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2021},
  doi = {10.1609/aaai.v35i11.17176},
}
Figure