Cost-Sensitive Multi-Fidelity Bayesian Optimization with Transfer of Learning Curve Extrapolation

Dong Bok Lee, Aoxuan Silvia Zhang, Byungjoo Kim, Junhyeon Park, Juho Lee, Sung Ju Hwang, Hae Beom Lee

Abstract

In this paper, we address the problem of cost-sensitive multi-fidelity Bayesian Optimization (BO) for efficient hyperparameter optimization (HPO). Specifically, we assume a scenario where users want to early-stop the BO when the performance improvement is not satisfactory with respect to the required computational cost. Motivated by this scenario, we introduce utility, which is a function predefined by each user and describes the trade-off between cost and performance of BO. This utility function, combined with our novel acquisition function and stopping criterion, allows us to dynamically choose for each BO step the best configuration that we expect to maximally improve the utility in future, and also automatically stop the BO around the maximum utility. Further, we improve the sample efficiency of existing learning curve (LC) extrapolation methods with transfer learning, while successfully capturing the correlations between different configurations to develop a sensible surrogate function for multi-fidelity BO. We validate our algorithm on various LC datasets and found it outperform all the previous multi-fidelity BO and transfer-BO baselines we consider, achieving significantly better trade-off between cost and performance of BO.

Introduction

Hyperparameter optimization (HPO) is critical for deep learning performance but often comes with prohibitive computational costs. While multi-fidelity Bayesian Optimization (BO) methods use partial learning curves to prune poor candidates, they typically suffer from two limitations: cost-insensitivity and sample inefficiency. Most methods assume a fixed budget and fail to account for the diminishing returns of marginal performance gains relative to additional compute time. Furthermore, predicting final performance from early data points is challenging, often leading to excessive exploration in the early stages of optimization.

Methods

We propose CMBO, a framework designed to make HPO "cost-aware" through three primary innovations.

Utility-Based Optimization

Instead of optimizing solely for performance $y$, CMBO optimizes a user-defined utility function $U$, such as $U = y - \alpha b$, where $b$ represents the computational cost and $\alpha$ is a penalty parameter. This allows for an explicit trade-off between model accuracy and resource expenditure.

Cost-Sensitive Acquisition Function

CMBO introduces a novel acquisition function that identifies the configuration and future time step ($\Delta t$) expected to provide the maximum utility gain. This approach enables non-greedy exploration early on while naturally transitioning to exploitation as costs accumulate.

Illustration of utility-based BO and the acquisition function.

Transfer Learning for Learning Curve Extrapolation

To address sample inefficiency, we utilize Prior-Fitted Networks (PFNs)—Transformers trained for in-context Bayesian inference. We enhance these with a "Mixup" strategy, interpolating between datasets and hyperparameter configurations. This allows the model to transfer knowledge from previous tasks, enabling accurate learning curve (LC) extrapolation from the very first observation.

Experimental Evaluation

We evaluated CMBO on three benchmarks: LCBench (tabular datasets), TaskSet (NLP optimization), and PD1 (large-scale vision and NLP architectures).

Results

CMBO consistently outperformed baselines such as ASHA, BOHB, and DyHPO across all benchmarks. By monitoring "normalized regret," CMBO demonstrated the ability to stop automatically when further gains were no longer justified by the cost.

Comparison of CMBO against baselines across LCBench, TaskSet, and PD1 benchmarks.

In cost-sensitive scenarios, CMBO achieved the lowest normalized regret and highest rankings, significantly surpassing existing transfer-BO methods like FSBO. The transfer-learned LC extrapolator allowed CMBO to reach high-utility regions much faster than methods starting from scratch.

Conclusion

CMBO provides a principled approach to cost-sensitive HPO by integrating utility functions with transfer-learned learning curve extrapolation. While the current implementation requires a predefined utility function and assumes conditional independence in PFN outputs, it represents a significant advancement in resource-efficient hyperparameter tuning. Future work may explore learning user preferences dynamically and improving the PFN architecture to handle more complex curve correlations.

Summary updated

BibTeX
@inproceedings{lee2024cost,
  author = {Dong Bok Lee and Aoxuan Silvia Zhang and Byungjoo Kim and Junhyeon Park and Juho Lee and Sung Ju Hwang and Hae Beom Lee},
  title = {{Cost-Sensitive Multi-Fidelity Bayesian Optimization with Transfer of Learning Curve Extrapolation}},
  booktitle = {AutoML Workshop},
  year = {2024},
  url = {https://openreview.net/forum?id=oah8Ayz5Bg},
}
Figure