Variational Bayesian Optimal Experimental Design

Adam Foster, Martin Jankowiak, Eli Bingham, Paul Horsfall, Yee Whye Teh, Tom Rainforth, Noah D. Goodman

TL;DR

This paper introduces a suite of fast, amortized variational estimators for Bayesian Optimal Experimental Design (BOED). By replacing slow, nested Monte Carlo simulations with learned variational approximations, the authors achieve significantly faster convergence rates ($O(T^{-1/2})$ vs $O(T^{-1/3})$), enabling real-time, adaptive experimental design for complex models.

What Problem Does This Paper Address?

In fields ranging from psychology to bioinformatics, experiments are expensive. Bayesian Optimal Experimental Design (BOED) provides a mathematical framework to choose the "design" (e.g., which question to ask, which drug dose to give) that maximizes the Expected Information Gain (EIG) about unknown parameters.

The catch? Calculating EIG is "doubly intractable." It requires computing an expectation over possible experimental outcomes, where each outcome itself requires solving a posterior inference problem. Standard methods like Nested Monte Carlo (NMC) are prohibitively slow because they treat every possible outcome as a brand-new inference task. This makes BOED nearly impossible to use in "closed-loop" settings where the next design must be chosen immediately after seeing the previous result.

Methods

The authors propose using amortized variational inference to break the EIG bottleneck. Instead of running a separate inference for every possible outcome $y$, they train a global variational model to "learn" the relationship between outcomes and parameters across the entire design space.

They introduce four distinct estimators:

  1. $\hat{\mu}_{post}$ (Variational Posterior): Learns an amortized approximation of the posterior $p(\theta|y, d)$. It provides a lower bound on EIG.
  2. $\hat{\mu}_{marg}$ (Variational Marginal): Learns an approximation of the marginal density of outcomes $p(y|d)$. It provides an upper bound and is useful when the parameter space is high-dimensional.
  3. $\hat{\mu}_{VNMC}$ (Variational NMC): A "best of both worlds" approach. It uses a variational proposal to perform importance sampling within an NMC framework. Unlike the others, it is asymptotically consistent, meaning it converges to the true EIG even if the variational family is imperfect.
  4. $\hat{\mu}_{m+\ell}$ (Implicit Likelihood): Designed for "simulator" models where you can generate samples but cannot evaluate the likelihood function directly.

All methods are implemented in the Pyro probabilistic programming language, leveraging neural networks for the variational approximations.

Key Insights and Ideas

  • Amortization is the Secret Sauce: By learning a functional mapping from outcomes to posteriors, the cost of inference is "paid upfront" during training. This allows for near-instantaneous EIG estimation during the actual experiment.
RMSE in EIG estimate vs Time for varying gradient steps
  • Superior Convergence: Theoretically, the variational estimators achieve a convergence rate of $O(T^{-1/2})$ relative to total computational cost $T$. This is a fundamental improvement over the $O(T^{-1/3})$ rate of standard Nested Monte Carlo.
  • Dimensionality Matters: A key heuristic provided is that if your parameters $\theta$ are high-dimensional, you should approximate the marginal $p(y|d)$. If your outcomes $y$ are high-dimensional, you should approximate the posterior $p(\theta|y, d)$.
  • Consistency vs. Speed: While pure variational methods are faster, VNMC provides a critical safety net for researchers who need exactness but want the speed boost of a learned proposal.

Key Results

  • Accuracy & Speed: In the A/B testing and Preference benchmarks, the variational estimators (especially $\hat{\mu}_{post}$ and $\hat{\mu}_{VNMC}$) showed significantly lower Mean Squared Error (MSE) than NMC and other baselines like LFIRE for the same computational budget.
Convergence of Marginal and Posterior estimators across different sample sizes and time budgets
  • Real-world Utility: In the Mechanical Turk experiment, the BOED-driven design (using the $\hat{\mu}_{m+\ell}$ estimator) reduced posterior entropy much faster than random designs, meaning it learned the human participants' traits using fewer questions.
  • Robustness: The methods proved robust enough to handle the "nuisance variables" (individual differences) in mixed-effects models, which typically complicate EIG calculations.

Limitations and Future Work

  • Variational Bias: Except for VNMC, the estimators are biased if the variational family (e.g., a Normal distribution) cannot represent the true posterior.
  • Optimization Hurdles: Training the variational parameters $\phi$ involves stochastic gradient descent, which can get stuck in local optima, potentially leading to sub-optimal experimental designs.
  • Future Directions: The authors suggest extending these ideas to "multi-step" lookahead designs (planning several steps into the future) and exploring more complex variational families like Normalizing Flows to reduce bias.

Summary updated

BibTeX
@inproceedings{foster2019variational,
  author = {Adam Foster and Martin Jankowiak and Eli Bingham and Paul Horsfall and Yee Whye Teh and Tom Rainforth and Noah D. Goodman},
  title = {{Variational Bayesian Optimal Experimental Design}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2019},
  url = {https://openreview.net/forum?id=dnFdv4rUlCm},
}
Figure