GATSBI: Generative Adversarial Training for Simulation-Based Inference

Poornima Ramesh, Jan-Matthis Lueckmann, Jan Boelts, Álvaro Tejero-Cantero, David S. Greenberg, Pedro J. Gonçalves, Jakob H. Macke

Overview

GATSBI (Generative Adversarial Training for Simulation-Based Inference) is a novel framework that leverages conditional Generative Adversarial Networks (cGANs) to estimate posterior distributions for complex, "black-box" scientific simulators. By reformulating the inference problem as an adversarial game, GATSBI scales to much higher-dimensional parameter spaces than traditional methods and can handle "implicit" priors where only samples—not a mathematical density—are available.

The Challenge of Simulation-Based Inference

In many scientific fields, researchers use stochastic simulators to model complex phenomena, from climate patterns to neural activity. These simulators often act as "black boxes": you can input parameters ($\theta$) and generate simulated data ($x$), but you cannot easily calculate the likelihood $p(x|\theta)$ or its gradients.

Simulation-Based Inference (SBI) aims to solve the inverse problem: given some observed data $x_o$, what is the posterior distribution $p(\theta|x_o)$ of the parameters that could have produced it?

Traditional methods like Approximate Bayesian Computation (ABC) suffer from the "curse of dimensionality" as the number of parameters grows. Modern neural density estimators (like Normalizing Flows) improve upon this but still struggle with very high-dimensional spaces (hundreds of parameters) or cases where prior knowledge about parameters is only available as a set of examples (an implicit prior) rather than a defined probability density function.

Enter GATSBI: An Adversarial Approach

The authors introduce GATSBI, which treats posterior estimation as a conditional generative adversarial network (cGAN) task. The core realization is that the adversarial framework of GANs is perfectly suited for the "likelihood-free" nature of SBI. GANs do not need to evaluate densities; they just need samples, which is exactly what simulators provide.

GATSBI Framework

The framework consists of two main components:

  1. The Generator: A neural network $f_\phi(z, x)$ takes an observation $x$ and random noise $z$. It learns to output a parameter sample $\theta$ that appears as though it came from the true posterior $p(\theta|x)$.
  2. The Discriminator: A second network $D_\psi(\theta, x)$ is trained to distinguish between "real" pairs (parameters sampled from the prior and their corresponding simulations) and "fake" pairs (the generator's predicted parameters paired with the same simulations).

Through this minimax game, the generator is forced to match the true posterior distribution.

Key Innovations: * Amortization: Once trained, GATSBI can provide posteriors for any new observation $x$ almost instantly. * Reverse KL Targeting: Unlike most SBI methods that minimize the "forward" Kullback-Leibler (KL) divergence, GATSBI effectively targets the "reverse" KL (via the Jensen-Shannon divergence). This can lead to better "mode-seeking" behavior in complex distributions. * Handling Implicit Priors: Most SBI methods require a prior with a known density. GATSBI can learn from a database of samples, making it applicable to highly realistic scientific scenarios.

Experimental Results and High-Dimensional Scaling

The authors evaluated GATSBI on a mix of standard benchmarks (like SLCP and Two-Moons) and high-dimensional challenges. While GATSBI performed comparably to Neural Ratio Estimation (NRE) on low-dimensional tasks, its true strength emerged in high-dimensional spaces.

Shallow Water Model (100D): The authors tested GATSBI on a 100-dimensional parameter problem modeling wave propagation on a 1D surface—significantly higher-dimensional than typical SBI tasks. GATSBI produced well-calibrated posteriors that captured the underlying physical structure of the basin depth, performing on par with Neural Posterior Estimation (NPE) and significantly better than Neural Likelihood Estimation (NLE).

Shallow Water Model Results

Noisy Camera Model (784D): In an even more extreme 784-dimensional problem using the EMNIST dataset (handwritten letters), the "prior" was the set of clean images, and the simulator added blur and noise. GATSBI excelled here, recovering crisp, recognizable letters from blurred images. In contrast, NPE failed to produce coherent samples in this extremely high-dimensional space. Furthermore, using Simulation-Based Calibration (SBC), the authors showed that GATSBI provides statistically trustworthy uncertainty estimates, even at this scale.

Limitations and Future Directions

Despite its successes, GATSBI has limitations. Like all GANs, it is sensitive to hyperparameters and can be difficult to train, sometimes requiring more tuning than standard SBI methods. Additionally, training GATSBI takes significantly longer than some other neural SBI methods (days versus minutes or hours). Finally, GATSBI provides an "implicit" posterior: you can draw samples from it, but you cannot directly evaluate the probability density $q(\theta|x)$ for a specific $\theta$.

Nevertheless, GATSBI opens up exciting opportunities. By bridging GANs and SBI, it paves the way for leveraging future advances in GAN architectures and regularization to perform Bayesian inference on increasingly complex, high-dimensional, and spatially structured scientific models.

Summary updated

BibTeX
@inproceedings{ramesh2022gatsbi,
  author = {Poornima Ramesh and Jan-Matthis Lueckmann and Jan Boelts and Álvaro Tejero-Cantero and David S. Greenberg and Pedro J. Gonçalves and Jakob H. Macke},
  title = {{GATSBI: Generative Adversarial Training for Simulation-Based Inference}},
  booktitle = {International Conference on Learning Representations},
  year = {2022},
  url = {https://openreview.net/forum?id=0A9uQhTX1DU},
}
Figure