NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Learning to Transfer Initializations for Bayesian Hyperparameter Optimization

Jungtaek Kim, Saehoon Kim, Seungjin ChoiarXiv 2017

Introduction

Hyperparameter optimization (HPO) is a critical yet computationally intensive stage in the machine learning pipeline. While Bayesian Optimization (BO) has emerged as a powerful tool for navigating hyperparameter spaces, it inherently suffers from a "cold-start" problem. In the absence of prior data, BO typically begins with random sampling, which can be inefficient and costly. Human experts, by contrast, leverage experience from previous tasks to make informed initial guesses. This paper introduces a meta-learning framework designed to automate this intuition by transferring hyperparameter insights across datasets.

Deep Metric Learning for Dataset Similarity

The core challenge in cross-dataset transfer is mathematically defining "dataset similarity." The authors propose a deep metric learning approach using a Siamese Network architecture to extract "meta-features" directly from raw data.

The architecture consists of two identical "wings" sharing weights. Each wing processes a sample of images through CNN layers for local visual feature extraction and Bi-directional LSTMs to aggregate these features into a global dataset representation. This treats the collection of images as a sequence, allowing the model to form a unique "fingerprint" of the dataset.

Quantifying Hyperparameter Sensitivity

To provide ground-truth labels for training the Siamese network, the researchers utilize a metric derived from hyperparameter performance distributions. This captures whether two datasets exhibit similar sensitivity to changes in parameters like learning rate, batch size, or dropout.

Hyperparameter sensitivity profiles across four datasets (Caltech-256, CUB-200-2011, MNIST, and VOC2012). These profiles define the ground-truth similarity used to train the meta-feature extractor.

As shown in the figure above, different datasets display distinct sensitivity patterns ($\tilde{\theta}_i^c$) across various hyperparameters. By learning to map raw pixels to these sensitivity profiles, the Siamese network can identify which historical datasets are most relevant to a new, unseen task.

Transferring Initializations

When a new dataset is presented, the system computes its meta-feature vector and identifies the $k$-nearest neighbors from a library of pre-analyzed datasets. The best-performing hyperparameters from these neighbors are then used to initialize the BO process for the new task. Furthermore, the average performance of these similar datasets can be used to inform the "prior mean" of the Gaussian Process surrogate model, providing a more accurate starting point for the search space from the first iteration.

Key Results and Insights

The proposed method was evaluated on a variety of image datasets, including MNIST, CIFAR-10/100, and STL-10, for tuning a ResNet-26 model. Key findings include:

  • Accelerated Convergence: Meta-learned initializations allowed BO to reach lower validation errors significantly faster than random initialization.
  • Improved Final Performance: Within a constrained budget (e.g., 20 iterations), the transfer-based approach consistently found superior hyperparameter configurations.
  • Learned vs. Hand-crafted Features: The study demonstrates that features learned directly from raw pixels are more effective for HPO transfer than traditional hand-crafted meta-features like image resolution or class count.

Conclusion

By treating datasets as sequences and employing deep metric learning, this framework effectively bridges the gap between different machine learning tasks. While the initial "meta-training" phase requires a significant one-time computational investment, the resulting ability to bypass the cold-start problem offers substantial long-term efficiency gains for automated machine learning (AutoML) systems. Future work may explore extending this architecture to non-image data types and more complex, multi-task transfer scenarios.

Summary updated

BibTeX
@misc{kim2017learning,
  author = {Jungtaek Kim and Saehoon Kim and Seungjin Choi},
  title = {{Learning to Transfer Initializations for Bayesian Hyperparameter Optimization}},
  year = {2017},
  eprint = {1710.06219},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1710.06219},
}
Figure