Abstract
Latent force models are systems whereby there is a mechanistic model describing the dynamics of the system state, with some unknown forcing term that is approximated with a Gaussian process. If such dynamics are non-linear, it can be difficult to estimate the posterior state and forcing term jointly, particularly when there are system parameters that also need estimating. This paper uses black-box variational inference to jointly estimate the posterior, designing a multivariate extension to local inverse autoregressive flows as a flexible approximater of the system. We compare estimates on systems where the posterior is known, demonstrating the effectiveness of the approximation, and apply to problems with non-linear dynamics, multi-output systems and models with non-Gaussian likelihoods.
Introduction
In many scientific fields, researchers work with "grey-box" models—scenarios where the underlying physics or mechanics of a system are partially understood (e.g., via differential equations), but certain external driving forces remain unknown. Latent Force Models (LFMs) bridge this gap by using Gaussian Processes (GPs) to represent these unobserved forces.
However, a significant technical challenge arises when the system dynamics are non-linear. In such cases, the joint estimation of system states, latent forces, and model parameters (such as the stiffness of a spring or decay rates in gene expression) becomes mathematically intractable. Traditional sequential methods like Kalman filtering often rely on linearization, which can discard critical non-linear behaviors. This research proposes a robust alternative using black-box variational inference to enable accurate joint inference without restrictive assumptions.
Methodology
The authors introduce a Black-Box Variational Inference (BBVI) framework designed specifically for non-linear LFMs. The approach rests on several key technical innovations:
- State-Space GP Representation: The Gaussian Process is treated as a continuous-time stochastic differential equation (SDE), allowing it to be integrated directly into the mechanistic model.
- Multivariate Local Inverse Autoregressive Flows (IAFs): Normalizing flows are typically used for generative modeling, but here they are adapted to capture complex, multi-modal posteriors. The authors developed a novel multivariate masking architecture that enforces temporal dependencies, ensuring the flow respects the Markov properties of the dynamical system.
- Unscented Transform: To manage non-linearity during the optimization of the Evidence Lower Bound (ELBO), the framework uses a "sigma point" method to propagate uncertainty through the non-linear dynamics accurately.
- Joint Parameter Estimation: Unlike sequential filtering methods that struggle with long-term gradient stability, this batch-based variational approach allows for the simultaneous optimization of system states and the hyperparameters of both the GP and the mechanistic model.
Experimental Results
The framework was validated using both synthetic benchmarks and real-world biological data:
- Convergence to Ground Truth: In tests against a known Matérn-3/2 GP posterior, the flow-based approximation became statistically indistinguishable from the true posterior as training progressed, as measured by Maximum Mean Discrepancy (MMD) scores.
- Non-Gaussian Likelihoods: The model was tested on a simulated regression problem using a Poisson likelihood. It achieved a Negative Log Predictive Density (NLPD) of -0.122, significantly outperforming the standard Laplace approximation (-0.165).
- Gene Expression Modeling: Applying the method to a multi-output system involving five genes regulated by an unobserved transcription factor, the model successfully reconstructed the latent force concentration and provided narrow, confident marginals for physical parameters like decay and basal transcription rates.
Discussion and Conclusion
By integrating the structural constraints of differential equations with the flexibility of normalizing flows, this approach effectively "bakes the physics of time" into a deep learning architecture. While the authors noted a slight tendency toward over-confidence in certain latent GP regions, the method successfully breaks the sequential bottleneck of traditional filters. This BBVI approach offers a stable, scalable, and highly flexible solution for joint parameter and state estimation in complex, non-linear dynamical systems.
Summary updated