[Paper Review] Variational methods for simulation-based inference
This paper introduces Sequential Neural Variational Inference (SNVI), a scalable simulation-based inference method that combines likelihood-ratio estimation with variational inference using normalizing flows and sampling importance resampling (SIR). SNVI achieves Bayesian posterior approximation without MCMC sampling, reducing computational cost by one order of magnitude in a neuroscience model while maintaining accuracy and handling invalid simulation outputs via a calibrated likelihood estimator.
We present Sequential Neural Variational Inference (SNVI), an approach to perform Bayesian inference in models with intractable likelihoods. SNVI combines likelihood-estimation (or likelihood-ratio-estimation) with variational inference to achieve a scalable simulation-based inference approach. SNVI maintains the flexibility of likelihood(-ratio) estimation to allow arbitrary proposals for simulations, while simultaneously providing a functional estimate of the posterior distribution without requiring MCMC sampling. We present several variants of SNVI and demonstrate that they are substantially more computationally efficient than previous algorithms, without loss of accuracy on benchmark tasks. We apply SNVI to a neuroscience model of the pyloric network in the crab and demonstrate that it can infer the posterior distribution with one order of magnitude fewer simulations than previously reported. SNVI vastly reduces the computational cost of simulation-based inference while maintaining accuracy and flexibility, making it possible to tackle problems that were previously inaccessible.
Motivation & Objective
- To develop a scalable, efficient method for Bayesian inference in models with intractable likelihoods.
- To overcome the computational bottleneck of MCMC sampling in likelihood-ratio-based SBI methods.
- To maintain flexibility in proposal distributions and prior updates, unlike posterior-targeting methods.
- To handle invalid simulation outputs (e.g., NaNs) in real-world simulators without discarding data.
- To achieve high accuracy with significantly fewer simulations than prior SBI methods.
Proposed method
- SNVI trains a neural likelihood-ratio estimator using normalizing flows to model the likelihood $p({m{x}}|{m{ heta}})$.
- It employs variational inference with a general divergence (e.g., f-divergence) to learn a posterior approximation $q_\phi({\bm{\theta}}|{m{x}})$.
- The method uses sampling importance resampling (SIR) to refine posterior estimates and guide active learning in sequential rounds.
- A separate deep logistic regression classifier estimates the validity probability $P(\text{valid}|{\bm{\theta}})$ to correct likelihood estimates for invalid simulations.
- The likelihood model is retrained in each round using only valid simulations, with the classifier updated simultaneously using weighted binary cross-entropy.
- The approach uses a sequential training scheme where new simulations are adaptively sampled based on posterior uncertainty, improving efficiency.
Experimental results
Research questions
- RQ1Can variational inference be effectively combined with likelihood-ratio estimation to enable fast, scalable simulation-based inference?
- RQ2How can invalid simulation outputs be handled without discarding data or compromising likelihood estimation?
- RQ3Does SNVI achieve comparable accuracy to state-of-the-art SBI methods while reducing simulation cost?
- RQ4Can SNVI maintain flexibility in prior updates and proposal distributions, unlike posterior-targeting methods?
- RQ5How does the use of SIR and general divergences improve posterior approximation compared to rKL-based variational inference?
Key findings
- SNVI reduced the number of required simulations by one order of magnitude (from ~100k to ~10k) in a complex neuroscience model of the crab pyloric network.
- The method achieved posterior inference accuracy comparable to SNLE and SNRE, but without requiring MCMC sampling at test time.
- The classifier for validity estimation was approximately three times cheaper to train than the likelihood model, minimizing added computational cost.
- The combined runtime of the likelihood and validity models was significantly lower than training on all simulations (including invalid ones), even when invalid simulations were replaced with dummy values.
- The method remained robust to high invalid simulation rates (up to 90%), with proper correction via the validity probability estimator.
- Additional post-processing with mode-seeking divergences (e.g., α-divergence with α=0.5) improved valid rate to 94%, though this was not part of the core method and introduced potential mode-seeking bias.
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.