Abstract
Gradient matching is a promising tool for learning parameters and state dynamics of ordinary differential equations. It is a grid free inference approach, which, for fully observable systems is at times competitive with numerical integration. However, for many real-world applications, only sparse observations are available or even unobserved variables are included in the model description. In these cases most gradient matching methods are difficult to apply or simply do not provide satisfactory results. That is why, despite the high computational cost, numerical integration is still the gold standard in many applications. Using an existing gradient matching approach, we propose a scalable variational inference framework which can infer states and parameters simultaneously, offers computational speedups, improved accuracy and works well even under model misspecifications in a partially observable system.
Introduction
Modeling complex biological and physical systems—from predator-prey dynamics to protein signaling pathways—typically relies on Ordinary Differential Equations (ODEs). Estimating the parameters of these equations is a notorious computational bottleneck. While numerical integration remains the "gold standard," its high computational cost makes it impractical for large-scale models.
Gradient matching has emerged as a faster alternative by matching data-interpolant slopes to ODE derivatives. However, existing methods like those based on splines or Gaussian Processes struggle with partial observability and fail to scale as the number of system states increases. This work addresses these limitations by introducing a scalable variational approach that leverages mean-field approximations and local linearity.
Methodology: Mean-field Variational Inference
The core innovation of this framework is the application of Mean-field Variational Inference to gradient matching, specifically exploiting the local linearity of mass-action kinetics. While mass-action ODEs are globally nonlinear, they are linear with respect to any single state or parameter when others are fixed.
Key components of the approach include:
- Mean-field Approximation: Decoupling the complex joint posterior of states and parameters into a simpler factorial distribution.
- Coordinate Ascent: An iterative algorithm that provides closed-form updates for the proxy distributions of states and parameters.
- Grid-Free Inference: Utilizing Gaussian Process (GP) priors to treat the system as a continuous process, avoiding the errors associated with temporal discretization.
Experimental Setup
The framework was rigorously tested on several benchmark dynamical systems, including the classic Lotka-Volterra predator-prey model and high-dimensional systems like the 1,000-state Lorenz 96 weather model. These tests evaluated the method's ability to handle sparse data and infer latent dynamics.
Key Results
The proposed "Mean-field GM" method demonstrates substantial improvements over existing state-of-the-art techniques like Adaptive Gradient Matching (AGM).
Efficiency and Scalability
The algorithm achieves a computational complexity of $O(N \cdot K)$ per iteration (where $N$ is time points and $K$ is states). This linear scaling enabled the inference of a 1,000-state Lorenz 96 system in under 400 seconds on a standard laptop—a significant leap in performance for Bayesian gradient matching.
Accuracy and Robustness
As shown in the comparative analysis, the method provides highly accurate parameter estimates and state reconstructions. It successfully handles "hidden" variables by treating unobserved states as latent variables within the variational framework. Furthermore, it remains robust even when the underlying model equations are slightly misspecified, such as approximating Michaelis-Menten kinetics with mass-action forms.
Discussion and Future Work
By transforming a non-convex optimization problem into a series of tractable, analytically solvable updates, this framework provides a powerful tool for large-scale ODE inference. While currently optimized for mass-action kinetics, the method's empirical robustness suggests that the strict polynomial requirement might be relaxed in future iterations. Future work will also explore more sophisticated variational families to capture the correlations between variables that the current mean-field approximation ignores.
Summary updated