TL;DR
This paper introduces a novel approach to Bayesian Optimization (BO) by pre-training a Transformer-based deep kernel Gaussian process (GP) on multiple, potentially heterogeneous, prior optimization tasks. This allows for efficient transfer learning to new tasks, even with different input spaces, significantly accelerating convergence and improving performance compared to traditional BO methods.
What Problem Does This Paper Address?
Bayesian Optimization is a powerful technique for optimizing expensive black-box functions. However, traditional BO methods treat each new task as a "cold start," meaning they learn a surrogate model from scratch for every problem. This is inefficient, especially when dealing with a large number of similar tasks. Existing transfer learning approaches in BO often assume that all tasks share the same input search space, which is a significant limitation. This paper addresses the challenge of efficiently transferring knowledge from prior BO tasks to new tasks, even when these tasks have different input dimensions or feature spaces, thereby improving sample efficiency.
Methods
The core of this work is a Deep Kernel Gaussian Process (DKL) where the kernel's features are extracted by a Transformer encoder. This Transformer is pre-trained on a collection of diverse prior optimization tasks. The key innovations are:
- Multi-Source Pre-training: The Transformer is trained jointly on multiple datasets from various prior tasks, even if their input spaces are heterogeneous (different dimensions or feature names). This allows the model to learn generalizable representations.
- Heterogeneous Input Handling: The Transformer's Feature-Tokenizer is designed to handle varying input dimensions by creating a union of all features from the source datasets.
- Mix-up Initialization: For new tasks with input variables not seen during pre-training, a novel "mix-up" strategy is employed. This involves creating new feature embeddings by taking a convex combination of existing embeddings, effectively initializing the model for unseen features.
- Transfer Learning: After pre-training, the Transformer layers, GP layer, and [CLS] token embedding are copied to initialize the DKL model for a new target task. This pre-trained model is then fine-tuned on the target task data.
Datasets
The paper evaluates its method on:
- Synthetic Datasets: A scaled and shifted version of the Ackley function is used to demonstrate optimization on a high-dimensional task with unseen input variables.
- HPO-B Benchmark: A large-scale benchmark for hyperparameter optimization (HPO) containing 758 source tasks and 86 meta-test tasks with diverse search spaces.
- Wireless Network Optimization (WNO): A real-world problem involving optimizing parameters of a cellular network.
Key Insights and Ideas
- Transformer as a Universal Feature Extractor for BO: The Transformer architecture proves effective at learning generalizable representations from diverse optimization tasks, enabling knowledge transfer across heterogeneous input spaces.
- Mix-up Initialization Bridges the Gap for Unseen Features: The proposed mix-up strategy for initializing embeddings of unseen input variables is crucial for adapting pre-trained models to new tasks with different feature sets, significantly accelerating convergence.
- Joint Pre-training Outperforms Task-Specific Models: Training a single Transformer on multiple heterogeneous tasks is more effective than training separate models for each task or relying on methods that require identical search spaces.
- Pre-training Significantly Boosts Sample Efficiency: The pre-trained model consistently outperforms baseline methods, especially in the early stages of optimization, demonstrating its ability to quickly find good solutions.
Key Results
- On the scaled and shifted 30D Ackley function, the pre-trained FT-DKL significantly outperformed standard GP and un-pretrained FT-DKL, achieving near-optimal solutions with far fewer evaluations.
- On the HPO-B benchmark, the proposed pre-trained FT-DKL achieved state-of-the-art results, demonstrating a substantial reduction in normalized regret and average rank compared to numerous existing transfer learning and non-transfer BO methods. For instance, it achieved a regret of less than 0.1 after just one iteration and less than 0.01 after 100 iterations.
- In the Wireless Network Optimization task, the pre-trained FT-DKL model quickly located regions of low regret, surpassing the final performance of other baselines within approximately 80 iterations, indicating a roughly five-fold speedup.
Limitations and Future Work
- Training Overhead of Transformers: Training Transformers can be computationally expensive, even with GPUs. The authors suggest that hardware-friendly Transformers and hardware advancements are needed for wider adoption.
- Overfitting of Deep Kernel Models: Deep kernel models can be prone to overfitting. The paper mentions that introducing Lipschitz constraints might help, but it's unclear how to efficiently integrate them into Transformer architectures.
- Quality of Source Data: The reliance on parameter names for matching common features could be a vulnerability. If malicious users provide datasets with matching names but irrelevant or adversarial values, the system could be misled.
- Future Work: The authors suggest exploring larger Transformer models (comparable to BERT) for potentially even better zero-shot performance. They also highlight the potential for a more unified surrogate model for Bayesian optimization.
Summary updated