Modeling Conditional Search Spaces with Self-Attention Mechanism for Bayesian Optimization

Monday 03 March 2025


The quest for optimal hyperparameters has long been a thorn in the side of machine learning practitioners. Bayesian Optimization, a popular approach to this problem, relies on probabilistic models to guide the search for the best combination of hyperparameters. However, when dealing with conditional search spaces – where dependencies between hyperparameters exist – traditional BO methods often fall short.


Researchers have attempted to address this issue by developing multiple Gaussian Process (GP) models for each subspace, but these approaches can be inefficient and struggle to capture relationships between hyperparameters across different subspaces. In a new paper, the authors propose an innovative solution that models all response surfaces in one, using a self-attention mechanism to elegantly capture dependencies.


The approach begins by designing a structure-aware hyperparameter embedding, which preserves the structural information of the search space. This is followed by an attention-based deep feature extractor, capable of projecting configurations from different subspaces into a unified feature space. The response surfaces are then formulated using a single standard GP, allowing for efficient optimization and effective capture of relationships between hyperparameters.


To evaluate their method, the authors conducted experiments on three machine learning benchmarks, including a large-scale hyperparameter optimization benchmark (HPO-B-3). Results show that their approach outperforms traditional BO methods, including Random Search, SMAC, and TPE. In addition, they demonstrate the effectiveness of their method on real-world OpenML datasets.


The authors also provide insights into the performance of various black-box optimization methods on HPO-B-3, ranking them based on average regret and average ranking. Their approach emerges as a top performer, highlighting its potential for practical applications in machine learning.


This innovative solution has significant implications for the field of Bayesian Optimization, offering a more efficient and effective way to navigate conditional search spaces. By elegantly capturing dependencies between hyperparameters, the authors’ approach paves the way for improved performance and reduced computational costs in various machine learning tasks. As researchers continue to push the boundaries of AI, this breakthrough is likely to play a crucial role in optimizing complex systems and driving innovation.


Cite this article: “Modeling Conditional Search Spaces with Self-Attention Mechanism for Bayesian Optimization”, The Science Archive, 2025.


Machine Learning, Bayesian Optimization, Hyperparameter Optimization, Gaussian Process, Self-Attention Mechanism, Deep Feature Extractor, Conditional Search Spaces, Random Search, Smac, Tpe


Reference: Jiaxing Li, Wei Liu, Chao Xue, Yibing Zhan, Xiaoxing Wang, Weifeng Liu, Dacheng Tao, “Modeling All Response Surfaces in One for Conditional Search Spaces” (2025).


Leave a Reply