Batch Bayesian Optimization For Replicable Experimental Design

Zhongxiang Dai, Quoc Phong Nguyen, Sebastian Shenghong Tay, Daisuke Urano, Richalynn Leong, Bryan Kian Hsiang Low, Patrick Jaillet

Introduction

In fields such as precision agriculture, automated machine learning (AutoML), and robotics, researchers often face a fundamental challenge: experimental observations are both expensive and inherently noisy. When conducting experiments in parallel batches to save time, the presence of heteroscedastic noise—where the variance of the noise changes depending on the experimental conditions—further complicates the optimization process. To ensure results are reliable and replicable, practitioners typically repeat (replicate) experiments multiple times. However, every replication of a known condition consumes a portion of a finite budget that could otherwise be used to explore new, potentially superior conditions.

This paper introduces Batch Thompson Sampling for Replicable Experimental Design (BTS-RED), a framework designed to navigate this trade-off. By adaptively determining the number of replications based on predicted noise levels, BTS-RED ensures that experimental resources are spent where they are most needed to achieve reliable, high-performing, and reproducible outcomes.

The Problem: The Replication-Exploration Trade-off

Traditional Bayesian Optimization (BO) methods often assume uniform noise or ignore the necessity of replication entirely. In real-world scientific discovery, this is rarely the case. For instance, in plant growth experiments, certain pH levels might lead to highly predictable growth, while others might result in volatile outcomes due to biological sensitivities.

If a researcher uses a fixed number of replications for every experiment, they risk two failures: over-spending budget on low-noise areas where one or two samples would suffice, or under-sampling high-noise areas, leading to "false positives" that cannot be replicated. Furthermore, many researchers are risk-averse; they do not simply seek the highest average performance, but rather high performance that is consistent and reproducible across different trials.

The BTS-RED Framework

The core innovation of BTS-RED is its adaptive replication rule. The algorithm sets a target "effective noise" level ($R^2$) and calculates the required number of replications ($n_t$) for a specific input $x$ using the formula:

$$n_t = \lceil \sigma^2(x)/R^2 \rceil$$

By varying $n_t$ according to the local noise variance $\sigma^2(x)$, the framework effectively treats a heteroscedastic problem as one with uniform noise. The authors propose three specific algorithmic variants to handle different practical constraints:

  1. BTS-RED-Known: Applied when the noise variance of the system is pre-characterized. It uses Thompson Sampling to select a batch of inputs and applies the replication rule to stabilize the effective noise.
  2. BTS-RED-Unknown: A more flexible version that uses a secondary Gaussian Process (GP) to model and learn the noise variance across the input space simultaneously with the objective function.
  3. Mean-Var-BTS-RED: Tailored for risk-averse scenarios, this variant optimizes a "mean-variance" objective. It seeks inputs that maximize expected performance while minimizing variance, ensuring that the identified optima are both high-performing and stable.

Experimental Evaluation

The researchers validated BTS-RED across a diverse suite of benchmarks, ranging from synthetic simulations to high-dimensional real-world problems:

  • Precision Agriculture: Tuning pH and ammonium concentrations in plant growth models to optimize leaf area while minimizing "tipburn" (a physiological disorder).
  • AutoML (EMNIST): Tuning hyperparameters for Support Vector Machines (SVMs) across 100 different image classification tasks. The goal was to find configurations that perform reliably across a wide variety of datasets.
  • High-Dimensional Control: Testing on the "Lunar-Lander" (12D) and "Robot Pushing" (14D) tasks from OpenAI Gym, which involve complex environmental noise and high-dimensional search spaces.

Key Insights and Results

Efficiency through "Effective Noise"

The most significant theoretical contribution is the proof that by maintaining a constant effective noise level through adaptive replication, the batch algorithm achieves "asymptotically no-regret" performance. This provides a mathematical guarantee that the algorithm will eventually find the global optimum despite the noise. The authors also provide a theoretical guideline for setting the hyperparameter $R^2$ based on the total experimental budget.

Performance and Robustness

In empirical tests, BTS-RED consistently outperformed standard batch Thompson Sampling that utilized fixed replication counts. It proved particularly resilient in high-noise environments where sequential BO methods (like GP-UCB) often failed by being misled by noisy outliers. Even in 12- and 14-dimensional spaces, the framework maintained strong performance, demonstrating its scalability beyond simple toy problems.

Prioritizing Reproducibility

In the AutoML experiments, the Mean-Var variant of BTS-RED successfully identified hyperparameter settings that were not only high-performing on average but also exhibited significantly lower variance across different tasks. This capability is crucial for "AI for Science," where the goal is often to find solutions that work reliably in the real world, not just in a single optimized trial.

Conclusion and Future Work

BTS-RED provides a principled bridge between Bayesian Optimization and experimental design. By treating replication as a dynamic decision rather than a static parameter, it allows researchers to maximize the utility of their experimental budgets.

Future research directions include refining the budget allocation heuristics to ensure no resources are left unused between batches and integrating adaptive replication into other acquisition functions like Expected Improvement (EI). Additionally, the authors suggest that extending this logic to neural network-based bandits could further enhance the framework's ability to handle the massive, complex datasets common in modern scientific discovery.

Summary updated

BibTeX
@inproceedings{dai2023batch,
  author = {Zhongxiang Dai and Quoc Phong Nguyen and Sebastian Shenghong Tay and Daisuke Urano and Richalynn Leong and Bryan Kian Hsiang Low and Patrick Jaillet},
  title = {{Batch Bayesian Optimization For Replicable Experimental Design}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=Xj4LJiXvlX},
}
Figure