TL;DR
This paper introduces RTDK-BO, a novel approach to high-dimensional Bayesian Optimization (BO) that leverages Transformer-based Deep Kernel Learning (DKL) for improved surrogate modeling and a Soft Actor-Critic (SAC) reinforcement learning agent for a more intelligent acquisition function. RTDK-BO excels at meta-learning across related optimization tasks, achieving state-of-the-art results by efficiently exploring complex, high-dimensional search spaces with limited evaluations.
What Problem Does This Paper Address?
Optimizing complex, black-box functions in high-dimensional spaces is a critical challenge across many scientific and industrial domains, from materials design to hyperparameter tuning. Traditional Bayesian Optimization (BO) methods, while sample-efficient, often struggle when dealing with many related optimization problems. They typically treat each problem independently, failing to exploit shared similarities that could significantly reduce the number of expensive function evaluations needed. Existing approaches that incorporate reinforcement learning (RL) have shown promise but still largely treat objectives as isolated tasks. This paper aims to bridge this gap by developing a BO framework that can effectively meta-learn across a family of related high-dimensional optimization problems, thereby improving both sample efficiency and overall performance.
Methods
The core of RTDK-BO lies in two key innovations:
- Transformer Deep Kernel Learning (TDKL) Surrogate: Instead of relying on traditional Gaussian Process (GP) kernels, RTDK-BO employs a Transformer-based architecture to learn a rich, contextual embedding of the observed data. This Transformer encoder-decoder model processes past optimization trajectories (input features and their corresponding function values) to generate embeddings for both observed and query points. This allows the GP surrogate to adapt to contextual information and meta-learn across different but related objectives. To address potential numerical instabilities in DKL with limited data, they also introduce a parameterized network to estimate diagonal covariance components and a normalized kernel for off-diagonal components.
- Reinforced Acquisition Function (Soft Actor-Critic): The acquisition function, responsible for selecting the next point to evaluate, is implemented using a Soft Actor-Critic (SAC) reinforcement learning agent. This agent is trained as a model-based RL agent, leveraging the TDKL surrogate to estimate the environment's dynamics. The SAC agent learns a policy that balances exploration and exploitation by considering the learned embeddings from the TDKL and the GP's uncertainty estimates. For continuous domains, they employ an importance sampling strategy to generate actions from the actor's policy, effectively approximating a Boltzmann distribution over promising query points.
Datasets
The paper evaluates RTDK-BO on:
- PM 2.5 14D problem: A discrete optimization task used as a baseline to compare against other RL-based acquisition functions.
- Thompson Problem (16D, 32D, 48D, 64D): High-dimensional continuous optimization problems. These are generated by taking random slices of a larger 128-dimensional Thompson problem, creating a large number of related variants for meta-learning evaluation.
Key Insights and Ideas
- Transformers for Meta-Learning in BO: The paper demonstrates that Transformer architectures are highly effective at capturing contextual information from past optimization trajectories, enabling a GP surrogate to meta-learn across related objectives. This is a significant step beyond treating each BO problem in isolation.
- Synergy of TDKL and RL Acquisition: Combining a Transformer-enhanced DKL surrogate with an RL-based acquisition function creates a powerful synergy. The TDKL provides a more adaptive and context-aware model, while the RL agent learns a sophisticated exploration strategy that leverages this enhanced model.
- Addressing DKL Instabilities: The proposed method for handling DKL instabilities by explicitly modeling diagonal covariance components and using a normalized kernel is crucial for practical application, especially in low-data regimes typical of BO.
- Importance Sampling for Continuous RL in BO: The use of importance sampling to adapt a continuous SAC policy for discrete action selection in BO is an elegant solution to bridge the gap between continuous RL algorithms and the discrete nature of some BO acquisition strategies.
Key Results
- State-of-the-Art Performance: RTDK-BO consistently outperforms traditional BO methods (EI, PI, UCB) and other meta-learning RL-based methods (MetaBO, FSAF) on high-dimensional continuous optimization tasks, achieving lower median regret.
- Discrete Domain Success: RTDK-BO also shows strong performance on the discrete PM 2.5 14D problem, outperforming existing RL-based acquisition functions.
- Scalability with Dimensionality: The Transformer DKL component proves particularly beneficial as dimensionality increases, helping the surrogate better capture complex relationships.
- "Warm-up" Phase Observation: The experiments reveal a "warm-up" phase in the initial sub-trajectories where the model collects information, followed by a rapid performance jump once enough data is gathered to form a full sub-trajectory. This highlights the Transformer's reliance on sufficient contextual data.
Limitations and Future Work
- Discrete Action Space Adaptation: While RTDK-BO was adapted for discrete domains, the authors note that a specialized SAC for discrete action spaces could further improve performance.
- Low-Dimensional Optimization: The paper suggests future work to improve RTDK-BO's performance on low-dimensional tasks, aiming for even greater sample efficiency compared to classical approaches.
- "Warm-up" Transition: The observed "warm-up" phase in sub-trajectories indicates a potential area for improvement in achieving a smoother transition and faster initial learning.
- Memory Constraints: The Transformer architecture's memory requirements scale quadratically with sequence length, necessitating careful consideration of sub-trajectory lengths to avoid memory issues.
Summary updated