Towards Reliable Simulation-based Inference
Organizations: Department of Electrical Engineering and Computer Science, Faculty of Applied Sciences
Abstract
Scientific knowledge expands by observing the world, hypothesizing some theories about it, and testing them against collected data. When those theories take the form of statistical models, statistical analyses are involved in the process of testing and refining scientific hypotheses. In this thesis, we focus on statistical models that take the form of scientific simulators and provide background about how machine learning can be used for statistical analyses in this context. The first part of this thesis is about showing empirically that performing statistical analyses with machine learning involves a degree of approximation. Specifically, all statistical analyses involve a level of uncertainty in the conclusions drawn, and we show that approximations can lead to overconfident conclusions. We draw caution regarding such overconfident conclusions and introduce a criterion to diagnose overconfident approximations. In the second part, we introduce balancing, a way to regularize machine learning models to reduce overconfidence and favor calibrated or underconfident approximations. Balancing is first introduced for neural ratio estimation algorithms and then extended to other algorithms. Intuition about why balancing leads to less overconfident solutions is provided, and it is shown empirically that balanced algorithms are often either close to calibrated or underconfident. The third part shows that Bayesian neural networks can also be used to mitigate the overconfidence of approximations. Unlike balancing, no regularization is required, and this solution can then work with few training samples and, hence, computationally expensive simulators. To that end, a new Bayesian neural network prior tailored for simulation-based inference is developed, and empirical results show a reduction in overconfidence compared to similar solutions without Bayesian neural networks.
Figures & tables
| Inputs: | gravity constant , drag coefficient , height , mass and |
| measurement error standard deviation . | |
| Outputs: | The measured fall time. |
| hyper-parameters: | Duration of a step |
| Inputs: | distance function , distance threshold , number of simulations n_sim |
| and real observation . | |
| Outputs: | The retained parameters, approximately sampled from the posterior. |
| Inputs: | A prior , a simulator and a target |
| Outputs: | An approximate posterior with focused training on |
| Hyperparameter: | Number rounds n_rounds and number of samples per round n_samples |
| Inputs: | Implicit generative model (simulator) and prior |
| Outputs: | Approximate classifier parameterized by |
| hyper-parameters: | Balancing condition strength (default = 100) and batch-size |
| SLCP | M/G/1 | Weinberg | Lotka-V. | Spatial SIR | GW | |
| Embedding network | None | None | None | CNN | Resnet-18 | CNN |
| Embedding layers | / | / | / | / | ||
| Embedding channels | / | / | / | / | ||
| Convolution type | / | / | / | Conv1D | Conv2D | Dilated Conv1D |
| Head network | MLP | MLP | MLP | MLP | MLP | MLP |
| Head layers |
| SLCP | Weinberg | Lotka-V. | Spatial SIR | Two Moons | |
| Embedding network | None | None | CNN | CNN | None |
| Embedding layers | / | / | / | ||
| Embedding channels | / | / | / | ||
| Convolution type | / | / | Conv1D | Conv2D | / |
| Classifier Head | MLP | MLP | MLP | MLP | MLP |
| Classifier layers |