Skip to main content
Back

Aix-Marseille's DPDSR Learns Noisy Real-World Dynamics With Half the Variables

A new VAE-based method jointly encodes both system states and noise, unlocking compact, interpretable stochastic models of complex real-world dynamics

Pro

Paper, Full Access
  • New method: DPDSR uses two encoders -- one for system states, one for noise -- enabling principled multi-step stochastic rollout from posterior noise samples.
  • Key advantage: Learns compact, low-dimensional (5-8 state) models analyzable with standard dynamical systems tools, unlike high-dimensional RNN baselines.
  • Benchmarks: Tested on 6 datasets (Lorenz, cell cycle, double well, chaotic RNN, rat neuron, ECG); best or competitive on all, especially noise-driven systems.
  • Stochastic-deterministic dial: Teacher forcing interval tau controls whether the model learns chaotic attractors or noise-driven fixed points -- and KL divergence reveals which regime it chose.
  • Main limitation: Selecting the optimal tau requires a costly parameter sweep; adaptive schemes risk converging to the wrong regime.
  • Code: No public repository linked in the paper at time of writing; method is from the Virtual Brain Twin Project at Aix-Marseille University.

Most real-world signals -- a neuron firing, a heart beating, a chaotic chemical reaction -- are not purely deterministic. They are shaped by noise, and that noise is not just a nuisance to be filtered out: it is part of the story. A new paper from researchers at Aix-Marseille University introduces Double Projection Dynamical System Reconstruction (DPDSR), a method that learns stochastic models of dynamical systems from observed time series data, and does so in a way that is both more principled and more compact than prior approaches.

The problem with learning from noisy data

Dynamical System Reconstruction (DSR) is the task of fitting a mathematical model to time series data such that the model reproduces not just individual trajectories, but the long-term statistical behavior of the system. Think of it as learning the equations of motion from observations alone. Compared with the related task of time series prediction, DSR focuses on the long-term dynamics of the trained system, an interest in the interpretable structure of the variables and the latent space, and reasoning using tools from dynamical systems theory.

Many influential DSR approaches assume that the underlying dynamics is deterministic. Finding a deterministic model that can accurately predict future behavior, matches the long-term properties observed in the data, and correctly generalizes to new conditions can be viewed as the ultimate goal of DSR. But this assumption breaks down constantly in practice. Finding the deterministic system underlying the data is often infeasible due to the complexity of the generating process or limited experimental data. When a system is genuinely noise-driven -- like a neuron responding to a random stimulus, or a bistable chemical system that randomly flips between two states -- forcing a deterministic model onto it produces a model that mimics randomness through artificial chaos, not through actual noise.

The standard alternative is the family of Dynamical Variational Autoencoders (DVAEs) -- a class of VAE-based models adapted for time series. DVAEs merge probabilistic state space models with the framework of variational autoencoders for time series data. The key components are an encoder that maps observations to latent variables, a neural-network-parameterized state space model, a decoder back to observations, and training via the Evidence Lower Bound (ELBO). The ELBO is a standard VAE objective that maximizes a lower bound on the log-likelihood of the data, balancing reconstruction accuracy against the complexity of the latent representation.

The core tension: noise in multi-step rollout

Here is where existing DVAE methods run into trouble. When you want to simulate a stochastic model forward for many steps -- which is essential for capturing long-term behavior -- you need to supply noise at each step. But where does that noise come from? Existing approaches either use only a single-step prediction, perform multi-step rollout using deterministic dynamics, or sample the noise in multi-step rollout from the prior distribution of the noise. Sampling from the prior is essentially guessing: the model has no information about what noise actually drove the system at each time step. The authors argue this is a fundamental limitation, especially for high-dimensional integrals involved in multi-step rollout.

The insight behind DPDSR is simple but powerful: encode the noise too. Instead of one encoder (for system states), train two encoders -- one for the system states and one for the noise time series. Then, during multi-step rollout, use samples from the posterior distribution of the noise, which is informed by the actual observations. The double projection method estimates both the system state trajectories and the noise time series from data. This approach naturally allows multi-step system evolution and learning models with a comparatively low-dimensional state space.

How it works, step by step

The generative model at the heart of DPDSR is a discrete-time stochastic system:

# Generative model (simplified pseudocode)
z_t = tanh(f(z_{t-1}) + B * epsilon_t)   # state update with noise injection
x_t = g(z_t) + sigma_eta * eta_t          # observation with additive noise
# f is a 2-layer MLP with residual connection
# g is a 2-layer MLP (observation function)
# epsilon_t is the system noise (1D in most experiments)
# eta_t is observation noise

The encoding pipeline runs in two sequential steps:

  1. State encoder: A WaveNet-based dilated convolutional network reads the full observed time series and produces a deterministic estimate of the system state trajectory. WaveNet uses exponentially increasing receptive fields (dilations 1, 2, 4, 8, ..., 64) to efficiently capture long-range temporal context.
  2. Noise encoder: A second WaveNet block, followed by an autoregressive LSTM, reads both the observations and the estimated states to produce the posterior distribution over the noise time series at each step.

