Modeling Continuous Stochastic Processes with Dynamic Normalizing Flows

Ruizhi Deng, Bo Chang, Marcus A. Brubaker, Greg Mori, Andreas M. Lehrmann

Real-world sequential data—such as heart rate monitors, financial tickers, or robot sensors—often arrives at irregular intervals. Traditional models like Recurrent Neural Networks (RNNs) typically assume data lives on a fixed, discrete grid. While newer "Neural ODE" models attempt to treat time as continuous, they often decode latent states into observations independently at each time step. This means that even if the internal state moves smoothly, the generated sample paths can be discontinuous and noisy.

To address this, researchers have introduced the Continuous-Time Flow Process (CTFP), a novel generative model that transforms a simple Wiener process (Brownian motion) into complex, continuous stochastic processes using dynamic normalizing flows. CTFP guarantees continuous sample paths, handles irregular timing naturally, and allows for exact likelihood calculation and principled interpolation.

The Continuous-Time Flow Process (CTFP)

The core idea behind CTFP is to take a well-understood, continuous mathematical object and "warp" it into something more complex to match real-world data distributions.

  1. The Base Process: The model starts with a $d$-dimensional Wiener process ($W_\tau$). This process is mathematically advantageous: it has continuous paths, its marginals are Gaussian, and we have closed-form equations for how it behaves between two known points (the Brownian bridge).
  2. Dynamic Normalizing Flows: A time-indexed, invertible transformation $F_\theta$ is applied to the Wiener process. To ensure this transformation is continuous and flexible, the authors utilize a generative version of Augmented Neural ODEs (ANODE).
  3. Likelihood and Inference: Because the transformation is a normalizing flow, the model uses the "change of variables" formula to calculate the exact probability (likelihood) of an observed sequence.
  4. Latent CTFP: To capture long-term dependencies that a simple Wiener process might miss, the model is augmented with a global latent variable $Z$. An ODE-RNN encodes the sequence into a latent space, which then conditions the flow, similar to a Variational Autoencoder (VAE).
Overview of CTFP operations including likelihood calculation, sampling, and interpolation.

Key Insights: Continuity and Interpolation

By applying a continuous mapping (the ODE-based flow) to a continuous base process, the resulting observable process is mathematically guaranteed to have continuous sample paths. This is a significant structural advantage over standard Latent ODEs.

Furthermore, because the base process is a Wiener process, the model can use the Brownian bridge formula to fill in gaps between observations. This allows the model to perform "uncertainty-aware" interpolation that strictly respects the observed data points, passing exactly through them rather than just approximating their location. Since the entire framework is defined in continuous time, the model naturally handles irregular timestamps without requiring data imputation or binning.

CTFP demonstrates smooth, uncertainty-aware interpolation that passes exactly through observed data points.

Experimental Results

The authors evaluated CTFP on synthetic datasets (Geometric Brownian Motion, Ornstein–Uhlenbeck processes) and complex real-world data, including the MuJoCo-Hopper physics simulation, the PTB Diagnostic Database (ECG recordings), and the Beijing Air-Quality Dataset.

CTFP consistently outperformed state-of-the-art baselines like Latent ODEs and Variational RNNs (VRNNs):

  • Likelihood Accuracy: On synthetic Geometric Brownian Motion data, CTFP achieved a Negative Log-Likelihood (NLL) of 3.107, nearly matching the theoretical ground truth of 3.106. Baselines like Latent ODE (3.826) and VRNN (3.762) lagged significantly behind.
  • Real-World Performance: On the MuJoCo-Hopper dataset, the Latent CTFP achieved an NLL of -31.397, compared to a much worse +24.775 for the Latent ODE (lower NLL is better).
  • Qualitative Smoothness: Visualizations confirm that CTFP produces smooth, realistic trajectories, whereas Latent ODE paths often appear volatile and miss the "anchors" of observed data.

Limitations and Future Directions

While powerful, the base CTFP inherits the Markov property from the Wiener process, meaning the future depends only on the present. Although the "Latent CTFP" variant mitigates this by adding a global latent variable, the model might still struggle with extremely complex, long-term non-Markovian dynamics.

Additionally, using ODE solvers inside a normalizing flow is computationally intensive, making training and sampling slower than discrete-time models. Future work could explore other continuous base processes, such as Lévy processes, to capture different temporal behaviors like sudden jumps.

Summary updated

BibTeX
@inproceedings{deng2020modeling,
  author = {Ruizhi Deng and Bo Chang and Marcus A. Brubaker and Greg Mori and Andreas M. Lehrmann},
  title = {{Modeling Continuous Stochastic Processes with Dynamic Normalizing Flows}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2020},
  url = {https://openreview.net/forum?id=dpdlDo0KK9},
}
Figure