Multimodal Teacher Forcing for Reconstructing Nonlinear Dynamical Systems

Manuel Brenner, Georgia Koppe, Daniel Durstewitz

TL;DR

Reconstructing the governing equations and attractor geometries of chaotic dynamical systems from multimodal, non-Gaussian time series (like counts and ordinal ratings) has long been bottlenecked by diverging gradients and non-invertible observation models. The authors propose MVAE-TF, which pairs a tractable recurrent neural network (the dendritic PLRNN) with a Multimodal Variational Autoencoder. By using the MVAE to translate mixed data types into a shared latent space, it generates sparse teacher forcing signals that keep chaotic RNN training stable, achieving state-of-the-art reconstructions even from purely discrete data.

What Problem Does This Paper Address?

In science and engineering, many natural processes—from climate systems to brain dynamics—are nonlinear, chaotic dynamical systems (DS). A primary goal of scientific machine learning is DS reconstruction: discovering a model that reproduces not just short-term forecasts, but the underlying invariant geometric (attractor shapes) and temporal properties of the true system.

However, two major obstacles prevent standard models from achieving this:

  1. The Exploding and Vanishing Gradient Problem (EVGP): Training recurrent neural networks (RNNs) on chaotic time series with backpropagation through time (BPTT) leads to exponentially diverging gradients due to the sensitivity of chaotic trajectories. While sparse teacher forcing (resetting latent states at intervals informed by the system's Lyapunov exponent) mitigates this, it traditionally requires an easily invertible linear-Gaussian observation model.
  2. Non-Gaussian & Multimodal Data: Real-world measurements rarely consist of clean, continuous Gaussian signals alone. They frequently include discrete event counts (e.g., Poisson processes) or ordinal survey/behavioral scales. These non-continuous distributions cannot be directly inverted to pull the RNN back on track.

Methods

The authors introduce MVAE-TF, a framework built from three complementary components:

  • Dendritic PLRNN (dendPLRNN): A piecewise-linear RNN that serves as the latent dynamical process model ($z_t \in \mathbb{R}^M$). It supports process noise and provides analytical mathematical tractability (such as finding fixed points and cycles).
  • Multimodal Variational Autoencoder (MVAE): Encodes simultaneous heterogeneous time series into a shared latent representation ($\tilde{z}_t \in \mathbb{R}^K$) using convolutional neural networks (CNNs) to capture temporal context. It pairs this representation with modality-specific observation decoders:
  • Linear-Gaussian decoders for continuous data.
  • Cumulative logit link functions for ordinal data.
  • Poisson decoders with log-link functions for count data.
  • Multimodal Teacher Forcing: Rather than attempting to analytically invert non-Gaussian decoders, the MVAE’s inferred latent state $\tilde{z}_t$ acts as the teacher forcing target. At sparse forcing intervals $\tau$, the first $K$ states of the dendPLRNN are clamped to $\tilde{z}_t$, cutting off diverging gradients while allowing the system to run freely between forcing steps.
  • Unified Training Objective: The joint loss combines:
  • The MVAE reconstruction and entropy terms.
  • A consistency loss ($L_{\text{cons}}$) tying the dendPLRNN trajectory to the MVAE prior.
  • The log-likelihood of observations given the unforced dendPLRNN trajectory ($L_{\text{PLRNN}}$).
[ Multimodal Data (Gaussian, Ordinal, Counts) ]
                 │
                 ▼ (CNN Encoder)
        [ Common Latent Code z̃_t ]
                 │
         Sparse Teacher Forcing (every τ steps)
                 │
                 ▼
       [ dendPLRNN Latent Dynamics z_t ]
                 │
                 ▼ (Modality-Specific Decoders)
[ Reconstructed Observations (Gaussian, Ordinal, Counts) ]

Datasets

The authors evaluated the framework on synthetic multimodal data generated from three benchmark chaotic dynamical systems (integrated with 1% process noise):

  • Lorenz-63 System (3D): Classic chaotic atmospheric flow model.
  • Rössler System (3D): Continuous chaotic attractor model.
  • Lewis-Glass Network (6D): A chaotic Hopfield-like neural network model.

From each system, synthetic continuous trajectories (with 10% or 50% Gaussian observation noise), 7-category ordinal series, and Poisson count observations were sampled via observation models with randomized parameters.

Key Insights and Ideas

  • Decoupling Teacher Forcing from Observation Inversion: By delegating the fusion of heterogeneous data to an amortized variational encoder, sparse teacher forcing no longer depends on invertible linear observation models.
  • Longer Free Trajectory Rollouts Beat Step-by-Step VAEs: Sequential VAEs (SVAEs) enforce temporal consistency predominantly through 1-step-ahead prediction terms, limiting their ability to learn long-term orbital geometry. Sparse teacher forcing allows the model to evolve freely over intervals of length $\tau$, preserving long-term attractor structures.
  • Reconstructing Attractors from Purely Ordinal Data: Remarkably, the model demonstrated that continuous chaotic attractors can be faithfully recovered even when continuous data is completely absent. The underlying geometry was reconstructed solely from coarse, 7-category discrete variables (aligned post-hoc using PCA and a rigid rotation).

Key Results

Across all benchmark systems, MVAE-TF consistently outperformed Sequential VAEs (SVAE), Multiple Shooting (MS), and standard "Gaussianized" BPTT-TF:

  • Geometric Accuracy ($D_{\text{stsp}}$, state-space KL divergence, lower is better):
  • Lorenz-63 (10% noise): MVAE-TF reached $3.4 \pm 0.35$, compared to $11.1 \pm 0.6$ for SVAE and $4.5 \pm 1.5$ for Multiple Shooting.
  • Rössler (10% noise): MVAE-TF scored $1.45 \pm 0.71$, vs. $10.7 \pm 1.5$ for SVAE.
  • High-Noise Robustness: When Lorenz-63 continuous signals were degraded with 50% variance Gaussian noise, incorporating ordinal data dramatically rescued the reconstruction, dropping geometric divergence compared to unimodal training.
  • Reconstruction from Ordinal-Only Data:
  • On an 8-variable ordinal Rössler dataset, MVAE-TF achieved a $D_{\text{stsp}}$ of $7.9 \pm 0.8$ (and an ordinal prediction error of $0.093 \pm 0.007$), whereas SVAE achieved only $11.5 \pm 1.3$ (OPE: $0.39 \pm 0.02$).

Limitations and Future Work

  • Hyperparameter Tuning for $\tau$: For continuous systems, the forcing interval $\tau$ can be set directly using the maximal Lyapunov exponent. However, for non-Gaussian/discrete data, Lyapunov exponents cannot be calculated readily, requiring grid search.
  • Encoder Fusion Architectures: The current encoder simply concatenates modalities into CNNs; adopting Mixture-of-Experts (MoE) or Product-of-Experts (PoE) encoders could yield richer joint representations.
  • Loss Balancing: Total loss components are currently unweighted; applying adaptive loss-weighting strategies could improve training stability and convergence.
  • Theoretical Limits: The minimum number and resolution of discrete measurements required to guarantee topological recovery of a continuous attractor remains an open theoretical question.

Summary updated

BibTeX
@inproceedings{brenner2023multimodal,
  author = {Manuel Brenner and Georgia Koppe and Daniel Durstewitz},
  title = {{Multimodal Teacher Forcing for Reconstructing Nonlinear Dynamical Systems}},
  booktitle = {MLmDS @ AAAI},
  year = {2023},
  url = {https://openreview.net/forum?id=-tXAVAU88o},
}

Loading related content...

Figure