Abstract
Simulation-Based Inference (SBI) is a powerful tool for Bayesian inference when likelihood functions are intractable. However, high-fidelity simulators are often computationally prohibitive. This paper introduces Multilevel Neural SBI (ML-SBI), a framework that integrates Multilevel Monte Carlo (MLMC) principles with neural density estimators. By leveraging a hierarchy of simulators and learning the differences between fidelity levels via a telescoping sum of losses, ML-SBI achieves significantly higher accuracy and better-calibrated posteriors than standard single-fidelity methods under a fixed computational budget.
Introduction
In scientific domains such as cosmology and epidemiology, complex simulators are the primary means of modeling phenomena. While these simulators can generate data, they lack explicit likelihood functions, necessitating Simulation-Based Inference (SBI). Standard SBI methods train neural networks to approximate the likelihood or posterior from simulated data.
A major bottleneck is the computational cost of high-fidelity simulators. Researchers often face a dilemma: use a small number of accurate simulations, leading to high variance, or use many fast but biased low-fidelity simulations. As shown in cosmological overdensity maps, low-fidelity models capture the general structure but lack the precision of their high-fidelity counterparts.
Methods
The proposed Multilevel Neural SBI (ML-SBI) framework applies to both Neural Likelihood Estimation (NLE) and Neural Posterior Estimation (NPE). The core innovation is the use of a telescoping sum of losses across different fidelity levels. Instead of training exclusively on the most expensive simulator, the model learns a base approximation from the cheapest level and subsequently learns "correction" terms for successive levels of increasing fidelity.
Key technical components include:
- Seed-Matching: Simulators at different levels are coupled using identical random seeds. This ensures that the variance of the difference between levels remains small, making the corrections easier to learn.
- Optimal Allocation: The authors derive a theoretical formula to determine the optimal number of simulations at each level to minimize error for a given compute budget.
- Gradient Adjustment: To prevent conflicting updates between the base loss and correction terms, a gradient rescaling and projection technique is employed to stabilize training.
Key Results
The method was evaluated on benchmarks including the g-and-k distribution, Ornstein–Uhlenbeck processes, a toggle-switch biological model, and the CAMELS cosmological suite.
ML-SBI consistently outperformed single-fidelity baselines. For instance, in the g-and-k example, ML-NLE approximated the exact density much more accurately than standard NLE using the same budget. While standard NLE trained on high-fidelity data alone might struggle with low sample sizes, ML-NLE leverages the low-fidelity data to anchor the distribution.
In cosmological applications, standard NPE often produces overconfident, narrow posteriors. ML-NPE, however, yielded well-calibrated or slightly conservative posteriors, which are safer for scientific inference. Furthermore, in the toggle-switch model, ML-NLE outperformed all single-fidelity baselines while maintaining identical total simulation costs.
Conclusion
ML-SBI offers a robust solution for performing high-fidelity inference on a budget. By effectively utilizing low-fidelity approximations to reduce the variance of high-fidelity estimates, it provides a more efficient path to accurate Bayesian posteriors. While the method requires seed-matching and introduces a slight training overhead, its gains in accuracy and calibration make it a significant advancement for simulation-heavy scientific research. Future work may extend this approach to other generative frameworks like Flow Matching or Score-based models.
Summary updated