Achieving robustness to aleatoric uncertainty with heteroscedastic Bayesian optimisation

Ryan-Rhys Griffiths, Alexander A. Aldrick, Miguel Garcia-Ortegon, Vidhi Lalchand, Alpha A. Lee · DOI

In the quest to discover new drugs or high-performance materials, researchers often turn to Bayesian Optimisation (BO). It is a powerful strategy for finding the "best" input—such as a chemical composition—for an expensive, black-box function like a laboratory experiment. However, most standard BO tools make a dangerous assumption: they assume the "noise" in measurements is uniform across the entire search space.

In their paper, "Achieving Robustness to Aleatoric Uncertainty with Heteroscedastic Bayesian Optimisation," Ryan-Rhys Griffiths and his team at the University of Cambridge argue that ignoring varying noise—known as heteroscedasticity—can lead researchers toward "brittle" solutions that fail in real-world applications. They propose a new framework to identify solutions that are both high-performing and robust to inherent, non-uniform noise.

The Problem: Brittle Peaks and Aleatoric Uncertainty

Imagine designing a new solar cell material. You might find a specific chemical mixture that performs brilliantly in a simulated, "perfect" environment. However, when manufactured, the slightest variation in temperature might cause performance to plummet. This is aleatoric uncertainty—inherent noise that cannot be easily averaged away.

Most BO algorithms assume homoscedasticity: the idea that a measurement at point A is just as noisy as a measurement at point B. If the noise actually varies, a standard BO might suggest a point with a high theoretical peak but massive noise, rather than a slightly lower peak that is much more reliable. The authors aim to bridge this gap by creating a BO scheme that explicitly seeks out "robust" regions of the input space.

Methodology: Modeling the Noise

The authors propose a two-part solution to handle varying noise levels:

  1. The Surrogate Model: Instead of a standard Gaussian Process (GP), they use the Most Likely Heteroscedastic GP (MLHGP). This model fits two GPs simultaneously: one to predict the actual value (the mean) and another to predict the level of noise at that location.
  2. New Acquisition Functions: BO relies on an "acquisition function" to decide where to sample next. The authors introduce two new ones:
  3. HAEI (Heteroscedastic Augmented Expected Improvement): An evolution of the "Augmented EI" heuristic. It rescales the expected improvement based on predicted noise, "cooling off" interest in regions where noise is too high relative to the model's confidence.
  4. ANPEI (Aleatoric Noise-Penalised Expected Improvement): This treats the problem as a multi-objective task, calculating standard Expected Improvement and then subtracting a weighted penalty based on the predicted noise level.
Figure 5: A Heteroscedastic GP fit on the Soil Phosphorus dataset, demonstrating how the model captures varying uncertainty (shaded region) across the input space.

Experimental Validation

The researchers validated their approach on a mix of synthetic and real-world scientific data, including:

  • Synthetic Benchmarks: Modified versions of 1D and 2D functions (e.g., Branin-Hoo, Goldstein-Price) injected with custom non-linear noise functions.
  • Soil Phosphorus Fraction: A dataset relating soil density to phosphorus content, where measurement error varies significantly with density.
  • FreeSolv (Molecular Hydration): A dataset of 642 molecules including actual experimental measurement errors. This allowed the authors to test if their model could find molecules that are "easier" to measure accurately.
Figure 4: Density plots showing the distribution of computational (a) and experimental (b) errors in the FreeSolv dataset, highlighting the heteroscedastic nature of real-world experimental data.

Key Results and Insights

  • Superior Robustness: On tasks with high heteroscedastic noise, the ANPEI acquisition function consistently outperformed standard BO. It successfully steered the search toward regions with low aleatoric noise.
  • Real-World Efficacy: In the FreeSolv molecular screening experiment, the proposed methods found molecules with lower hydration energy (the goal) while simultaneously identifying those with lower experimental error.
  • The "Fantasising" Advantage: Surprisingly, using a heteroscedastic model did not hurt performance even on noiseless tasks. The MLHGP is flexible enough to "fantasise" noise patterns that help it model complex, non-stationary functions better than a standard GP.
  • Safety First: Ablation studies showed no significant downside to using this more complex model even when noise is not strictly heteroscedastic, aside from a slight increase in computational time.

Conclusion and Future Work

While the MLHGP approach is computationally more expensive than standard GPs and requires more initial data to map noise patterns, it offers a vital tool for scientific discovery where reproducibility is key. Future work may explore scaling these methods to higher-dimensional spaces (beyond the 14 dimensions tested) and investigating "antifragility"—the intentional search for high-noise regions where "lucky" outliers might lead to breakthroughs.

Summary updated

BibTeX
@article{griffiths2022achieving,
  author = {Ryan-Rhys Griffiths and Alexander A. Aldrick and Miguel Garcia-Ortegon and Vidhi Lalchand and Alpha A. Lee},
  title = {{Achieving robustness to aleatoric uncertainty with heteroscedastic Bayesian optimisation}},
  journal = {Mach. Learn. Sci. Technol.},
  year = {2022},
  doi = {10.1088/2632-2153/ac298c},
}
Figure