Training uses teacher forcing -- a technique where, every tau steps, the model's simulated state is replaced by the encoder's estimate of the true state. This prevents error accumulation during long rollouts. Every tau-th step, the state of the dynamical system is set to the estimated state. The loss combines reconstruction of observations, reconstruction of estimated states, and a KL divergence term penalizing the noise posterior from drifting too far from a standard normal prior.

The method also trains an auxiliary causal encoder in parallel -- one that only looks at past observations -- specifically for use during prediction tasks, where peeking at the future would be cheating.

Six benchmarks, two regimes

The method is evaluated on six test problems, including models of both deterministic chaos and noise-driven dynamics, and experimental data. The benchmarks span a wide range of difficulty:

  • Lorenz system: The classic 3D chaotic attractor. Only one variable observed.
  • Cell cycle: A 6D biochemical oscillator model exhibiting deterministic chaos. Only one variable observed.
  • Double well: A bistable stochastic system that randomly flips between two stable states. Only the most filtered-down variable observed.
  • Chaotic RNN: A 1000-neuron randomly connected network in a chaotic regime. Only one neuron observed -- a nearly impossible reconstruction problem for deterministic methods.
  • Neuron: Real voltage recordings from a rat pyramidal neuron driven by an unknown random current stimulus.
  • ECG: A real electrocardiogram signal from a healthy adult.

Reconstruction quality is measured across three axes: distribution distance (Wasserstein distance between the spatial distributions of real and generated data), spectral distance (Hellinger distance between power spectra), and 20-step prediction error. For ECG, the variability of inter-beat intervals is also measured.

The results tell a clear story. For datasets generated by low-dimensional deterministic models (Lorenz and Cell cycle), deterministic models perform well. The stochastic DPDSR model is, however, competitive in all three measures. For the Double well, RNN, and Neuron datasets, where the time series are dominated by random or seemingly random effects on short time scales, the stochastic models show the best performance. The deterministic models have to approximate the random transitions through deterministic chaos. On ECG, only DPDSR and the multi-step RSSM variant successfully reproduce the natural variability in beat timing.

The stochastic-deterministic dial

One of the most interesting findings is what happens when you vary the teacher forcing interval tau. For smaller intervals, the trained models contain chaotic attractors and do not rely on the noise. As the interval increases, the models transition into the regime of noise-driven dynamics with stable fixed points. In other words, tau acts as a dial between deterministic chaos and genuine stochasticity. The KL divergence of the noise posterior from the prior serves as a diagnostic: when it is near zero, the model ignores the noise encoder and relies on chaos; when it is large, the model is genuinely noise-driven.

This is a real conceptual contribution. The position of the optimal model can differ: it is located in the deterministic chaos regime for Lorenz and Cell cycle, or in the stochastic regime for Double well, RNN, Neuron, and ECG problems. The method automatically finds the right regime when the hyperparameter is tuned -- and it tells you, via the Lyapunov exponent and KL divergence, which regime the learned model lives in.

Limitations to know about

The authors are candid about the shortcomings. The biggest practical pain point is that finding the right tau requires a parameter sweep. Performing parameter sweeps across a range of values to find the best performing model, while robust, is computationally demanding. Results indicate that an adaptive scheme for tau might not be sufficient to converge to the optimally performing model. On most datasets, two attracting fixed points exist in the tau landscape -- one deterministic, one stochastic -- and an adaptive scheme may converge to the wrong one.

There are also architectural limitations. The current generative model uses a simple two-layer MLP with a single scalar noise input. The ability of a DSR method to robustly learn dynamics with diverse timescales is of great importance for many problems, and improvements could be made in this direction. Gated architectures like LSTMs and GRUs, or multi-timescale RNNs, are natural extensions the authors flag for future work. No code repository is currently linked in the paper.

Where this matters

The practical target audience for DPDSR is anyone who needs an interpretable, low-dimensional model of a noisy physical or biological process -- not just a black-box predictor. The prospects for applying dynamical systems theory in neuroscience are changing dramatically, with dynamical system reconstruction using recurrent neural networks offering the potential to directly infer a formal surrogate from an experimentally probed system. Cardiac modeling, neural population dynamics, climate subsystems, and biochemical oscillators are all natural targets. The low-dimensional state space is particularly valuable: with 5-8 state variables (versus the 24-32 hidden units needed by LSTM-based baselines), the learned attractor can actually be visualized and analyzed with standard tools from dynamical systems theory -- phase portraits, Lyapunov exponents, bifurcation diagrams.

The deeper contribution is the framing: rather than treating noise as a nuisance or as something to be sampled blindly from a prior, DPDSR treats the noise time series as a first-class latent variable to be inferred from data. That shift in perspective is what makes multi-step stochastic rollout tractable, and what lets the model sit comfortably anywhere on the spectrum between a fully deterministic chaotic system and a fully noise-driven one.