[Paper Review] Learning to Warm-Start Bayesian Hyperparameter Optimization
This paper proposes a meta-learning approach to warm-start Bayesian hyperparameter optimization (BHO) by learning dataset meta-features via a Siamese network with deep and meta-feature extractors. The method identifies similar datasets using learned embeddings and initializes BHO with their historically optimal hyperparameters, significantly reducing evaluation cost—demonstrated by improved convergence across eight image classification datasets using CNNs.
Hyperparameter optimization aims to find the optimal hyperparameter configuration of a machine learning model, which provides the best performance on a validation dataset. Manual search usually leads to get stuck in a local hyperparameter configuration, and heavily depends on human intuition and experience. A simple alternative of manual search is random/grid search on a space of hyperparameters, which still undergoes extensive evaluations of validation errors in order to find its best configuration. Bayesian optimization that is a global optimization method for black-box functions is now popular for hyperparameter optimization, since it greatly reduces the number of validation error evaluations required, compared to random/grid search. Bayesian optimization generally finds the best hyperparameter configuration from random initialization without any prior knowledge. This motivates us to let Bayesian optimization start from the configurations that were successful on similar datasets, which are able to remarkably minimize the number of evaluations. In this paper, we propose deep metric learning to learn meta-features over datasets such that the similarity over them is effectively measured by Euclidean distance between their associated meta-features. To this end, we introduce a Siamese network composed of deep feature and meta-feature extractors, where deep feature extractor provides a semantic representation of each instance in a dataset and meta-feature extractor aggregates a set of deep features to encode a single representation over a dataset. Then, our learned meta-features are used to select a few datasets similar to the new dataset, so that hyperparameters in similar datasets are adopted as initializations to warm-start Bayesian hyperparameter optimization.
Motivation & Objective
- To reduce the number of expensive validation evaluations in Bayesian hyperparameter optimization (BHO) by leveraging prior knowledge from similar datasets.
- To learn effective, generalizable meta-features that capture dataset similarity for hyperparameter transfer.
- To design a deep metric learning framework that enables accurate retrieval of similar datasets for initialization.
- To improve BHO convergence by initializing with hyperparameters from the most similar historical datasets.
- To evaluate the effectiveness of different meta-feature learning architectures (ADF vs. Bi-LSTM) in the context of hyperparameter warm-starting.
Proposed method
- A Siamese neural network architecture is used, with twin branches for pairwise dataset comparison: one branch extracts deep features from individual data instances, the other aggregates them into a meta-feature vector per dataset.
- The network is trained to minimize the difference between the Euclidean distance of learned meta-features and the target distance (e.g., validation error difference) between datasets.
- Meta-features are extracted from a collection of 80 datasets, and for a new dataset, the k-nearest neighbors in meta-feature space are identified using cosine or Euclidean distance.
- The best-performing hyperparameter configurations from the k-nearest datasets are retrieved and used as initial points for BHO, replacing random or quasi-random initialization.
- The method employs acquisition functions like Expected Improvement (EI) and GP-UCB within a Bayesian optimization loop to select new hyperparameters iteratively.
- Two variants of the Siamese network are evaluated: one using an attention-based fusion (ADF) and another using a bidirectional LSTM (Bi-LSTM) for meta-feature aggregation.
Experimental results
Research questions
- RQ1Can learned meta-features effectively measure dataset similarity to guide hyperparameter warm-starting in Bayesian optimization?
- RQ2Does initializing BHO with hyperparameters from similar datasets reduce the number of required evaluations compared to random initialization?
- RQ3How do different meta-feature learning architectures (e.g., ADF vs. Bi-LSTM) compare in performance for hyperparameter warm-starting?
- RQ4To what extent does warm-starting improve convergence speed and final performance in CNN hyperparameter tuning across diverse image datasets?
- RQ5Is the proposed method robust across different acquisition functions (e.g., EI vs. GP-UCB) and initialization strategies?
Key findings
- The proposed method with Bi-LSTM-based meta-feature learning outperformed ADF-based learning in most experiments, indicating better generalization of meta-features.
- Using k-nearest neighbors from learned meta-features for initialization led to faster convergence and lower validation error compared to uniform, Latin hypercube, and Halton sampling.
- The method reduced the number of required evaluations in BHO by leveraging historical performance data from similar datasets, achieving better optimization efficiency.
- Empirical results on eight image datasets (e.g., CIFAR-10, MNIST, CUB-200-2011) showed consistent improvements across all test cases with both EI and GP-UCB acquisition functions.
- The learned meta-features enabled effective transfer of hyperparameter knowledge, with the best configurations from similar datasets serving as strong initial points for optimization.
- The Siamese network trained with contrastive loss successfully minimized the discrepancy between meta-feature distances and actual performance differences, validating the metric learning objective.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.