Manuscript Offprint

arXiv:2610.10186

Pre-training of Bayesian Optimization Algorithm through Bayesian Optimization

Satoshi Katayama, Shoyo Hunt, Shintaro Masuda, Masayuki Karasuyama

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Bayesian optimization (BO) is widely used as a standard approach for expensive black-box optimization. However, BO algorithms often involve parameters that must be specified in advance, and their performance can strongly depend on these choices. We propose a framework for optimizing such parameters using sample paths drawn from a Gaussian process (GP) inferred from the information available at the start of BO. We use cumulative regret as the performance metric for a BO algorithm. By running the BO algorithm on the generated sample paths, we obtain an empirical estimate of its expected cumulative regret for a given parameter configuration. Optimizing this estimate allows us to identify parameter configurations that, given the currently available information, are expected to achieve low cumulative regret. Since this parameter optimization is itself a black-box optimization problem, we employ another BO procedure to solve it, which we refer to as outer BO. Through experiments, we demonstrate that the proposed framework can effectively select parameter configurations that achieve strong performance among a range of candidate configurations.

1 Introduction

Bayesian optimization (BO) is a widely used approach for optimizing expensive black-box functions with a limited number of function evaluations. It has been successfully applied to a broad range of problems, including experimental design, hyperparameter optimization, and scientific and engineering design. However, while BO automates the optimization of the objective function, BO algorithms themselves often involve various algorithmic configuration parameters that must be specified before optimization begins. Examples include parameters controlling the exploration-exploitation trade-off in acquisition functions and design parameters of search strategies. Such choices can substantially affect optimization performance. Unlike the surrogate model, i.e., usually a Gaussian process (GP), hyperparameters, these algorithmic parameters cannot generally be estimated by the (marginal) likelihood of the surrogate and are therefore often set to default or heuristic values.

The basic question in this study is whether the same criterion used to evaluate the performance of a BO algorithm can also be used to select its configuration parameters. We consider cumulative regret over a finite horizon as the performance criterion. The cumulative regret with respect to the unknown true objective function is, of course, unavailable before running BO. We assume that, at

*karasuyama@nitech.ac.jp the beginning of BO, we have a probability distribution over the objective function that reflects the available initial observations and/or prior knowledge. We use the expected cumulative regret under this distribution, i.e., the Bayes cumulative regret, as the criterion. By sampling objective functions from this distribution and actually running a candidate BO algorithm on each sample path, we can obtain a Monte Carlo (MC) approximation of the expected cumulative regret. This allows us to formulate the selection of BO algorithm parameters as an optimization problem that directly targets finite-horizon performance under the currently available knowledge about the objective function.

An important feature of this approach is that prior knowledge about the objective function is used not only for prediction by the surrogate model but also for configuring the BO algorithm itself. In the simplest setting, the GP posterior conditioned on an initial dataset can be used as the distribution over objective functions. When data from related past tasks are available, a GP prior pre-trained on such data can instead be incorporated. Our framework therefore does not rely on a particular method for constructing the prior distribution; rather, it can be viewed as a general mechanism for translating an available distribution over objective functions into a configuration of a BO algorithm. Recent work on learning to optimize and meta-learning has proposed methods that learn optimizers or acquisition policies themselves from multiple optimization tasks (e.g., Chen et al., 2022; Volpp et al., 2020). In contrast, our approach retains the structure of an existing BO algorithm and tunes only a small number of its algorithmic parameters. This design aims to adapt the algorithm to the target problem distribution while retaining established acquisition rules and principles developed in the BO literature. We discuss these connections in more detail in Section 5.

