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

BoFire: Bayesian Optimization Framework Intended for Real Experiments

Johannes P. Dürholt, Thomas S. Asche, Johanna Kleinekorte, Gabriel Mancino-Ball, Benjamin Schiller, Simon Sung, Julian Keupp, Aaron Paul Osburg, Toby Boyne, Ruth Misener, Rosona Eldred, Chrysoula Dimitra Kappatou, Robert Matthew Lee, Dominik Linzner, Wagner Steuer Costa, David Walz, Niklas Wulkow, Behrang Shafei · DOI

Abstract

Bayesian Optimization (BO) has shown immense promise in accelerating scientific discovery, yet its adoption in industrial chemistry is often hindered by the gap between theoretical algorithms and practical laboratory constraints. We present BoFire, an open-source Python framework designed to bridge this divide. By integrating state-of-the-art BO with classical Design of Experiments (DoE), advanced constraint handling, and a robust, JSON-serializable data model, BoFire provides a production-ready toolkit for both "self-driving" laboratories and human-in-the-loop research.

Introduction

In the idealized settings of machine learning research, optimization often occurs in unconstrained or simply bounded spaces. However, the reality of industrial chemistry is significantly more complex. Designing a new chemical formulation, such as a paint or a catalyst, involves navigating high-dimensional spaces with diverse input types, managing hardware limitations that restrict the number of ingredients per batch, and adhering to logistical constraints where certain variables must remain constant across multiple experiments.

Existing libraries like BoTorch or Ax provide powerful optimization primitives but often require extensive boilerplate code to handle these real-world nuances. BoFire was developed by a consortium of industry leaders (including Evonik and BASF) and academic partners to provide an "experimentalist-first" framework that addresses these challenges head-on.

The BoFire Optimization Loop

BoFire structures the optimization process into a modular, iterative workflow that accommodates both automated and manual experimental cycles.

The BoFire optimization workflow, illustrating the iterative loop between domain definition, strategy selection, surrogate modeling, and experimental execution.

The framework separates the problem description (the "Domain") from the optimization logic (the "Strategy"). This modularity allows researchers to define their chemical space once and then seamlessly transition between different strategies—such as initial space-filling designs (DoE) and subsequent predictive optimization (BayesOpt)—without restructuring their entire pipeline.

Framework Architecture and Key Features

BoFire is built upon BoTorch, leveraging its advanced Gaussian Process (GP) and acquisition function implementations. However, it wraps these tools in a structure optimized for deployment and integration.

Advanced Constraint Handling

One of BoFire's standout features is its native support for complex, domain-specific constraints. These include:

  • NChooseK Constraints: Essential for formulation chemistry, where one might need to select a subset of $k$ ingredients from a larger pool of $N$ candidates.
  • InterpointEquality Constraints: Crucial for batch experiments where specific variables (e.g., temperature or pressure) must be held constant across all samples in a single run due to hardware limitations.

Diverse Input Types and Cheminformatics Integration

The framework natively handles continuous, discrete, and categorical variables. Furthermore, it incorporates molecular descriptors via SMILES strings, making it uniquely suited for cheminformatics and drug discovery applications.

Serialization and API-First Design

To support modern "self-driving" labs, BoFire utilizes Pydantic for full JSON-serialization of every component. This ensures that problem definitions, surrogate models, and optimization strategies can be easily transmitted via RESTful APIs and stored in structured databases. This "API-first" philosophy facilitates the integration of software optimization loops with physical laboratory automation hardware.

Real-World Application: Paint Formulation

The utility of BoFire is demonstrated through a synthetic paint formulation case study. In this scenario, a chemist must optimize for viscosity and hydrophobicity by selecting from 20 potential compounds, with the constraint that each mixture can contain at most 5 ingredients. BoFire enables the researcher to navigate this constrained, multi-objective Pareto front efficiently, balancing competing goals like performance and cost.

Conclusion and Future Directions

BoFire represents a significant step toward standardizing machine learning infrastructure in the chemical industry. By providing a shared, open-source framework, competitors and academic partners alike can contribute to a robust ecosystem for experimental optimization.

Future development is focused on integrating multi-fidelity modeling. This will allow the framework to combine data from low-cost, low-accuracy simulations with high-cost, high-accuracy physical experiments, further reducing the time and resources required for discovery. BoFire is already deployed in daily industrial operations, proving its value as a bridge between advanced optimization theory and practical laboratory reality.

Summary updated

BibTeX
@misc{durholt2024bofire,
  author = {Johannes P. Dürholt and Thomas S. Asche and Johanna Kleinekorte and Gabriel Mancino-Ball and Benjamin Schiller and Simon Sung and Julian Keupp and Aaron Paul Osburg and Toby Boyne and Ruth Misener and Rosona Eldred and Chrysoula Dimitra Kappatou and Robert Matthew Lee and Dominik Linzner and Wagner Steuer Costa and David Walz and Niklas Wulkow and Behrang Shafei},
  title = {{BoFire: Bayesian Optimization Framework Intended for Real Experiments}},
  year = {2024},
  eprint = {2408.05040},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2408.05040},
}
Figure