A Copula approach for hyperparameter transfer learning

David Salinas, Huibin Shen, Valerio PerronearXiv 2019 · OpenReview

TL;DR

This paper introduces a novel "Copula-based" approach for hyperparameter transfer learning, enabling optimization algorithms to learn more efficiently from previous tasks. By modeling hyperparameter-to-objective mappings using Gaussian Copulas, the method effectively handles varying scales and outliers across datasets, leading to significant improvements in hyperparameter optimization and neural architecture search compared to existing methods.

What Problem Does This Paper Address?

Tuning the hyperparameters of complex machine learning models, especially deep neural networks, is a notoriously difficult and time-consuming process. Traditional methods like Bayesian Optimization (BO) treat each tuning task in isolation, failing to leverage knowledge gained from optimizing similar models on related datasets. This leads to redundant computations and slower convergence. The challenge lies in effectively transferring knowledge across tasks that may have different scales, noise levels, or even different objectives (e.g., balancing accuracy and latency), without making overly restrictive assumptions.

Methods

The core innovation is the use of semi-parametric Gaussian Copulas to model the relationship between hyperparameters and objective function quantiles. Instead of directly modeling the objective function, the authors transform the observed objective values into quantiles using their empirical cumulative distribution function (CDF). These quantiles are then mapped to a standard normal distribution using the inverse CDF. This transformation, denoted by $\psi = \Phi^{-1} \circ F$, effectively normalizes the data across different tasks, making them comparable.

Two main strategies are proposed to leverage this transformed data:

  1. Copula Thompson Sampling (CTS): This method uses a learned parametric model (e.g., a multi-layer perceptron) of the transformed objective's distribution as a prior. During optimization, it samples from this prior to select promising hyperparameters.
  2. Gaussian Copula Process (GCP): This approach builds upon CTS by incorporating a Gaussian Process (GP) that models the residual between the learned parametric prior and the transformed objective. This allows the model to adapt to the specific characteristics of the new task while still benefiting from the knowledge transferred from previous tasks.

Datasets

The paper evaluates its methods on a variety of tasks and benchmarks:

  • Hyperparameter Optimization (HPO):
    • DeepAR: A probabilistic time series forecasting model.
  • FCNET: A 2-layer feed-forward neural network.
  • XGBoost: A gradient boosting framework.
  • NAS-Bench-201: A benchmark for neural architecture search.
  • Datasets: The experiments utilize a range of datasets, including those from GluonTS (electricity, traffic, solar, etc.), LIBSVM (a6a, australian, german.numer, etc.), and specific datasets for FCNET (parkinson, protein, naval, slice) and NAS (cifar10, cifar100, ImageNet16-120).

Key Insights and Ideas

  • Quantile Transformation is Key: Directly modeling objective functions across tasks is challenging due to varying scales and noise. Transforming objectives to quantiles provides a robust way to normalize them, making transfer learning more effective.
  • Gaussian Copulas Handle Heterogeneity: The semi-parametric Gaussian Copula approach naturally handles the heterogeneous scales and potential outliers present in real-world optimization tasks, a limitation of simpler standardization methods.
  • Parametric Prior + GP Adaptation is Powerful: Combining a learned parametric prior (from previous tasks) with a Gaussian Process that adapts to the current task (GCP) yields the best performance, demonstrating the synergy between leveraging past knowledge and adapting to new challenges.
  • Multi-Objective Extension: The quantile-based approach seamlessly extends to multi-objective optimization, where averaging transformed objectives provides a better approximation of the Pareto front than simple linear scalarization.

Key Results

  • Significant Improvements: The proposed Copula-based methods (CTS and GCP) consistently outperform state-of-the-art transfer learning methods, including AutoGP, WS-GP, SGPT, and ABLR, across various HPO and NAS tasks.
  • GCP+prior Dominance: The GCP with a parametric prior consistently achieved the best performance, often being the best method on a majority of datasets and achieving the lowest average rank.
  • Faster Convergence: The methods demonstrate significantly faster convergence to good solutions compared to baselines, requiring fewer evaluations. For instance, GCP+prior is shown to be the best method 15 times and second best 7 times out of 26 datasets.
  • Robustness to Transfer Difficulty: While many transfer learning methods struggle as the difficulty of transfer increases (i.e., when the new task is less similar to previous ones), GCP+prior maintains strong performance.
  • Multi-Objective Performance: In multi-objective settings, GCP+prior and CTS+prior+MO (a multi-objective variant) competed well with or outperformed existing Pareto front estimation methods.

Limitations and Future Work

  • Parametric Prior Sensitivity: The paper notes that the performance of CTS and GP+prior can be poor when the parametric prior is not combined with Gaussian Copula, suggesting that the benefits of the prior are realized through the Copula transformation.
  • Computational Cost: While the parametric prior helps avoid cubical complexity in the number of offline evaluations, fitting GPs can still be computationally intensive for very large numbers of tasks.
  • Future Directions:
    • Integrating Copula-based methods with bandit-style optimizers like Hyperband.
  • Extending transfer learning to settings where algorithms or hyperparameter dimensions differ across tasks.
  • Exploring transfer learning across different black-box functions, not just variations of the same algorithm on different datasets.

Summary updated

Abstract

Bayesian optimization (BO) is a popular methodology to tune the hyperparameters of expensive black-box functions. Traditionally, BO focuses on a single task at a time and is not designed to leverage information from related functions, such as tuning performance objectives of the same algorithm across multiple datasets. In this work, we introduce a novel approach to achieve transfer learning across different \emph{datasets} as well as different \emph{objectives}. The main idea is to regress the mapping from hyperparameter to objective quantiles with a semi-parametric Gaussian Copula distribution, which provides robustness against different scales or outliers that can occur in different tasks. We introduce two methods to leverage this mapping: a Thompson sampling strategy as well as a Gaussian Copula process using such quantile estimate as a prior. We show that these strategies can combine the estimation of multiple objectives such as latency and accuracy, steering the hyperparameters optimization toward faster predictions for the same level of accuracy. Extensive experiments demonstrate significant improvements over state-of-the-art methods for both hyperparameter optimization and neural architecture search.
BibTeX
@misc{salinas2019copula,
  author = {David Salinas and Huibin Shen and Valerio Perrone},
  title = {{A Copula approach for hyperparameter transfer learning}},
  year = {2019},
  eprint = {1909.13595},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1909.13595},
}
Figure