Low-Budget Simulation-Based Inference with Bayesian Neural Networks

Arnaud Delaunoy, Maxence de la Brassinne Bonardeaux, Siddharth Mishra-Sharma, Gilles Louppe

Abstract

Simulation-based inference methods have been shown to be inaccurate in the data-poor regime, when training simulations are limited or expensive. Under these circumstances, the inference network is particularly prone to overfitting, and using it without accounting for the computational uncertainty arising from the lack of identifiability of the network weights can lead to unreliable results. To address this issue, we propose using Bayesian neural networks in low-budget simulation-based inference, thereby explicitly accounting for the computational uncertainty of the posterior approximation. We design a family of Bayesian neural network priors that are tailored for inference and show that they lead to well-calibrated posteriors on tested benchmarks, even when as few as $O(10)$ simulations are available. This opens up the possibility of performing reliable simulation-based inference using very expensive simulators, as we demonstrate on a problem from the field of cosmology where single simulations are computationally expensive. We show that Bayesian neural networks produce informative and well-calibrated posterior estimates with only a few hundred simulations.

Introduction

Simulation-Based Inference (SBI) is a critical framework for scientific discovery, enabling researchers to infer latent parameters $\theta$ from observations $x$ using complex, stochastic simulators. Typically, this involves training a neural network to approximate the posterior distribution $p(\theta|x)$. However, standard neural networks are notoriously data-hungry. In fields like cosmology or climate science, where a single simulation can require significant computational resources, the available training data is often extremely limited. In this "low-budget" regime, standard networks are prone to overfitting, leading to overconfident and potentially incorrect scientific conclusions. This paper addresses the challenge of "computational uncertainty"—the ambiguity in network parameters when data is scarce—by employing Bayesian Neural Networks (BNNs).

Methodology: Bayesian Neural Networks and Functional Priors

The core proposal is to replace point-estimate neural networks with BNNs. Unlike standard networks, a BNN learns a distribution over its weights, allowing it to quantify epistemic uncertainty. A critical challenge in using BNNs for SBI is the choice of prior. Standard weight priors, such as simple Gaussians, often fail to produce calibrated posteriors in inference tasks.

The authors introduce a novel "functional prior" approach. Instead of defining the prior directly on the weights, they define it in the space of functions the network can represent. Specifically, they use a Gaussian Process (GP) centered on the simulator's parameter prior $p(\theta)$. This ensures that in the absence of data, the model's predictions default to the prior, maintaining perfect calibration. This functional prior is then "mapped" back to the network weights by optimizing the weight prior parameters to match the target GP behavior.

Visualization of the functional prior tuning on the SLCP benchmark. The right panel demonstrates how the tuned prior (red) achieves near-perfect calibration compared to standard normal priors, providing a conservative starting point for inference.

Experimental Results

The BNN approach was evaluated across several benchmarks, including the Simple Likelihood Complex Posterior (SLCP) toy problem, population dynamics (Lotka-Volterra), and a high-stakes cosmology application using Quijote N-body simulations.

Performance in Data-Poor Regimes

The BNN-based SBI consistently outperformed standard methods like Neural Posterior Estimation (NPE) and Neural Ratio Estimation (NRE) when training budgets were low. For instance, on the SLCP benchmark, BNNs provided well-calibrated, conservative posteriors with as few as 10 simulations. In contrast, standard NPE often produced tight, overconfident regions that excluded the true parameter values.

Comparison of posterior density regions. Standard NPE can become overconfident and miss the ground truth when data is scarce, while the BNN approach maintains a wider, more honest posterior that accounts for epistemic uncertainty.

Real-World Application: Cosmology

In the cosmology experiment, the goal was to infer matter density ($\Omega_m$) and fluctuations ($\sigma_8$). These simulations are computationally expensive, making a low-budget approach essential. The BNN produced informative and well-calibrated estimates with only a few hundred simulations, a regime where traditional neural network methods typically struggle to provide reliable uncertainty estimates.

Conclusion

This work demonstrates that BNNs, when combined with carefully designed functional priors, offer a robust solution for simulation-based inference in data-limited scenarios. By explicitly accounting for computational uncertainty, BNNs avoid the pitfalls of overconfidence, providing scientists with reliable and conservative posterior estimates even when simulations are expensive and scarce. Future work includes scaling these methods to higher-dimensional parameter spaces and exploring the impact of "cold posteriors" on calibration.

Summary updated

BibTeX
@misc{delaunoy2024low,
  author = {Arnaud Delaunoy and Maxence de la Brassinne Bonardeaux and Siddharth Mishra-Sharma and Gilles Louppe},
  title = {{Low-Budget Simulation-Based Inference with Bayesian Neural Networks}},
  year = {2024},
  eprint = {2408.15136},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2408.15136},
}
Figure