Looping in the Human: Collaborative and Explainable Bayesian Optimization

Masaki Adachi, Brady Planden, David A. Howey, Michael A. Osborne, Sebastian Orbell, Natalia Ares, Krikamol Muandet, Siu Lun Chau

Abstract

Like many optimizers, Bayesian optimization often falls short of gaining user trust due to opacity. While attempts have been made to develop human-centric optimizers, they typically assume user knowledge is well-specified and error-free, employing users mainly as supervisors of the optimization process. We relax these assumptions and propose a more balanced human-AI partnership with our Collaborative and Explainable Bayesian Optimization (CoExBO) framework. Instead of explicitly requiring a user to provide a knowledge model, CoExBO employs preference learning to seamlessly integrate human insights into the optimization, resulting in algorithmic suggestions that resonate with user preference. CoExBO explains its candidate selection every iteration to foster trust, empowering users with a clearer grasp of the optimization. Furthermore, CoExBO offers a no-harm guarantee, allowing users to make mistakes; even with extreme adversarial interventions, the algorithm converges asymptotically to a vanilla Bayesian optimization. We validate CoExBO’s efficacy through human-AI teaming experiments in lithium-ion battery design, highlighting substantial improvements over conventional methods.

Introduction

Bayesian Optimization (BO) is the gold standard for optimizing "expensive" black-box systems, such as tuning chemical reactions or designing new materials. However, BO often suffers from a "trust gap." Experts frequently possess intuitive "tacit knowledge" that is difficult to translate into the rigid mathematical priors required by standard BO.

Existing human-in-the-loop methods often fall into two traps: they either assume the human is a perfect oracle—leading to failure if the expert makes a mistake—or they treat the human as a mere data-entry clerk. CoExBO addresses the need for a balanced partnership where the AI explains its reasoning and the human provides feedback through simple preferences.

Conceptual overview of the CoExBO framework, where a robot suggests candidates and explains its reasoning to a human expert.

Methods

The CoExBO framework stands out through three main technical components:

  1. Preference Learning: Instead of asking experts for complex probability distributions, CoExBO presents two candidates and asks for a preference. It uses a Bradley-Terry model paired with a Gaussian Process (GP) to implicitly learn the user’s internal preference model.
  2. A New Acquisition Function: The framework introduces a modified Upper Confidence Bound (UCB) that synthesizes the standard surrogate model with the learned human preference model. It includes a decaying hyperparameter ($\gamma$) that gradually reduces the weight of human opinion as more experimental data is collected, ensuring the system remains robust against human error.
  3. Explainability via Shapley Values: To help the human make informed choices, CoExBO uses GPSHAP (a Shapley-value-based attribution method) to show which features made a candidate look promising. This turns the optimization into a two-way conversation.
Detailed interaction showing the AI's internal Gaussian Process models, user preference models, and feature importance via Shapley values.

Experimental Validation

The authors validated CoExBO using both mathematical benchmarks and high-stakes engineering problems:

  • Synthetic Functions: Standard testbeds including the Ackley, Hölder Table, Styblinski-Tang, Michalewicz, and Rosenbrock functions.
  • Real-World Battery Design: Two lithium-ion battery electrolyte design tasks aimed at maximizing ionic conductivity. One involved a well-known material system and the other an unfamiliar acetate-based system.

Key Insights and Results

  • Relative > Absolute: Humans excel at relative comparisons (A vs. B) but struggle with absolute quantifications. Building the interface around preferences lowers the cognitive load on the expert.
  • The "No-Harm" Guarantee: CoExBO is proven to be asymptotically equivalent to vanilla BO. Even if a user provides consistently wrong advice, the algorithm will eventually ignore it and find the global optimum.
  • Superior Performance: In synthetic tests, CoExBO consistently outperformed eight baselines. In battery design experiments, the "Expert + CoExBO" team reached optimal conductivity significantly faster than automated methods alone.
  • Trust and Transparency: Human participants reported higher trust levels when using the explainable version of the tool. Shapley values effectively highlighted features that aligned with chemical expertise, helping to correct automation and confirmation biases.

Limitations and Future Work

While promising, CoExBO has some limitations. Calculating Shapley values for Gaussian Processes can be computationally intensive as the number of features grows. Additionally, the system currently requires a human in the loop for every iteration. Future work could explore asynchronous loops or extending the "no-harm" guarantee to other acquisition functions like Expected Improvement (EI).

Summary updated

BibTeX
@inproceedings{adachi2024looping,
  author = {Masaki Adachi and Brady Planden and David A. Howey and Michael A. Osborne and Sebastian Orbell and Natalia Ares and Krikamol Muandet and Siu Lun Chau},
  title = {{Looping in the Human: Collaborative and Explainable Bayesian Optimization}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2024},
  url = {https://openreview.net/forum?id=0MgaCbB3X3},
}
Figure