Standard Bayesian Optimization (BO) often assumes every experiment costs the same. But in the real world, training a model for 100 epochs takes significantly longer than training it for 10. This paper introduces Budgeted Multi-Step Expected Improvement (B-MS-EI), a non-myopic acquisition function that plans several steps ahead to navigate unknown, varying evaluation costs under a strict total budget.
The Challenge of Unknown and Varying Costs
In many engineering and machine learning tasks, evaluating a "black-box" function is expensive. BO helps find the optimum of these functions with few evaluations. However, most BO methods ignore two critical realities:
- Heterogeneous Costs: Evaluating different points in the search space can have vastly different costs (e.g., training a large neural network vs. a small one).
- Unknown Costs: We often don't know exactly how much an evaluation will cost until we actually perform it.
Existing "cost-aware" methods usually just divide the Expected Improvement (EI) by the estimated cost, a metric known as Expected Improvement per Unit of Cost (EI-PUC). The authors prove that these greedy, "myopic" approaches can be arbitrarily worse than an optimal policy because they fail to account for how a high-cost evaluation today might prevent multiple high-value, low-cost evaluations tomorrow.
The B-MS-EI Approach
The authors frame budgeted BO as a Markov Decision Process (MDP) with a random horizon. Because costs are unknown, you don't know exactly when your budget will run out, making the "horizon" of the decision process a random variable.
Key components of their solution include:
- B-MS-EI Acquisition Function: Unlike standard EI, which only looks at the immediate next step, B-MS-EI looks $N$ steps into the future. It calculates the expected improvement at the end of a sequence of evaluations, considering the remaining budget.
- One-Shot Multi-Step Trees: To make the complex math of "looking ahead" computationally feasible, they use a "scenario tree" approach. This allows them to optimize the entire sequence of future points simultaneously using modern auto-differentiation tools like BoTorch.
- Budget Scheduling: Since $N$ is usually small (e.g., 2 or 4 steps) due to computational limits, they use a "fantasy budget" heuristic to decide how much of the total remaining budget to "allocate" to the current look-ahead window.
Key Insights: The "Greedy" Trap
The authors provide a formal proof showing that greedy methods like EI-PUC can fail spectacularly.
Myopic algorithms might waste the entire budget on "cheap" points that provide almost no information, or blow the budget on one "expensive" point when two medium-cost points would have found the optimum. In this framework, the algorithm must decide if it's worth spending budget just to learn where the "cheap" areas of the search space are—introducing a secondary exploration-exploitation trade-off. By treating the horizon as random (dependent on accumulated cost), the model more accurately reflects real-world budget constraints.
Experimental Results
The researchers evaluated their method on a mix of synthetic functions (Dropwave, Alpine1, Ackley, Shekel5) and real-world AutoML benchmarks, including tuning hyperparameters for Latent Dirichlet Allocation (LDA), a CNN on CIFAR-10, and a Random Forest regressor. They also tested it on an energy-aware robot pushing simulation.
B-MS-EI consistently outperformed standard EI and cost-normalized variants (EI-PUC, EI-PUC-CC) across almost all benchmarks:
- Efficiency: On the LDA and CNN tasks, B-MS-EI reached lower regret levels significantly faster (in terms of cumulative cost/time) than baselines.
- Performance Gap: The advantage of B-MS-EI was most pronounced in "difficult" cost landscapes where the optimal points were expensive or where cost uncertainty was high.
- Look-ahead Depth: Using 4 look-ahead steps ($N=4$) generally performed better than 2 steps, confirming that longer-term planning pays off in budgeted scenarios.
Limitations and Future Work
While powerful, B-MS-EI has limitations. Calculating the B-MS-EI acquisition function is much slower than standard EI (taking minutes vs. seconds). While this is negligible if the actual experiment takes 10 hours, it becomes a bottleneck for fast-evaluating functions. Furthermore, the scenario tree grows exponentially with the number of look-ahead steps $N$, limiting how far into the future the algorithm can realistically "see."
The authors suggest that extending this logic to multi-fidelity settings—where you can choose between low-accuracy/cheap and high-accuracy/expensive evaluations—is a promising next step for future research.
Summary updated