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

An Adaptive Approach to Bayesian Optimization with Setup Switching Costs

Stefan Pricopie, Richard Allmendinger, Manuel López-Ibáñez, Clyde Fare, Matt Benatan, Joshua D. KnowlesPPSN 2024

Introduction

In many real-world experimental design scenarios, such as tuning machine learning models or calibrating physical manufacturing lines, the cost of evaluating different parameter configurations is not uniform. While some parameters (cheap dimensions) can be adjusted easily, others (costly dimensions) require significant "retooling" or setup changes, incurring substantial time and financial penalties. Standard Bayesian Optimization (BO) typically assumes a uniform cost for all evaluations, which can lead to inefficient resource allocation in these "switching cost" environments. This paper introduces a framework to address this dilemma, proposing a hyperparameter-free algorithm called Expected Improvement per Unit Cost (EIPU).

Problem Formulation

The search space is partitioned into cheap dimensions ($x_{cheap}$) and costly dimensions ($x_{costly}$). A switching cost is incurred whenever the value of a costly dimension is changed from the previous evaluation. This creates a fundamental trade-off: should the optimizer perform multiple cheap evaluations within the current setup to refine local knowledge, or should it invest its budget in a costly setup change to explore a different region of the search space?

Illustration of the decision space in Bayesian Optimization with switching costs. The algorithm must choose between a cheap evaluation in the current setup or a costly switch to a new setup.

Methodology

The researchers evaluate several strategies for sequential optimization under these constraints:

  • pReuseBO: A heuristic that maintains the current expensive setup with a fixed probability $p$.
  • PSBO (Periodic Switching BO): A method that forces a setup change every $k$ evaluations.
  • EIPU (Expected Improvement per Unit Cost): The primary contribution of this work. EIPU adapts the standard Expected Improvement (EI) acquisition function by normalizing the potential gain by the cost of the evaluation. It compares two candidate points—one that reuses the current setup and one that switches—and selects the one with the higher cost-adjusted value.
  • Cost Cooling: To prevent the algorithm from becoming overly risk-averse toward the end of the budget, a cooling strategy is employed to gradually reduce the influence of switching costs as the total budget is depleted.

Experimental Evaluation

The proposed methods were tested on seven scalable synthetic functions (e.g., Ackley, Rosenbrock, Schwefel) across 30 configurations. These configurations varied in dimensionality (2D to 4D), the ratio of cheap-to-costly dimensions, and the magnitude of the switching cost (ranging from 1x to 32x the cost of a cheap evaluation).

Results and Discussion

Performance was measured using the GAP metric, where 1.0 indicates reaching the global optimum. EIPU demonstrated significant robustness and efficiency, particularly in high-cost scenarios.

Comparison of evaluation paths for two different policies on a synthetic landscape. Policy 1 (red) and Policy 2 (blue) demonstrate different strategies for switching setups (dashed lines) versus reusing them (solid lines).

Key findings include:

  • Superiority in High-Cost Environments: In scenarios with switching costs 16x or 32x higher than cheap evaluations, EIPU consistently outperformed or matched the best-performing baselines.
  • Hyperparameter-Free Advantage: Unlike pReuseBO or PSBO, which require manual tuning of $p$ or $k$, EIPU automatically adapts to the landscape and remaining budget.
  • Exploitation vs. Exploration: EIPU effectively exploits high-performing setups for longer durations, only opting for a costly switch when the marginal utility of local exploration is exhausted.

Conclusion

The EIPU framework provides a principled, adaptive approach to Bayesian Optimization when switching costs are present. By explicitly accounting for the cost of setup changes, it avoids the "tuning trap" of heuristic-based methods and achieves better convergence in resource-constrained environments. Future work will explore lookahead heuristics for multi-step planning and more complex cost models where every dimension has a unique switching penalty.

Summary updated

BibTeX
@inproceedings{pricopie2024adaptive,
  author = {Stefan Pricopie and Richard Allmendinger and Manuel López-Ibáñez and Clyde Fare and Matt Benatan and Joshua D. Knowles},
  title = {{An Adaptive Approach to Bayesian Optimization with Setup Switching Costs}},
  booktitle = {PPSN},
  year = {2024},
  doi = {10.1007/978-3-031-70068-2\_21},
}
Figure