Reinforced Few-Shot Acquisition Function Learning for Bayesian Optimization

Bing-Jing Hsieh, Ping-Chun Hsieh, Xi Liu

Overview

Bayesian Optimization (BO) is the gold standard for optimizing "black-box" functions that are expensive to evaluate, such as hyperparameter tuning for deep learning or designing new materials. Central to BO is the acquisition function (AF), a mathematical heuristic (like Expected Improvement or GP-UCB) that decides where to sample next by balancing exploration (searching unknown areas) and exploitation (sampling near known peaks).

However, no single handcrafted AF works best for every type of function. An AF that excels at finding the peak of a smooth, simple function might fail on a "rugged" landscape with many local optima. While researchers have tried using meta-learning to "learn" better AFs from past data, these models often suffer from severe overfitting or require massive amounts of metadata.

To address this, researchers have introduced Reinforced Few-Shot Acquisition Function Learning (FSAF), a novel framework that learns to optimize black-box functions by treating the acquisition function as a trainable Q-network. By combining Bayesian reinforcement learning with meta-learning, FSAF can rapidly adapt to diverse optimization tasks using only a small amount of metadata, consistently outperforming traditional handcrafted methods.

The Overfitting Challenge

A natural first step in learning an AF is to combine Reinforcement Learning (RL) with meta-learning. Specifically, one can treat the AF as a Q-function—since both assign a value to an action based on the current state—and use a Deep Q-Network (DQN) combined with Model-Agnostic Meta-Learning (MAML).

However, simply smashing RL and meta-learning together fails in BO. Because a standard DQN provides a single "point estimate," the model tends to "memorize" training functions rather than learning a versatile sampling policy. This leads to severe overfitting in the high-uncertainty environment of BO.

Illustration of the overfitting issue when directly combining standard DQN and MAML. While the naive combination performs well during training (a), it yields higher regret during testing compared to the simple EI baseline (b, c, d).

The FSAF Approach

To overcome this overfitting trap, the FSAF framework introduces three core pillars:

  1. Bayesian DQN via SVGD: Moving from a single Q-network to a Bayesian ensemble was the key to solving the overfitting problem. FSAF learns a distribution of Q-networks (an ensemble of "particles") using Stein Variational Gradient Descent (SVGD). This Bayesian approach inherently captures the uncertainty needed for effective exploration and handles the explore-exploit trade-off naturally.
  2. Meta-Learning with a Demo Prior: To enable fast adaptation, FSAF integrates MAML. Crucially, instead of learning from scratch, it uses a "demo policy" induced by a standard handcrafted AF (like Expected Improvement) as a prior. This stabilizes training and ensures the model starts with a sensible baseline strategy.
  3. General-Purpose Design: By using posterior mean and variance as inputs rather than raw coordinates, FSAF is agnostic to the dimensionality and scale of the input domain.

Key Results

The model was trained solely on synthetic functions generated from Gaussian Processes and evaluated across a diverse range of tasks, including standard optimization benchmarks (e.g., Ackley, Eggholder, Powell) and real-world tasks (e.g., XGBoost hyperparameter tuning, asteroid size prediction).

  • Benchmark Performance: FSAF consistently achieved lower "simple regret" (finding better optima faster) than classic handcrafted AFs and state-of-the-art meta-learning methods. It proved especially effective on complex functions where traditional methods often get stuck.
  • Real-World Robustness: FSAF maintained its lead across diverse real-world applications, proving it can adapt to various smoothness characteristics and dimensionalities.
  • Few-Shot Efficiency: FSAF demonstrated strong "few-shot" capabilities, often outperforming competitors with just 1 or 5 gradient updates of adaptation.

Limitations and Future Work

While FSAF is highly efficient, it still requires a small amount of metadata for adaptation; its performance is less impressive without any few-shot gradient updates. Additionally, maintaining an ensemble of Q-networks and performing SVGD is more computationally intensive than evaluating a simple closed-form AF like Expected Improvement. Future directions may include extending this framework to an actor-critic architecture, which could further improve performance in continuous action spaces.

Summary updated

BibTeX
@inproceedings{hsieh2021reinforced,
  author = {Bing-Jing Hsieh and Ping-Chun Hsieh and Xi Liu},
  title = {{Reinforced Few-Shot Acquisition Function Learning for Bayesian Optimization}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=8l6kCfoORIE},
}
Figure