Disentangled Generative Models for Robust Prediction of System Dynamics

Stathi Fotiadis, Shunlong Hu, Mario Lino, Chris D. Cantwell, Anil A. Bharath, Bharath, Anil Anthony

Abstract

Deep neural networks have become increasingly of interest in dynamical system prediction, but out-of-distribution generalization and long-term stability still remains challenging. In this work, we treat the domain parameters of dynamical systems as factors of variation of the data generating process. By leveraging ideas from supervised disentanglement and causal factorization, we aim to separate the domain parameters from the dynamics in the latent space of generative models. In our experiments we model dynamics both in phase space and in video sequences and conduct rigorous OOD evaluations. Results indicate that disentangled VAEs adapt better to domain parameters spaces that were not present in the training data. At the same time, disentanglement can improve the long-term and out-of-distribution predictions of state-of-the-art models in video sequences.

Introduction

Modeling complex dynamical systems—ranging from atmospheric patterns to robotic control—is a cornerstone of modern deep learning. However, standard neural architectures often struggle with two critical issues: long-term stability and out-of-distribution (OOD) generalization.

Conventional models typically treat system dynamics as a "black box," conflating fundamental physical laws with specific environmental parameters, such as the mass of an object or the length of a pendulum. This entanglement leads to overfitting; a model trained on a specific configuration often fails when the physical parameters change slightly. Furthermore, small errors in early predictions tend to compound, causing the model's output to diverge from reality over extended horizons. This work proposes a supervised disentanglement approach to isolate these fixed parameters from the evolving dynamics, enhancing both robustness and stability.

Methodology: Supervised Disentanglement

The authors introduce Supervised Disentangled Generative Models, specifically the SD-VAE for state-space data and SD-RSSM for image sequences. The core innovation lies in modifying the standard Variational Autoencoder (VAE) objective to enforce a structured latent space.

Architecture of the SD-VAE model showing the supervised disentanglement of latent variables $z_k$ with system parameters $\xi_k$.

In a standard VAE, the latent space is an unstructured compressed representation. In the SD-VAE, a specific subset of latent variables ($z_1, ..., z_k$) is explicitly forced to correspond to the ground-truth physical parameters ($\xi_1, ..., \xi_k$) of the system. This is achieved by adding a supervised regression loss to the training objective. By requiring the model to accurately predict physical parameters from a designated part of its latent representation, the model is incentivized to separate the "factors of variation" (static parameters) from the "dynamics" (temporal motion).

Experimental Setup

The approach was evaluated on three classic dynamical systems across both phase-space (numerical) and observation-space (video) data:

  1. Simple Pendulum: Varying rod length.
  2. Lotka-Volterra: A predator-prey model with four interaction parameters.
  3. Planar 3-Body System: Gravitational dynamics of three masses.

To test generalization, the researchers established OOD-Easy and OOD-Hard datasets. These sets utilized parameter ranges entirely disjoint from the training data, forcing the models to generalize to physical configurations they had never encountered during training.

Results and Discussion

The disentangled models demonstrated significant performance gains over standard baselines. By explicitly pinning parameters to specific latent dimensions, the models moved beyond simple curve-fitting to a more robust understanding of the underlying physics.

Normalized MAE difference over 800 timesteps for the Pendulum, Lotka-Volterra, and 3-body systems, comparing Test-set, OOD-Easy, and OOD-Hard performance.

Key findings include:

  • Enhanced Accuracy: The SD-VAE reduced prediction error by over 30% in the pendulum system compared to standard VAEs.
  • Long-Term Stability: While standard models often diverged quickly, SD-models maintained high accuracy for up to 800 steps—20 times the length of the input window. For instance, LSTMs completely failed on the Lotka-Volterra system, whereas SD-VAE remained stable.
  • OOD Generalization: In "OOD-Hard" scenarios, the disentangled models significantly outperformed baselines, proving that parameter separation provides a powerful inductive bias for generalizing to unseen physical regimes.
  • Interpretable Latents: Analysis revealed a high linear correlation between supervised latents and actual physical parameters, suggesting the model learns a structured, interpretable map of the physical world rather than just memorizing values.

Conclusion and Future Work

Supervised disentanglement offers a promising path toward more reliable neural dynamics models. By separating static system properties from temporal evolution, models achieve superior long-term stability and OOD performance.

A current limitation is the requirement for ground-truth parameter labels during training, which may be difficult to obtain for real-world systems with unknown friction or mass. Future research will explore semi-supervised approaches to reduce labeling costs and investigate the application of these methods to higher-dimensional, chaotic systems like fluid dynamics.

Summary updated

Abstract

Deep neural networks have become increasingly of interest in dynamical system prediction, but out-of-distribution generalization and long-term stability still remains challenging. In this work, we treat the domain parameters of dynamical systems as factors of variation of the data generating process. By leveraging ideas from supervised disentanglement and causal factorization, we aim to separate the domain parameters from the dynamics in the latent space of generative models. In our experiments we model dynamics both in phase space and in video sequences and conduct rigorous OOD evaluations. Results indicate that disentangled VAEs adapt better to domain parameters spaces that were not present in the training data. At the same time, disentanglement can improve the long-term and out-of-distribution predictions of state-of-the-art models in video sequences.
BibTeX
@inproceedings{fotiadis2021disentangled,
  author = {Stathi Fotiadis and Shunlong Hu and Mario Lino and Chris D. Cantwell and Anil A. Bharath and Bharath, Anil Anthony},
  title = {{Disentangled Generative Models for Robust Prediction of System Dynamics}},
  booktitle = {International Conference on Learning Representations},
  year = {2021},
  url = {https://openreview.net/forum?id=vpiOnyOBTzQ},
}
Figure