Abstract
Sequential Neural Likelihood (SNL) is a novel method for Bayesian inference on complex simulator models where the likelihood function is intractable. By training an autoregressive flow to model the likelihood and sequentially guiding simulations toward high-probability regions, SNL drastically cuts down computational costs while avoiding the mathematical instabilities that plague previous neural posterior estimation methods.
Introduction: The Challenge of Intractable Likelihoods
In many scientific fields—from particle physics to ecology and neuroscience—researchers use complex computer simulators to model real-world phenomena. A common goal is to infer the underlying parameters of these models based on observed real-world data. In traditional Bayesian inference, this requires evaluating a "likelihood function" $p(x|\theta)$. However, for most complex simulators, this function is mathematically intractable; while the simulator can generate data given parameters, the exact probability density of the output cannot be calculated.
Existing "likelihood-free inference" (LFI) methods, such as Approximate Bayesian Computation (ABC), typically require millions of simulator runs, which is often prohibitively expensive. Recent deep learning approaches, like Sequential Neural Posterior Estimation (SNPE), attempt to learn the posterior $p(\theta|x)$ directly. However, to improve efficiency, SNPE samples parameters from a focused "proposal" distribution. This introduces a bias that requires complex mathematical correction, which is often numerically unstable and prone to failure.
Methods: Sequential Neural Likelihood (SNL)
The authors introduce Sequential Neural Likelihood (SNL). Instead of learning the posterior directly, SNL trains a neural network to approximate the likelihood function.
- Neural Density Estimation: SNL employs a Masked Autoregressive Flow (MAF) to estimate the conditional probability density of the simulated data given the parameters.
- Sequential Guiding: To optimize simulation budget, SNL operates in rounds. In each round, it uses Markov Chain Monte Carlo (MCMC) to sample parameters from the current posterior estimate. New simulations are performed at these parameters, and the data is used to refine the MAF.
- Bypassing Proposal Bias: By learning the likelihood $p(x|\theta)$ rather than the posterior, SNL avoids the "proposal bias" inherent in direct posterior estimation. The true likelihood is independent of how parameters were sampled, eliminating the need for unstable analytical corrections.
Key Results and Performance
The authors evaluated SNL on four simulator models: a multi-modal Toy Model, an M/G/1 Queue, a Lotka–Volterra ecology model, and a Hodgkin–Huxley neuron model.
SNL consistently outperformed traditional baselines (SMC-ABC, Synthetic Likelihood) and state-of-the-art neural methods (SNPE-A, SNPE-B) in the trade-off between posterior accuracy and simulation cost. Notably, SNL remained stable across all tasks, whereas SNPE-A suffered from numerical failures (e.g., negative variance) in several experiments.
Discussion: The Value of Sequential Guiding
A key insight of the paper is the importance of sequential guiding. Training a neural network on parameters sampled randomly from the prior (naive Neural Likelihood) is inefficient. By focusing on high-posterior regions, SNL reduces the required simulations by orders of magnitude.
Furthermore, unlike learned posteriors, a learned likelihood is independent of the prior. This allows the model to be reused with different priors or for hypothesis testing without retraining.
Limitations and Future Work
While effective, SNL faces challenges with high-dimensional raw data (e.g., images), currently requiring lower-dimensional summary statistics. Future work may integrate specialized architectures like PixelCNN to handle high-dimensional data directly. Additionally, SNL requires an MCMC step to draw posterior samples, which introduces a small computational overhead compared to direct posterior estimation methods.
Summary updated