Diagnosing and fixing common problems in Bayesian optimization for molecule design

Austin Tripp, José Miguel Hernández-Lobato

TL;DR

Bayesian optimization (BO) should theoretically excel at sample-efficient molecular design, yet it has historically underperformed heuristic genetic algorithms and reinforcement learning baselines. This paper demonstrates that BO's poor track record stems from three common, fixable pitfalls: an improperly scaled prior width, over-smoothing in molecular similarity kernels, and inadequate acquisition function optimization. By rectifying these three issues in a standard Gaussian Process setup, the authors achieve state-of-the-art performance on the standard Practical Molecular Optimization (PMO) benchmark.

What Problem Does This Paper Address?

Exploring chemical space—estimated at roughly $10^{60}$ drug-like molecules—requires extreme sample efficiency because experimental assays can typically evaluate only $10^2$ to $10^4$ candidates. Despite Bayesian optimization (BO) offering a mathematically principled framework to balance exploration and exploitation, existing benchmarks (notably PMO by Gao et al., 2022) found that BO underperformed random-perturbation methods such as genetic algorithms (GAs) and reinforcement learning (RL).

The authors tackle this paradox by showing that BO's apparent inferiority in molecular design is not a fundamental limitation of the framework, but rather the result of poorly tuned hyperparameters and sub-optimal search strategies that severely bottleneck exploration.

Methods

The paper diagnoses three core failure modes in standard molecular GP-BO pipelines and applies targeted fixes:

  1. Prior Width Pitfall: Setting or learning a kernel amplitude ($\sigma$) that is too small tricks the surrogate model into predicting negligible upside far from the initial (often low-scoring) data.
  2. Fix: Manually set $\sigma = 1.0$, guaranteeing the model assigns reasonable uncertainty across the entire normalized property interval $[0, 1]$.
  3. Over-Smoothing Pitfall: Standard binary Morgan fingerprints check only the presence or absence of subgraphs, meaning molecules of dramatically different sizes (e.g., short vs. long alkane chains, or a drug molecule vs. a repetitive polymer analogue) produce identical fingerprints.
  4. Fix: Switch from binary Morgan fingerprints to count Morgan fingerprints, which reflect repeated substructures and prevent misleadingly high similarity estimates.
  5. Inadequate Search Pitfall: Maximizing the acquisition function via a genetic algorithm with too few generations or too small a population results in proposing near-clones of known molecules.
  6. Fix: Increase genetic algorithm search capacity to propose $\approx 1000$ candidate molecules per evaluated selection (up from $\approx 6$), and reduce the evaluation batch size to 1 to allow more sequential updates.

Datasets

  • PMO Benchmark (Gao et al., 2022): A standard suite comprising 23 distinct molecular property optimization tasks (e.g., QED, DRD2, JNK3, similarity objectives, and multi-parameter optimization targets) where objective values are normalized to $[0, 1]$.
  • ZINC 250k: Used to sample the initial starting pool of 10 molecules per optimization run.

Key Insights and Ideas

  • Hyperparameter defaults can cripple exploration: Fitting kernel variance $\sigma$ via maximum marginal likelihood on an initial pool of mediocre molecules often collapses $\sigma$, making the model overconfident that no unseen region has high reward.
  • Feature representation directly alters the prior: Using binary fingerprints implicitly creates severe over-smoothing where drastically different molecular structures look identical to the kernel, causing the optimizer to prematurely dismiss unexplored chemical scaffolds.
  • BO's "inner loop" is an optimization problem in its own right: Even if the surrogate model is accurate, if the inner optimizer searching the acquisition space is weak, BO collapses into local exploitation. Expanding inner GA search budgets prevents premature convergence.

Key Results

  • New State-of-the-Art on PMO: The corrected GP-BO method achieved a cumulative AUC Top-10 score of 16.303 across the 23 PMO benchmark tasks, outperforming:
  • Prior best from Gao et al. (2022): REINVENT (14.196)
  • MolGA (14.708)
  • Genetic GFN (16.213)
  • Substantial Improvement Over Baseline BO: The authors’ fixes improved upon the original GP-BO implementation in Gao et al. by over 3.0 points—a margin comparable to the gap between the 1st and 10th best methods reported in the benchmark.
  • This performance was achieved using active BO for only 1,000 iterations (10% of the standard 10,000 evaluation budget), suggesting the method's full potential is even higher.

Limitations and Future Work

  • No Ablation Study: The paper presents a pilot study without isolated ablation runs for each of the three fixes, leaving the relative contribution of each adjustment unmeasured.
  • Unexplored Acquisition Functions: The authors stuck to Upper Confidence Bound (UCB) with randomly sampled trade-off parameters ($\beta$) rather than systematically exploring alternative acquisition functions.
  • Simplified Problem Formulation: PMO evaluates noiseless, single-task, unconstrained objectives. Whether these findings translate directly to real-world drug discovery campaigns—which are noisy, multi-objective, and constrained by synthesizability—remains an open question.

Summary updated

BibTeX
@inproceedings{tripp2024diagnosing,
  author = {Austin Tripp and José Miguel Hernández-Lobato},
  title = {{Diagnosing and fixing common problems in Bayesian optimization for molecule design}},
  booktitle = {AI4Science @ ICML},
  year = {2024},
  url = {https://openreview.net/forum?id=V4aG4wsoIt},
}
Figure