TL;DR
Real-world time series—like human motion or shifting weather—often jump abruptly between distinct rules of behavior, a phenomenon modeled by Switching Dynamical Systems. While deep learning can fit these complex trajectories, it usually cannot guarantee identifiability—meaning the hidden states and rules a model learns might be arbitrary math rather than the true underlying mechanics. This paper establishes end-to-end identifiability for flexible, recurrent switching systems and introduces $\Omega$SDS, an exact-likelihood estimator that cleanly untangles hidden dynamics and predicts the future without sacrificing accuracy.
What Problem Does This Paper Address?
Imagine watching a video of a ball bouncing inside a box. Its continuous position changes smoothly until it hits a wall, triggering a discrete "switch" into a new trajectory. Switching Dynamical Systems (SDSs) capture this interplay using continuous latent states alongside discrete regime switches. Crucially, notice that the switch isn't random; it depends on the ball's position. When past continuous states feed back into the discrete switching probabilities, the system is called recurrent (rSDS).
If we want to use deep generative models to discover true scientific or behavioral mechanisms from raw data, we need identifiability: a mathematical guarantee that the data uniquely determines the latent states and switching rules (up to trivial permutations or scalings). Historically, researchers faced a strict "no free lunch" trade-off: you could either use flexible nonlinear latent transitions with restricted observation mappings (like piecewise-linear functions), or allow general invertible mappings while forcing the latent dynamics to be simple, stationary, and autonomous (non-recurrent).
Furthermore, even with theoretical guarantees on paper, most nonlinear SDSs are trained as Variational Autoencoders (VAEs). VAEs optimize an approximation (the ELBO) rather than the exact data likelihood, introducing an "approximation gap" that blurs latent recovery in practice.
Methods
The authors tackle both the theoretical bottleneck and the practical estimation gap:
- Three-Stage Identifiability Theory: The authors prove end-to-end identifiability for rSDSs equipped with nonlinear Gaussian autoregressive latent transitions, state-dependent (recurrent) Markov switches, and general invertible emissions (differentiable, bijective mappings that pair latent states $z_t$ with independent exogenous noise $\varepsilon_t$ to generate observations $x_t$). First, they prove the continuous latents are identifiable up to an affine transformation. Next, they show the recurrent switching rules and transitions are identifiable up to regime permutations (including recovering the latent dimension $m$ and number of regimes $K$). Finally, by leveraging diverse regime-dependent noise variances, they collapse the remaining affine ambiguity down to simple permutation and scaling.
- $\Omega$SDS (Exact Likelihood via Normalizing Flows): Instead of a VAE, the authors propose $\Omega$SDS, a flow-based estimator. Using normalizing flows (specifically TarFlow with invertible LU mixing layers for vector data, and a Glow-inspired multi-scale flow for videos), $\Omega$SDS maps observations $x_t$ invertibly back into latent states $z_t$ and noise $\varepsilon_t$. Because this mapping is exact, the model can compute exact marginal log-likelihoods via the change-of-variables formula. The latent rSDS dynamics are then optimized directly via gradient ascent using Expectation-Maximisation (employing standard forward-backward recursions), with PCA-based initialization to prevent regime collapse early in training.
Datasets
- Synthetic Time Series: Controlled numerical benchmarks (following prior iSDS setups) with ground-truth regimes and piecewise-linear emissions, evaluated in both noiseless ($n=m$) and noise-augmented ($n=5m$) settings across increasing latent dimensions ($m \in \{3, 5, 10, 20\}$).
- 2D Bouncing Ball Videos: A custom synthetic video benchmark ($10\text{k}$ noisy $32 \times 32$ colored videos of length $T=64$) where a ball moves in one of four diagonal velocity regimes and switches direction upon colliding with walls—explicitly testing recurrent state-to-switch feedback.
- AIST Dance Videos: Real-world video sequences from the Middle Hip Hop genre of the AIST dataset, used to evaluate behavioral segmentation and video forecasting in the wild.
Key Insights and Ideas
- Trading "Stickiness" for Separation: How do you tell nonlinear regimes apart when they mix? The authors show an intuitive trade-off between sticky switching (regimes tend to persist locally) and transition separation (different regimes push the latent state along distinct paths, as illustrated below). If two regimes produce very similar trajectories, the system only needs stronger regime stickiness—or a slightly longer observation history—for the math to cleanly isolate which regime is active.
- More Regimes Make Disentanglement Easier: Usually, adding mixture components makes model estimation harder. Here, the authors construct a matrix of variance ratios across all pairs of regimes. As long as no two latent dimensions share identical variance ratios across every regime pair, the coordinates disentangle. Thus, having more regimes with diverse variances actually strengthens high-dimensional disentanglement.
- Ditching the VAE Scales Disentanglement: By pairing normalizing flows with exact forward-backward message passing on the latent sequence, $\Omega$SDS completely bypasses amortized variational inference, preventing latent recovery from degrading as dimensionality grows.
Key Results
- Scalable Disentanglement: On noiseless synthetic data, VAE-based baselines degrade noticeably as latent variables scale from 3 to 20 (with Mean Correlation Coefficient, or MCC, dropping toward $0.5$–$0.6$), whereas $\Omega$SDS maintains near-perfect regime $F_1$ scores and consistently high MCC ($\sim 0.9+$) across all dimensions.
- Mastering Wall Collisions: On the 2D Bouncing Ball benchmark, recurrent $\Omega$SDS achieves 1.000 input regime $F_1$ and 0.932 future predicted regime $F_1$ (steps 65–100). Autonomous (non-recurrent) models hit a wall—literally—scoring just 0.362 ($\Omega$SDS-A) and 0.345 (iSDS) on predicted regimes because they cannot anticipate state-dependent collisions. For 500-step video rollouts, $\Omega$SDS achieves the best perceptual quality (0.027 LPIPS), outperforming both identifiable SDS baselines and unidentifiable black-box RNNs like VRNN (0.028).
- Interpretable Real-World Motion: On AIST Hip Hop videos, $\Omega$SDS achieves substantially lower LPIPS forecasting error over 16-step horizons than iSDS while discovering human-interpretable movement modes (such as distinct "move up" and "move down" phases).
Limitations and Future Work
Because the emission model must be invertible, $\Omega$SDS cannot theoretically account for information-destroying processes like visual occlusions. On the latent side, the theory requires smooth analytic functions, non-overlapping convex-hull geometry when regimes share equal variances, and sufficient separation/stickiness—ruling out completely arbitrary neural network parameterizations. Additionally, while $\Omega$SDS optimizes exact likelihood, proving formal statistical consistency when jointly estimating flow and rSDS parameters remains an open theoretical step. Future work aims to relax these separation assumptions, handle model misspecification, and verify how well theoretical assumptions hold on real-world data where ground-truth latents are unknown.
Summary updated