Abstract
Likelihood-free inference (LFI) is essential for scientific simulators where the likelihood function is intractable. While several sequential neural methods have been proposed to improve sample efficiency over traditional Approximate Bayesian Computation (ABC), they have lacked a controlled comparison. This paper evaluates three leading methods—SNPE-B, SNL, and ASNL—standardizing their architectures to isolate algorithmic performance. We find that modeling the surrogate likelihood (SNL) is generally more robust than modeling the posterior directly (SNPE), and that current active learning strategies (ASNL) offer negligible accuracy gains despite significant computational overhead.
Introduction
In fields ranging from epidemiology to cosmology, complex simulators model real-world phenomena. While these simulators can generate data $x$ given parameters $\theta$, they rarely provide an explicit likelihood function $p(x|\theta)$. Standard Bayesian inference for the posterior $p(\theta|x)$ thus becomes a challenge.
Traditional methods like ABC are computationally expensive, often requiring millions of simulations. Recent "Sequential Neural" methods aim to be more sample-efficient by using deep learning to approximate these distributions. However, because these methods were developed independently with varying architectures, it has been difficult to determine which approach is superior. This study levels the playing field to provide the first rigorous comparison.
Methods
The authors compare three specific algorithms, standardizing them with a Mixture Density Network (MDN) architecture and Stochastic Variational Inference (SVI):
- Sequential Neural Posterior Estimation (SNPE-B): Learns the inverse mapping directly to model the posterior $p(\theta|x)$.
- Sequential Neural Likelihood (SNL): Learns a "surrogate likelihood" $p(x|\theta)$ to model the forward process. An additional MCMC step is used to derive the posterior.
- Active Sequential Neural Likelihood (ASNL): Extends SNL with an acquisition function (MaxVar) to identify informative regions in the parameter space for active learning.
Performance and Accuracy
The methods were evaluated on three benchmarks: a Gaussian toy problem with a multimodal posterior, the Lotka–Volterra predator-prey model, and an M/G/1 stochastic queue model.
As shown in the performance plots, SNL and ASNL consistently achieved lower negative log-probabilities (indicating higher accuracy) for the true parameters compared to SNPE-B on the Gaussian and Lotka-Volterra tasks. In the M/G/1 queue task, all three methods performed similarly. These results suggest that modeling the likelihood is often a more robust strategy than modeling the posterior directly, likely because the "forward" task of predicting data from parameters is simpler for neural networks than the "inverse" task.
The Cost of Active Learning
While ASNL uses a principled active learning approach to select simulation points, the study found it provided no meaningful accuracy boost over the simpler posterior-sampling heuristic used in SNL. Furthermore, the computational cost of ASNL is prohibitive.
For $10^4$ simulations, SNL required approximately 7.5 to 8.3 hours, whereas ASNL required between 70 and 91 hours. This 10x increase in compute time did not yield better inference results, suggesting that the time spent optimizing the acquisition function in ASNL might be better spent simply running more simulations with the faster SNL method.
Conclusion
This head-to-head comparison reveals that the choice of what to learn (likelihood vs. posterior) is more critical than the choice of where to sample (active learning vs. heuristic sampling). While SNL emerged as a robust and efficient choice, future work is needed to improve uncertainty quantification in active learning and to address the "curse of dimensionality" that may affect likelihood-based models in higher-dimensional spaces.
Summary updated