Mining gold from implicit models to improve likelihood-free inference

Johann Brehmer, Gilles Louppe, Juan Pavez, Kyle Cranmer

Introduction

In fields ranging from particle physics to epidemiology, scientific understanding is often encoded in complex computer simulators. These simulators are "implicit models": while they can generate realistic data samples ($x$) given parameters ($\theta$), they do not provide an explicit formula for the marginal likelihood $p(x|\theta)$. This makes traditional statistical inference difficult.

The Challenge of Implicit Models

Standard "likelihood-free inference" (LFI) methods, such as Approximate Bayesian Computation (ABC), treat the simulator as a black box. They require running the simulator millions of times to compare outputs with observed data. For high-fidelity simulations that take minutes or hours to run once, this approach is computationally prohibitive. The fundamental bottleneck is sample efficiency.

Figure 1: A Galton board simulator (top) and the resulting probability distributions for different parameters (bottom). The complexity of the internal paths makes the marginal likelihood intractable.

Mining the "Gold" from Simulators

The key insight of this work is that simulators are not truly black boxes. While the marginal likelihood $p(x|\theta)$ is intractable because it requires integrating over all possible internal simulation paths ($z$), the joint likelihood of a specific path $p(x, z|\theta)$ is often easy to calculate.

The authors propose "mining" two types of information—the "gold"—from these latent processes:

  1. The Joint Score: The gradient of the log-probability of a simulation path with respect to the parameters.
  2. The Joint Likelihood Ratio: The ratio of path probabilities under different parameter sets.

By training neural network surrogates to regress against these joint quantities, the models naturally learn the marginal likelihoods or likelihood ratios needed for inference. This "regression trick" allows the network to effectively "un-marginalize" the intractable integrals by learning the conditional expectation of the joint data.

New Algorithmic Architectures

The paper introduces several techniques to leverage this augmented data:

  • RASCAL & CASCAL: These methods combine traditional classifier-based approaches with joint score information to refine likelihood ratio estimates.
  • SCANDAL: This approach augments Neural Density Estimation (such as normalizing flows) with score information to learn the likelihood function directly.
  • SALLY & SALLINO: These are local methods that treat the score as a "sufficient statistic," enabling massive dimensionality reduction in high-dimensional parameter spaces.

Empirical Performance

The proposed methods were evaluated on benchmarks including a Galton board, predator-prey dynamics (Lotka-Volterra), and Higgs boson production. Across these tasks, the augmented methods demonstrated a massive leap in performance.

Figure 2: Expected Mean Squared Error (MSE) on the log-likelihood ratio vs. training sample size. The proposed RASCAL and SALLY methods achieve significantly lower error with orders of magnitude less data than traditional baselines.

As shown in the results, methods like RASCAL can achieve the same level of precision as standard techniques while using up to 100x less training data. This efficiency is crucial for applying advanced inference to the most computationally demanding scientific simulators.

Discussion and Limitations

While powerful, these techniques require the simulator to be differentiable or for the internal state to be accessible, which may be challenging for legacy codebases. Furthermore, the joint likelihood ratio can exhibit high variance when comparing parameter sets that are very far apart in the latent space. Despite these challenges, "mining" latent information represents a significant step forward in making high-fidelity scientific inference practical.

Summary updated

BibTeX
@misc{brehmer2018mining,
  author = {Johann Brehmer and Gilles Louppe and Juan Pavez and Kyle Cranmer},
  title = {{Mining gold from implicit models to improve likelihood-free inference}},
  year = {2018},
  eprint = {1805.12244},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1805.12244},
}
Figure