[Paper Review] Black-box Variational Inference for Stochastic Differential Equations
This paper proposes a black-box variational inference method for stochastic differential equations (SDEs) that jointly infers unknown parameters and latent diffusion paths using a recurrent neural network (RNN) to approximate the posterior of the diffusion paths conditional on parameters. The approach achieves accurate parameter estimation in a few hours on standard hardware, outperforming MCMC in speed while maintaining close agreement with true posterior paths.
Parameter inference for stochastic differential equations is challenging due to the presence of a latent diffusion process. Working with an Euler-Maruyama discretisation for the diffusion, we use variational inference to jointly learn the parameters and the diffusion paths. We use a standard mean-field variational approximation of the parameter posterior, and introduce a recurrent neural network to approximate the posterior for the diffusion paths conditional on the parameters. This neural network learns how to provide Gaussian state transitions which bridge between observations in a very similar way to the conditioned diffusion process. The resulting black-box inference method can be applied to any SDE system with light tuning requirements. We illustrate the method on a Lotka-Volterra system and an epidemic model, producing accurate parameter estimates in a few hours.
Motivation & Objective
- To address the challenge of joint inference for parameters and latent diffusion paths in SDEs, which are high-dimensional and intractable due to the latent process.
- To develop a flexible, scalable inference method applicable to a broad class of SDE systems without requiring problem-specific design.
- To reduce computational cost and tuning complexity compared to existing MCMC and bridge-based Monte Carlo methods.
- To improve upon mean-field or Gaussian approximations for latent paths by using an RNN to model complex, structured dependencies between observations.
- To enable practical, fast inference for SDEs in real-world applications such as systems biology and epidemiology.
Proposed method
- Uses an Euler-Maruyama discretization to approximate the continuous SDE as a sequence of Gaussian transitions on a time grid.
- Applies mean-field variational inference to approximate the posterior over SDE parameters, treating them as random variables with independent priors.
- Introduces a recurrent neural network (RNN) to model the posterior distribution of the latent diffusion path conditioned on the parameters, learning to generate state transitions that mimic the true conditioned process.
- Employs stochastic optimization to train the variational approximation, enabling end-to-end learning without relying on variational calculus.
- Treats the RNN-based approximation as a normalizing flow that transforms a standard normal sample into a path sample consistent with the observed data and parameters.
- Uses importance sampling with 500,000 iterations to evaluate and validate the quality of the variational posterior, especially for model comparison.
Experimental results
Research questions
- RQ1Can a black-box variational inference framework be designed to jointly infer parameters and latent paths in SDEs with minimal tuning?
- RQ2How well does an RNN-based variational approximation capture the complex dependency structure of latent diffusion paths in sparsely observed SDEs?
- RQ3What is the trade-off between computational efficiency and approximation accuracy compared to MCMC and bridge-based Monte Carlo methods?
- RQ4Can the method recover known parameter values in synthetic data and match published results in real epidemic data with high fidelity?
- RQ5How does the quality of the variational approximation compare to MCMC in terms of marginal posterior estimates and path sampling?
Key findings
- The method achieves accurate parameter estimation in under 3.5 hours on a desktop PC for both Lotka-Volterra and SIR epidemic models, significantly faster than MCMC methods that take days.
- For the time-invariant SIR model, the marginal posterior estimates from variational inference closely match those from importance sampling and prior MCMC studies, despite a low effective sample size (ESS = 718.2).
- For the time-variant SIR model, the method produces a smaller estimated variance (σ²) and more flexible diffusion paths that better capture data fluctuations, particularly around t=7–9, indicating improved data fit.
- The RNN-based posterior approximation generates 50 plausible diffusion paths that visually align with the true data trend, showing the method captures complex temporal dependencies in the latent process.
- The variational approximation of the conditioned diffusion path is close to the true posterior, even though the parameter posteriors are slightly over-concentrated, a common limitation of variational methods.
- Model comparison via importance sampling evidence suggests the time-variant model fits the data better, though increased complexity may lead to overfitting, highlighting the need for better posterior estimation in model selection.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.