Optimizing Expensive Black Box Functions with Probabilistic Surrogates

173 concepts155 papers1 proposal

Imagine trying to discover the optimal chemical composition for a new solid-state battery electrolyte, or designing the perfect low-drag hull for an underwater vehicle. In both scenarios, evaluating a single configuration requires running a multi-day supercomputer simulation or conducting a costly physical experiment. Furthermore, you lack an analytical formula for the underlying system and cannot compute its gradients directly.

This is the challenge of expensive black-box optimization. Traditional optimization techniques fail here: random sampling requires too many trials, while gradient-based methods are unusable without explicit derivatives.

Bayesian Optimization (BO) solves this by framing optimization as an active learning problem. Instead of blindly guessing, BO constructs a cheap mathematical stand-in—a surrogate model—of the expensive function. It then uses this model to intelligently select the next best point to sample, maximizing the chance of finding the global optimum while minimizing the total number of costly evaluations.

The Probabilistic Surrogate Model

To optimize a function without evaluating it everywhere, we must build a model that interpolates between our known data points. Crucially, this model cannot just provide a single guess; it must also quantify its own uncertainty.

The standard choice for this surrogate is a Gaussian Process (GP). When we fit a GP to our observed data, it yields a full probability distribution over possible function values across the entire design space. At any unobserved point $x$, the GP provides two critical pieces of information:

  1. A mean prediction $\mu(x)$, representing our best guess of the function's value.
  2. A predictive variance $\sigma^2(x)$, representing our uncertainty about that region.

As shown by Lindsay Bassman Oftelie et al. in Active learning for accelerated design of layered materials, this probabilistic framework allows researchers to map out complex material property landscapes with minimal data.

While Gaussian Processes are highly effective for smooth, continuous spaces, other probabilistic models can be substituted depending on the landscape's constraints. For instance, Lichao Wu et al. in I Choose You: Automated Hyperparameter Tuning for Deep Learning-based Side-channel Analysis note that alternative surrogates like Tree-structured Parzen Estimators or Random Forests can be better suited for discrete or highly non-linear domains, a sentiment echoed by Alexander Tornede et al. in A comparison of heuristic, statistical, and machine learning methods for heated tool butt welding of two different materials.

The Acquisition Function: Balancing Exploration and Exploitation

Once the surrogate model maps the design space, the algorithm must decide where to sample next. It does this by maximizing an acquisition function, which scores every potential point based on the surrogate's mean and variance.

The acquisition function must mathematically balance two competing forces:

  • Exploitation: Sampling in regions where the surrogate predicts high performance (maximizing $\mu(x)$).
  • Exploration: Sampling in regions where the surrogate is highly uncertain (maximizing $\sigma^2(x)$), which helps discover hidden peaks and refines the global model.
  True Function:  ------- (Unknown)
  Surrogate Mean: ------- 
  Uncertainty:    [     ]

  High Mean, Low Variance   --> High Exploitation Value
  Low Mean, High Variance   --> High Exploration Value

Different acquisition functions formalize this trade-off in unique ways:

Rather than relying on these heuristics, Zi Wang et al. in Optimization as Estimation with Gaussian Processes in Bandit Settings introduce an alternative approach that directly estimates the probability of a point being the global maximizer, effectively auto-tuning the exploration-exploitation trade-off without manual parameter tweaking.

Handling Multi-Objective and Constrained Spaces

Real-world engineering rarely involves optimizing a single metric in isolation. Often, we face conflicting goals or strict operational boundaries where certain designs are completely invalid.

When navigating multiple objectives simultaneously—such as balancing coverage and capacity in cellular networks—the goal shifts from finding a single optimum to mapping out the Pareto frontier. As demonstrated by Ryan M. Dreifuerst et al. in Optimizing Coverage and Capacity in Cellular Networks using Machine Learning, multi-objective Bayesian optimization can utilize acquisition functions like Expected Hypervolume Improvement (EHVI) to discover these trade-offs with orders of magnitude fewer evaluations than reinforcement learning. Anabel Yong et al. in A study of EHVI vs fixed scalarization for molecule design further explore how Monte Carlo sampling can stochastically approximate these complex hypervolume calculations in high-dimensional objective spaces.

Furthermore, many design spaces contain regions that are physically or operationally invalid. To address this, Alaleh Ahmadianshalchi in Preference-Aware Constrained Multi-Objective Bayesian Optimization (Student Abstract) demonstrates how information-theoretic acquisition functions can incorporate user preferences and safety constraints simultaneously, ensuring the algorithm only samples feasible, high-performing regions.

Broad Applications and Platforms

Because Bayesian optimization treats the underlying system as a pure black box, it is incredibly versatile. It has been deployed to accelerate autonomous robotic exploration by treating information gain as a latent function (Yang Xu et al. in CARE: Confidence-Rich Autonomous Robot Exploration Using Bayesian Kernel Inference and Optimization), to optimize biological systems and enzyme stability (Waritsara Khongkomolsakul et al. in Improving Thermal and Gastric Stability of Phytase via pH Shifting and Coacervation: A Demonstration of Bayesian Optimization for Rapid Process Tuning), and to find rare critical edge cases for automated driving systems (Barbara Schütt et al. in An Application of Scenario Exploration to Find New Scenarios for the Development and Testing of Automated Driving Systems in Urban Scenarios). In antibody design, Alexandra Gessner in Active learning for affinity prediction of antibodies utilizes a Gaussian Process surrogate to navigate the combinatorial explosion of protein sequences.

To unify these diverse applications, open-source platforms like Ax have been developed. As detailed by Miles Olson et al. in Ax: A Platform for Adaptive Experimentation, these platforms streamline the deployment of probabilistic surrogate optimization, making adaptive experimentation accessible across both software hyperparameter tuning and physical sciences.

History & citationVersion 1 · 2026-10-04

Current · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_bayesian_optimization_7c02bea8,
  title = {Bayesian optimization},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/bayesian-optimization/rdr_7c02bea8b0e6416e8b2e520e8bcf2f69},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-27},
}

This exact version (version 1, frozen text):

@misc{lacuna_bayesian_optimization_7c02bea8_v1,
  title = {Bayesian optimization},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/bayesian-optimization/rdr_7c02bea8b0e6416e8b2e520e8bcf2f69/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-27},
}
About

These directions overlap with this one through shared papers.

See something wrong? Report a mistake