Hyperparameter Transfer Learning with Adaptive Complexity

Samuel Horváth, Aaron Klein, Peter Richtárik, Cédric Archambeau

Abstract

Bayesian optimization (BO) is a data-efficient approach to automatically tune the hyperparameters of machine learning models. In practice, one frequently has to solve similar hyperparameter tuning problems sequentially. Recent work on multi-task BO exploits knowledge gained from previous hyperparameter tuning tasks to speed up a new tuning task. However, previous approaches do not account for the fact that BO is a sequential decision making procedure, leading to a mismatch between the number of evaluations collected in the current tuning task compared to the number of evaluations accumulated in all previously completed tasks. In this work, we enable multi-task BO to compensate for this mismatch, such that the transfer learning procedure is able to handle different data regimes in a principled way. We propose ABRAC (Adaptive Bayesian linear Regression with Adaptive Complexity), a method that learns a set of ordered, non-linear basis functions of increasing complexity via nested drop-out and automatic relevance determination. Experiments on a variety of hyperparameter tuning problems show that our method improves the sample efficiency of recently published multi-task BO methods.

Introduction

Hyperparameter Optimization (HPO) is essential for achieving peak performance in machine learning models but is often prohibitively expensive. Multi-task BO attempts to mitigate this cost by "transferring" knowledge from previous, similar tuning tasks to a new one.

However, a fundamental "data regime" mismatch exists: while a system might have thousands of evaluations from completed historical tasks, it starts a new task with zero data. Existing transfer learning methods often utilize the full complexity of the historical data immediately. This frequently causes the surrogate model to overfit the first few points of the new task, leading to poor suggestions and "negative transfer," where the model performs worse than if it had started from scratch.

Methodology: The ABRAC Framework

ABRAC addresses the data regime mismatch by building upon Adaptive Bayesian Linear Regression (ABLR) with a two-step approach to manage model complexity dynamically.

1. Offline: Learning Ordered Representations

During the offline phase, a shared neural network learns basis functions across all previous tasks. The authors employ nested dropout on the final layer. Unlike standard dropout, nested dropout deactivates neurons in a fixed order. This constraint forces the network to pack the most critical, "simple" information into the first few neurons and increasingly complex details into later ones, creating a hierarchy of features.

2. Online: Adaptive Transfer

When a new task begins, the feature extractor is fixed. To avoid overfitting, ABRAC utilizes Automatic Relevance Determination (ARD). ARD assigns a "precision" (importance) parameter to each basis function. In the early stages of a new task (low data), ARD naturally suppresses the complex, high-index basis functions. As more data is collected, the model "unlocks" higher-order features to capture finer details, allowing the model complexity to grow alongside the dataset.

Figure 1: Comparison of model fit and basis function selection between standard ABLR and ABRAC at iteration 6. ABRAC (right) uses ARD to select a sparse set of relevant basis functions, leading to a more robust fit.

Evaluation and Results

The authors evaluated ABRAC against state-of-the-art baselines, including MT-GP-BO and BOHAMIANN, across synthetic benchmarks (Forrester, Parameterized Quadratics), NAS Benchmarks, and OpenML SVM benchmarks.

Sample Efficiency and Robustness

On the Forrester and Quadratic benchmarks, ABRAC reached near-optimal regret significantly faster than standard ABLR or Gaussian Processes (GPs). In low-data regimes (the first 5–10 iterations), ABRAC consistently avoided the overfitting "spikes" seen in other neural-network-based BO methods, demonstrating superior robustness.

Figure 6: Average regret across iterations. ABRAC demonstrates faster convergence and lower regret compared to adaptive and fixed-complexity baselines.

Computational Performance

ABRAC scales linearly with the number of data points, unlike standard GPs which scale cubically ($O(N^3)$). This makes it practical for large-scale HPO. In empirical tests, ABRAC was over 100x faster in terms of optimization overhead compared to BOHAMIANN and significantly faster than GPs when the number of historical tasks was large.

Conclusion

ABRAC introduces a principled way to handle the varying data regimes inherent in multi-task Bayesian Optimization. By treating model complexity as a sequence that grows with available data, it avoids the pitfalls of negative transfer and overfitting. While the current implementation uses a fixed feature extractor during the online phase, future work may explore online updates to the basis functions to further enhance flexibility without sacrificing computational efficiency.

Summary updated

BibTeX
@inproceedings{horvath2021hyperparameter,
  author = {Samuel Horváth and Aaron Klein and Peter Richtárik and Cédric Archambeau},
  title = {{Hyperparameter Transfer Learning with Adaptive Complexity}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2021},
  url = {https://openreview.net/forum?id=Fi8KqCa47dN},
}
Figure