Abstract
Gaussian processes have been used to model the vector field of continuous dynamical systems, which are characterized by a probabilistic ordinary differential equation (GP-ODE). Bayesian inference for these models has been extensively studied and applied in tasks such as time series prediction. However, the use of standard GPs with basic kernels like squared exponential kernels has been common in GP-ODE research, limiting the model’s ability to represent complex scenarios. To address this limitation, we introduce normalizing flows to reparameterize the ODE vector field, resulting in a data-driven prior distribution, thereby increasing flexibility and expressive power. We develop a variational inference algorithm that utilizes analytically tractable probability density functions of normalizing flows. Additionally, we also apply normalizing flows to the posterior inference of GP-ODEs to resolve the issue of strong mean-field assumptions. By applying normalizing flows in these ways, our model improves accuracy and uncertainty estimates for Bayesian GP-ODEs. We validate the effectiveness of our approach on simulated dynamical systems and real-world human motion data, including time series prediction and missing data recovery tasks.
Introduction
Modeling the evolution of dynamical systems—ranging from biological oscillators to human locomotion—is a fundamental challenge in machine learning. Ordinary Differential Equations (ODEs) provide a natural framework for these systems, and Gaussian Process ODEs (GP-ODEs) offer a Bayesian approach that accounts for noise and provides uncertainty quantification. However, traditional GP-ODEs suffer from two primary limitations:
- Limited Expressiveness: Reliance on simple kernels (e.g., squared exponential) restricts the model's ability to capture complex, non-stationary dynamics.
- Restrictive Inference: Standard variational inference often assumes a simple Gaussian posterior (mean-field assumption), which fails to capture the multi-modal or skewed distributions common in complex systems.
This paper introduces GP-DNF, a framework that utilizes "Double Normalizing Flows" to address both the prior expressiveness and the posterior inference quality.
Methodology: Double Normalizing Flows
The core innovation of GP-DNF is the application of Normalizing Flows—invertible transformations that warp simple distributions into complex ones—at two critical stages of the model.
- The Prior Flow: Instead of a standard GP, the vector field is reparameterized by pushing a GP through a normalizing flow. This creates a data-driven prior capable of representing intricate patterns far beyond the reach of standard kernels. The authors prove that this flow-transformed GP remains a valid multivariate stochastic process via Kolmogorov’s consistency theorem.
- The Posterior Flow: To move beyond the "bell curve" limitation, a second normalizing flow defines the variational posterior. This allows the model to learn non-Gaussian distributions that more accurately reflect the true uncertainty of the system.
To maintain computational efficiency, the model employs Variational Sparse Gaussian Processes (SVGP), using a small set of inducing points to represent the field, and is optimized via the Evidence Lower Bound (ELBO).
Experimental Results
The model was evaluated on synthetic benchmarks (Van der Pol and FitzHugh-Nagumo oscillators) and real-world human motion data (CMU MoCap).
Quantitative Performance
GP-DNF consistently outperformed state-of-the-art baselines, including NeuralODE and standard GP-ODE:
- Accuracy: In the Van der Pol (VDP) task, GP-DNF achieved a Mean Squared Error (MSE) of 0.03, significantly lower than Latent SDE (0.10) and standard GP-ODE (0.13).
- Uncertainty Calibration: A key finding was the improvement in coverage probability. On human motion tasks, GP-DNF's 95% confidence interval contained true data points 81% of the time, compared to only 60% for standard GP-ODEs.
- Real-World Robustness: On the CMU MoCap dataset, GP-DNF achieved the lowest MSE and Mean Negative Log Likelihood (MNLL) across multiple subjects, demonstrating its effectiveness in high-dimensional latent spaces.
Conclusion and Future Work
By combining a flexible prior with non-Gaussian posterior inference, GP-DNF provides a more "honest" and accurate representation of dynamical systems. While the model introduces a slight computational overhead (approximately 20-25% longer training time) and additional hyperparameters, the gains in predictive accuracy and uncertainty calibration are substantial. Future research will focus on automated hyperparameter selection and improving numerical stability during the optimization of the KL divergence term in higher-dimensional settings.
Summary updated