Robust Bayesian optimization with reinforcement learned acquisition functions

Zijing Liu, Xiyao Qu, Xuejun Liu, Hongqiang LyuarXiv 2022 · DOI

Abstract

Bayesian Optimization (BO) is a standard approach for optimizing expensive black-box functions, yet its performance is often sensitive to the choice of acquisition function (AF). Traditional AFs utilize fixed heuristics to balance exploration and exploitation, which may not be optimal across different stages of the optimization process. This paper presents Reinforcement-Learning-Assisted Bayesian Optimization (RLABO), a framework that treats AF selection as a sequential decision-making problem. By employing a neural network actor trained via Proximal Policy Optimization (PPO), the system dynamically adapts its acquisition strategy based on the surrogate model's state. Evaluation across diverse mathematical benchmarks shows that RLABO consistently outperforms static AF strategies in both robustness and convergence speed.

Introduction

In engineering and machine learning, optimizing "black-box" systems where evaluations are costly—such as hyperparameter tuning or physical experiments—requires efficient search strategies. Bayesian Optimization addresses this by using a surrogate model, typically a Gaussian Process (GP), and an Acquisition Function (AF) to determine the next sampling point. However, common AFs like Expected Improvement (EI) or Upper Confidence Bound (UCB) possess inherent biases toward either exploration or exploitation. While heuristic-based "cooling schedules" or portfolios have been proposed, they lack the flexibility to react to the specific landscape of the objective function. This research explores whether a data-driven policy can learn to adjust the AF in real-time based on the current state of the optimization.

Methods: The RLABO Framework

The core of the proposed approach is the formulation of AF selection as a Markov Decision Process (MDP). The framework, illustrated in Figure 1, consists of an RL actor interacting with a BO environment.

The RLABO framework architecture, showing the interaction between the Neural Network actor and the Bayesian Optimization environment.

MDP Components

  • State: The input to the RL agent includes the GP kernel's length scale (indicating function "ruggedness") and the statistical properties of the current observations.
  • Action: The agent selects from a discrete set of UCB functions with varying weights, ranging from purely exploitative (weight = 0) to highly explorative (weight = $\infty$).
  • Reward: The reward signal is based on the improvement rate of the objective function, normalized to ensure stable learning even as improvements diminish in later stages.
  • Actor: A neural network policy trained using Proximal Policy Optimization (PPO) to maximize the cumulative improvement over an optimization trajectory.

Experimental Setup

The RLABO framework was validated on five standard mathematical benchmark functions: Ackley, Levy, Griewank, Schwefel, and Eggholder. These functions represent a spectrum of difficulty, from multi-modal landscapes with many local minima to deceptive surfaces where the global optimum is isolated. These benchmarks provide a rigorous test for the RL agent's ability to adapt to different levels of ruggedness.

Results and Discussion

The RL agent successfully learned effective policies for all test cases. As shown in Figure 2, the average cumulative reward increased steadily during training, indicating that the agent learned to navigate the trade-offs between exploration and exploitation effectively.

Average cumulative reward over training episodes for the five benchmark functions, demonstrating the RL agent's learning progress.

Performance and Robustness

RLABO demonstrated "steady superiority" over fixed AF strategies. While a highly explorative fixed AF might perform well on the complex Eggholder function but poorly on the simpler Ackley function, RLABO's adaptive policy remained competitive across all benchmarks. The agent learned to recognize implicit patterns in the GP state—identifying when to explore uncertain regions and when to exploit promising local peaks. This dynamic adaptation led to faster convergence and higher final objective values compared to static baselines.

Conclusion

RLABO provides a robust, data-driven alternative to manually tuned acquisition functions in Bayesian Optimization. By learning to select the most appropriate AF based on the current state of the surrogate model, the framework achieves superior performance across diverse optimization landscapes. Future research will focus on the generalization of these learned policies to entirely unseen real-world problems, potentially training on synthetic functions to solve expensive engineering tasks.

Summary updated

BibTeX
@misc{liu2022robust,
  author = {Zijing Liu and Xiyao Qu and Xuejun Liu and Hongqiang Lyu},
  title = {{Robust Bayesian optimization with reinforcement learned acquisition functions}},
  year = {2022},
  eprint = {2210.00476},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2210.00476},
}
Figure