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

Transfer Learning based Search Space Design for Hyperparameter Tuning

Yang Li, Yu Shen, Huaijun Jiang, Tianyi Bai, Wentao Zhang, Ce Zhang, Bin Cui · DOI

TL;DR

This paper introduces a novel method for designing smaller, more effective search spaces for hyperparameter optimization (HPO) by leveraging past tuning experiences. By automatically identifying promising regions from previous tasks, their approach significantly speeds up HPO and improves performance across various machine learning tasks, including deep learning and neural architecture search.

What Problem Does This Paper Address?

Tuning hyperparameters is crucial for the performance of machine learning models, but it's a computationally expensive process. Traditional methods often treat each tuning task in isolation, which is inefficient, especially with the ever-increasing complexity and size of hyperparameter spaces in modern deep learning and neural architecture search. Bayesian Optimization (BO) is a popular technique for HPO, but its efficiency is hampered by large search spaces and costly evaluations. While transfer learning has been explored to accelerate BO by reusing knowledge from previous tasks, existing methods often focus on improving the surrogate model itself. This paper tackles the challenge of how to design a more promising and compact search space by intelligently utilizing historical HPO data, aiming to make BO more efficient and effective.

Methods

The core of this paper is an automatic search space design method that leverages transfer learning. Instead of using the entire, potentially vast, hyperparameter space, their approach aims to identify and utilize a smaller, more promising region. This is achieved in two main steps:

  1. Promising Region Extraction: For each past (source) task, the method learns a "promising region" – a sub-region of the hyperparameter space likely to contain optimal configurations. This is done by treating it as a binary classification problem, where a Gaussian Process Classifier (GPC) predicts whether a configuration belongs to this promising region. Crucially, the size of this region is adaptively controlled based on the similarity between the source task and the current target task, using a ranking-based similarity measure. This prevents "negative transfer" by ensuring that dissimilar tasks don't overly constrain the search space.
  2. Target Search Space Generation: The promising regions from multiple source tasks are then combined to generate the final, compact search space for the target task. This is done through a sampling-based framework with a voting mechanism. The method samples a subset of source tasks based on their similarity to the target task and then uses a majority vote from their respective GPC models to define the final search space. This ensemble approach helps to leverage diverse insights from multiple relevant past tasks.

Datasets

The authors evaluate their method on three main benchmarks:

  • Random Forest Tuning Benchmark: This benchmark involves tuning 5 hyperparameters of Random Forest models on 20 real-world datasets from the OpenML repository. Each dataset evaluation involved 50,000 configurations.
  • ResNet Tuning Benchmark: This benchmark focuses on tuning 5 hyperparameters of ResNet models for deep learning tasks on CIFAR-10, SVHN, and Tiny-ImageNet.
  • NASBench-201: This benchmark is used for neural architecture search (NAS) and involves tuning 6 hyperparameters of CNN architectures.

The paper also mentions creating and publishing large-scale benchmarks for HPO transfer learning, which are significantly larger than existing ones.

Key Insights and Ideas

  • Search Space Design is Key: The paper argues that intelligently designing the search space itself, rather than just improving the optimization algorithm or surrogate model, is a powerful way to accelerate HPO.
  • Promising Regions are Not Always Simple Shapes: Unlike previous methods that relied on simple geometric shapes (like bounding boxes or ellipsoids) to define promising regions, this work uses a machine learning model (GPC) to learn complex, potentially non-convex shapes of promising regions.
  • Adaptive Region Sizing is Crucial: The method dynamically adjusts the size of promising regions based on task similarity. This is a critical insight for preventing negative transfer and ensuring that the search space is neither too large (inefficient) nor too small (risking exclusion of the optimum).
  • Voting Ensemble for Robustness: Combining insights from multiple similar source tasks via a voting mechanism provides a more robust and comprehensive search space than relying on a single best source task.

Key Results

  • Significant Speedup: The proposed method consistently outperforms state-of-the-art baselines across a wide range of benchmarks, including Random Forest tuning, deep learning (ResNet), and neural architecture search (NAS).
  • Improved Performance: By using a compact and promising search space, the method significantly reduces the Normalized Classification Error (NCE) and achieves better final performance compared to methods that use the entire search space or simpler search space design techniques. For instance, on Tiny-ImageNet, their method reduced the NCE of a strong baseline by 23.7%.
  • Universality and Practicality: The method is shown to be compatible with various optimization algorithms (e.g., Random Search, GP-based BO, SMAC, REA) and can handle both numerical and categorical hyperparameters, demonstrating its broad applicability.
  • Safeness: The method is designed to be safe, meaning that dissimilar source tasks have little influence, and even if sampled, their large promising regions are unlikely to exclude the target task's optimum.

Limitations and Future Work

  • Computational Cost of GPC: While the method is efficient in terms of HPO trials, training the Gaussian Process Classifier for promising region extraction can still be computationally intensive, especially with a large number of source tasks or observations per task. The paper mentions a complexity of O(Kn³), where K is the number of source tasks and n is the number of observations.
  • Choice of Classifier: The paper explores different classifiers for promising region extraction and finds GPC to be the most stable. However, further research could explore other advanced classifiers or ensemble methods for this task.
  • Future Work: The authors suggest that their method's universality allows for seamless integration with other transfer learning techniques, hinting at potential for further performance gains by combining surrogate transfer and search space transfer. They also highlight the creation of new, large-scale benchmarks as a contribution to facilitate future research in this area.

Summary updated

BibTeX
@inproceedings{li2022transfer,
  author = {Yang Li and Yu Shen and Huaijun Jiang and Tianyi Bai and Wentao Zhang and Ce Zhang and Bin Cui},
  title = {{Transfer Learning based Search Space Design for Hyperparameter Tuning}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2022},
  doi = {10.1145/3534678.3539369},
}
Figure