TL;DR
RTDK-BO combines Transformer-based Deep Kernel Learning with Reinforcement Learning to tackle high-dimensional black-box optimization. By sharing contextual embeddings between a Gaussian Process surrogate and a Soft Actor-Critic acquisition function, it achieves state-of-the-art sample efficiency on complex, high-dimensional continuous problems.
What Problem Does This Paper Address?
Bayesian Optimization (BO) is the gold standard for optimizing "black-box" functions that are expensive to evaluate (e.g., industrial simulations or hyperparameter tuning). However, traditional BO hits two major walls:
- The Curse of Dimensionality: As the number of input variables grows, standard Gaussian Process (GP) surrogates struggle to model the landscape accurately.
- Lack of Meta-Learning: Most BO methods start from scratch for every new task, failing to exploit structural similarities between related optimization problems.
While recent work has tried using Reinforcement Learning (RL) to "learn" acquisition functions, these methods often rely on discrete grids, which don't scale well to high-dimensional continuous spaces.
Methods
The authors introduce Reinforced Transformer Deep Kernel Bayesian Optimization (RTDK-BO). The architecture is built on three pillars:
- Transformer Deep Kernel Learning (TDKL): Instead of a standard GP kernel, the authors use a Transformer encoder-decoder to process the history of observed points $(x, y)$. This creates a "contextual embedding" that captures the structure of the objective function. This embedding conditions a GP with a novel Combination Kernel—a learnable generalization of the classic RBF kernel.
- Reinforced Acquisition Function: The acquisition function (which decides where to sample next) is replaced by a Soft Actor-Critic (SAC) agent. Crucially, the agent shares the same Transformer embedding used by the surrogate model, allowing the policy to "understand" the current state of the optimization trajectory.
- Continuous Importance Sampling: To make SAC work in continuous high-dimensional spaces, the authors use Boltzmann exploration. They sample a large batch of candidate points from the RL policy and then re-weight them using the learned Q-values to select the final query point.
Datasets
The model was evaluated on two primary benchmarks:
- PM2.5 (14D): A discrete, real-world dataset representing air quality sensor data, used to test the model's ability to handle high-dimensional discrete tasks.
- Thompson Problem (16D to 64D): A continuous physics-based objective involving the placement of $N$ electrons on a unit sphere to minimize potential energy. The authors created "meta-learnable" variants by taking random $D$-dimensional slices of a larger 32-electron problem.
Key Insights and Ideas
- Shared Context is Key: By using a single Transformer to generate embeddings for both the surrogate (GP) and the controller (RL agent), the system ensures that the "knowledge" of the function's landscape is consistent across both components.
- Transformers as Meta-Learners: The Transformer architecture is naturally suited for variable-length sequences. In BO, this means it can effectively "read" the history of an optimization run as a sequence and adapt its predictions in real-time.
- The "Phase Transition": The authors observed a distinct "warm-up" phase (visible in Figure 5). The model initially collects diverse information, and once it has enough data to form a full sub-trajectory, its performance "jumps" as the Transformer surrogate initializes and begins to exploit the learned structure.
Key Results
RTDK-BO demonstrated significant improvements over traditional baselines (like Expected Improvement) and existing RL-based methods (like MetaBO and FSAF):
- High-Dimensional Superiority: On the 14D PM2.5 task, RTDK-BO achieved lower median regret faster than all other tested methods.
- Scaling to 64D: In the Thompson Problem, RTDK-BO was the only method that effectively "broke off" from the baseline performance in 48D and 64D settings, demonstrating a clear ability to meta-learn across high-dimensional continuous slices.
- Sample Efficiency: The model was trained on only 250 total function samples across 5 trajectories, yet it generalized to 36 unseen variants of the objective functions.
Limitations and Future Work
- Computational Complexity: The Transformer's memory requirements scale quadratically ($O(n^2)$) with the sequence length. The authors currently mitigate this by splitting runs into "sub-trajectories" of 50 steps, but this limits the long-term memory of the agent.
- The Warm-up Gap: There is a noticeable delay before the Transformer surrogate "kicks in." The authors plan to investigate ways to smooth this transition to improve early-stage sample efficiency.
- Low-Dimensional Performance: While RTDK-BO excels in high dimensions, the authors acknowledge that classical BO methods are still highly competitive (and often simpler) for low-dimensional tasks. Improving sample efficiency for simple tasks remains a goal.
Summary updated