NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Gradient-based Bayesian Experimental Design for Implicit Models using Mutual Information Lower Bounds

Steven Kleinegesse, Michael U. GutmannarXiv 2021

Abstract

Bayesian Experimental Design (BED) aims to optimize experimental settings to maximize information gain. However, for "implicit models"—simulators where the likelihood is intractable—calculating and optimizing Mutual Information (MI) is challenging. This paper introduces a gradient-based framework that uses neural networks to parameterize variational lower bounds on MI. By employing stochastic gradient ascent, the framework simultaneously optimizes experimental designs and approximates posterior distributions. The method's versatility is demonstrated across tasks such as parameter estimation and model discrimination in epidemiological and toy models.

Introduction

In fields like epidemiology and cosmology, researchers often rely on complex simulators to model real-world phenomena. These simulators are typically "implicit models": while they can generate synthetic data, the underlying likelihood function is mathematically intractable. Planning experiments for such models requires Bayesian Experimental Design (BED), which traditionally involves maximizing the Mutual Information (MI) between model parameters and observed data.

The primary difficulty lies in the fact that MI is hard to estimate and even harder to optimize without explicit gradients. This paper addresses these challenges by proposing a framework that treats BED as a "max-max" optimization problem, leveraging differentiable simulators and neural network-based MI bounds.

Methodology

The proposed framework utilizes a simultaneous optimization strategy to find the best experimental design.

MI Lower Bounds and Optimization

Instead of direct MI calculation, the authors use neural networks to parameterize variational lower bounds, such as NWJ, InfoNCE, and JSD (Jensen-Shannon Divergence). The optimization is a "max-max" procedure:

  1. Tightening the Bound: The neural network parameters are updated to maximize the lower bound, making the MI estimate more accurate.
  2. Optimizing Design: The experimental design variables are updated via stochastic gradient ascent to maximize the (now tighter) MI bound.

To enable gradient flow from the MI bound back to the design variables through the implicit model, the authors use the pathwise gradient estimator. This requires the simulator to be differentiable, allowing the reparameterization of stochastic elements.

Versatility Across Scientific Goals

A significant strength of this framework is its adaptability to different research objectives. By changing the variables of interest, the same optimization machinery can be applied to various tasks.

Table of scientific goals and their corresponding Mutual Information utilities.

As shown in the table above, the framework supports Parameter Estimation (PE), Model Discrimination (MD), joint tasks, and even improving future predictions (FP).

Key Insights and Ideas

One of the most critical insights is the concept of "tightening where it matters." The neural network does not need to provide a globally accurate estimate of MI across the entire design space. Instead, as training progresses, the network focuses its capacity on tightening the bound specifically around the designs that are becoming optimal.

Evolution of the MI lower bound and design optimization during training.

Figure 1 illustrates this process: early in training, the lower bound is loose. As training continues, the bound approaches the reference MI specifically at the "Current Design" location, which eventually converges to the global optimum.

Furthermore, the authors found that the JSD lower bound often provided the most stable performance and high-quality posterior approximations. An added benefit of this approach is "amortized inference": the trained neural network provides an approximation of the posterior distribution for free, eliminating the need for separate likelihood-free inference steps.

Results and Evaluation

The framework was evaluated on toy models and complex epidemiological simulators.

  • Toy Models: In scenarios with non-Gaussian noise and non-linear responses, the framework successfully identified optimal designs. For instance, in linear models, it correctly identified that measurements at the boundaries of the design domain provided the highest signal-to-noise ratio.
  • Epidemiology: The authors applied the method to stochastic SIR and SEIR models. The framework identified that the most informative measurement window for both parameter estimation and model discrimination was between $t=15$ and $t=40$. The JSD-based approach achieved near-perfect F1-scores (0.996) for model discrimination.

Limitations and Future Work

The requirement for a differentiable simulator is the main constraint. While many modern simulators can be implemented in differentiable frameworks (like JAX or PyTorch), those with discrete, non-relaxable operations may require gradient-free alternatives like Bayesian Optimization.

Additionally, this work focuses on static design, where all measurement points are chosen upfront. Extending this framework to sequential design, where experiments are updated iteratively based on incoming data, represents a promising direction for future research.

Summary updated

BibTeX
@misc{kleinegesse2021gradient,
  author = {Steven Kleinegesse and Michael U. Gutmann},
  title = {{Gradient-based Bayesian Experimental Design for Implicit Models using Mutual Information Lower Bounds}},
  year = {2021},
  eprint = {2105.04379},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2105.04379},
}
Figure