The MC approximation of the cumulative regret is generally a complicated black-box function of the parameter configuration, for which an analytical expression or gradient is difficult to obtain. Moreover, evaluating a single configuration requires repeatedly running finite-horizon BO on multiple sample paths, making exhaustive evaluation impractical. We therefore solve this algorithm-configuration problem using another BO procedure. We refer to the conventional BO procedure for optimizing the objective function as inner BO, and to the BO procedure for optimizing its algorithmic parameters as outer BO. This construction makes the framework applicable to arbitrary parameterized BO algorithms without requiring an analytical characterization of either their internal mechanisms or the dependence of regret on their parameters. We further extend the framework to a multi-fidelity setting, where evaluations obtained with shorter inner-BO horizons are used as lower-fidelity observations, and to a multi-stage configuration setting, where different parameter values can be used at different stages of the optimization.

We also analyze the statistical properties of the proposed MC-based evaluation of BO algorithms. We show that the MC estimator of cumulative regret has approximation error Op(T/N)O_p(T/\sqrt{N}), where T is the number of inner-BO iterations and N is the number of MC samples. When the candidate parameter configurations form a finite set, we further establish a guarantee of the same order for the difference in expected cumulative regret between the configuration selected by minimizing the MC approximation and the configuration minimizing the true Bayes cumulative regret. These results do not depend on the specific form of the acquisition function and provide theoretical justification for our simulation-based evaluation framework.

Our main contributions are summarized as follows:

  • We propose a general framework for selecting pre-specified parameters of a BO algorithm using its expected cumulative regret under a probability distribution over objective functions. We approximate this criterion by running BO on sample paths and use outer BO to optimize the resulting black-box objective. We further extend the framework to multi-fidelity optimization using the inner-BO horizon as a fidelity variable and to multi-stage configurations in which

algorithmic parameters can change during optimization.

  • We establish the Op(T/N)O_p(T/\sqrt{N}) convergence of the MC cumulative-regret estimator. For a finite candidate configurations, we further provide a guarantee on the expected cumulative regret of the configuration selected using the MC estimator.

  • Through experiments, we demonstrate that the proposed framework can identify parameter configurations with strong finite-horizon BO performance among a set of candidate configurations.

References (32)

  • Random Fields and Geometry
  • Kernels for vector-valued functions: A review
  • Latent space bayesian optimization with latent data augmentation for enhanced exploration
  • A tutorial on bayesian optimization of expensive cost functions, with application to active user modeling and hierarchical reinforcement learning (opens arXiv in a new tab)
  • Isolating sources of disentanglement in vaes
  • Learning to optimize: A primer and a benchmark
  • Learning to learn without gradient descent by gradient descent
  • Gaussian process regression for materials and molecules
  • Scalable global optimization via local Bayesian optimization
  • Neural processes
  • Monte Carlo Methods in Financial Engineering, volume 53 of Applications of Mathematics
  • Automatic chemical design using a data-driven continuous representation of molecules
  • Reinforced few-shot acquisition function learning for bayesian optimization
  • Sequential kriging optimization using multiple-fidelity evaluations
  • Gaussian process bandit optimisation with multi-fidelity evaluations
  • Predicting the output from a complex computer code when fast approximations are available
  • Auto-encoding variational bayes
  • Discovering evolution strategies via meta-black-box optimization
  • Pretrained optimization model for zero-shot black box optimization
  • B2Opt: Learning to optimize black-box optimization with little budget
  • Random features for large-scale kernel machines
  • Gaussian process optimization in the bandit setting: No regret and experimental design
  • Interpolation of Spatial Data: Some Theory for Kriging
  • Virtual library of simulation experiments: Test functions and datasets
  • Multi-fidelity Bayesian optimization with max-value entropy search and its parallelization
  • Meta-learning for black-box optimization (opens arXiv in a new tab)
  • High-Dimensional Probability: An Introduction with Applications in Data Science
  • Meta-learning acquisition functions for transfer learning in bayesian optimization
  • Recent advances in bayesian optimization
  • Pre-trained gaussian processes for bayesian optimization
  • Lecture notes on information-theoretic methods for high-dimensional statistics
  • Fashion-MNIST: a Novel Image Dataset for Benchmarking Machine Learning Algorithms