Optimizing the Unknown: Black Box Bayesian Optimization with Energy-Based Model and Reinforcement Learning

Ruiyao Miao, Junren Xiao, Shiya Tsang, Hui Xiong, Ying Nian Wu

Bayesian Optimization (BO) is the gold standard for "black-box" problems—scenarios where evaluating a function is expensive (like running a physical lab experiment or a massive simulation) and gradients are unavailable to guide the search.

However, standard BO suffers from a critical flaw known as one-step myopia. Most acquisition functions—the rules dictating the next point to sample—only consider the immediate predicted gain. In complex, multi-modal, or high-dimensional spaces, this short-sightedness often traps the algorithm in local optima. It is akin to a hiker looking only at their feet: they might successfully climb a small hill but completely miss the massive mountain peak just a mile away because they failed to plan a long-term route.

To solve this, researchers have introduced REBMBO (Reinforced Energy-Based Model for Bayesian Optimization). By framing optimization as a Reinforcement Learning (RL) task, the system learns to plan multiple steps ahead, significantly outperforming state-of-the-art methods in complex, high-dimensional landscapes.

The REBMBO Framework

REBMBO is a tripartite framework designed to harmonize local precision, global awareness, and strategic planning.

REBMBO System Architecture

The architecture consists of three core modules:

  1. Module A: The Local Expert (Gaussian Process). Similar to traditional BO, this module uses a Gaussian Process (GP) to model the function locally. The framework supports three variations: Classic (exact), Sparse (for computational speed), and Deep (for complex, non-linear patterns).
  2. Module B: The Global Scout (Energy-Based Model). This component provides the "big picture." An Energy-Based Model (EBM) is trained via Markov Chain Monte Carlo (MCMC) to capture the global structure of the search space. It identifies promising "basins" of high potential that the localized GP might otherwise overlook.
  3. Module C: The Strategist (Reinforcement Learning). This is the framework's most novel contribution. The authors treat the entire optimization process as a Markov Decision Process (MDP). Instead of relying on a fixed heuristic to pick points, REBMBO uses Proximal Policy Optimization (PPO)—a robust RL algorithm—to learn a dynamic policy that balances immediate rewards with long-term exploration.

To evaluate this system fairly, the researchers introduced a new metric: Landscape-Aware Regret (LAR). Unlike standard regret, which only measures the best value found, LAR actively penalizes the algorithm if it fails to explore regions that the global EBM identifies as high-potential.

Experimental Validation

The researchers subjected REBMBO to a gauntlet of increasingly difficult tests, spanning both synthetic benchmarks (e.g., Branin 2D, Ackley 5D, Rosenbrock 8D, and a massive 200-dimensional HDBO task) and real-world applications. The real-world tasks included optimizing layered optical filters (Nanophotonic 3D), minimizing binding energy for SARS-CoV-2 antibodies (Rosetta 86D), neural architecture search (NATS-Bench 20D), and tuning physical robot control parameters (Robot Trajectory 40D).

Key Insights and Results

REBMBO consistently outperformed established baselines like TuRBO, BALLET-ICI, and EARL-BO across almost all tasks. The success of the model stems from the synergy between its components: the GP provides fine-tuning, while the EBM acts as a global penalty, preventing the RL agent from getting tunnel vision. By framing BO as a game, the agent learns that sampling a seemingly "worse" point now might be the strategic key to finding the global maximum several steps later.

Performance on 200D HDBO Task
  • High-Dimensional Dominance: In the massive 200D HDBO task, REBMBO variants demonstrated a dramatic drop in Landscape-Aware Regret compared to traditional methods, effectively solving spaces where standard BO fails.
  • Faster Convergence: In the Nanophotonic design task, REBMBO variants converged to near-optimal solutions roughly 30% faster than single-step RL or local GP methods.
  • Manageable Efficiency: While REBMBO is architecturally more complex, its computational overhead remains manageable—roughly 2.1x to 2.5x the wall-clock time of TuRBO. This overhead is negligible in true black-box scenarios where actual function evaluations take minutes or hours.

Limitations and Future Work

Despite its strong performance, the authors acknowledge a few hurdles. First, EBMs can be notoriously tricky to train; errors in the learned energy landscape can occasionally mislead the RL agent. Second, there are theoretical gaps to bridge: while the authors provide a sketch of sublinear regret bounds, the complex interplay between RL policy updates and traditional BO convergence theory requires more rigorous proof.

Looking ahead, future work aims to extend REBMBO to support asynchronous evaluations (sampling multiple points simultaneously) and to scale the system for massive, distributed hyperparameter tuning jobs.

Summary updated

BibTeX
@inproceedings{miao2025optimizing,
  author = {RUIYAO MIAO and Junren Xiao and Shiya Tsang and Hui Xiong and Ying Nian Wu},
  title = {{Optimizing the Unknown: Black Box Bayesian Optimization with Energy-Based Model and Reinforcement Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=NwLOIEi9vX},
}
Figure