PriorBand: HyperBand + Human Expert Knowledge

Neeratyoy Mallik, Carl Hvarfner, Danny Stoll, Maciej Janowski, Eddie Bergman, Marius Lindauer, Luigi Nardi, Frank HutterMetaLearn @ NeurIPS 2022

TL;DR

This paper introduces PriorBand, a novel hyperparameter optimization (HPO) algorithm for deep learning that effectively integrates human expert knowledge and cheap proxy tasks. PriorBand significantly improves efficiency and robustness, achieving strong performance with minimal computational cost, making it a practical tool for DL researchers.

What Problem Does This Paper Address?

Developing high-performing deep learning (DL) models hinges on carefully tuning a multitude of hyperparameters. However, current hyperparameter optimization (HPO) methods often fall short of the practical needs of DL researchers. The primary challenges include:

  • Low-budget constraints: DL model training is computationally expensive, meaning researchers often have time for only a handful of trials. This makes traditional, exhaustive HPO methods impractical.
  • Reliance on intuition: Due to budget limitations, researchers often resort to manual tuning based on intuition and preliminary experiments, which can be time-consuming and suboptimal.
  • Underutilization of auxiliary information: Existing HPO methods struggle to effectively incorporate valuable information from cheaper "proxy tasks" (e.g., training for fewer epochs) or "expert beliefs" (prior knowledge about good hyperparameter settings) without being misled by inaccurate information.
  • Complexity: Many advanced HPO algorithms are complex to understand and implement, hindering their adoption by DL practitioners.

The paper aims to bridge this gap by developing an HPO algorithm that is efficient, robust to imperfect expert input, and easy to integrate into existing DL workflows.

Methods

The core innovation of this paper is the PriorBand algorithm, which is a minimal modification of the popular HyperBand algorithm. HyperBand is a multi-fidelity HPO method that efficiently allocates resources by adaptively stopping poorly performing configurations early. PriorBand enhances HyperBand by incorporating two key elements:

  • Expert Priors: PriorBand allows users to provide a probability distribution over the likely location of the optimal hyperparameter configuration. This "expert belief" is used to guide the search towards promising regions of the hyperparameter space.
  • Incumbent Sampling: In addition to sampling configurations randomly or from the expert prior, PriorBand also samples configurations in the vicinity of the current best-known configuration (the "incumbent"). This helps to refine the search around promising solutions.

The algorithm's get_hyperparameter_configurations function is modified to include these new sampling strategies, making it more intelligent than simple random sampling. The paper emphasizes that this is a "minimal modification" to HyperBand, aiming for conceptual and implementation simplicity.

Datasets

The paper evaluates PriorBand on a variety of benchmarks, including:

  • Synthetic Hartmann functions: These are used to isolate and study specific aspects of multi-fidelity optimization and expert prior integration, such as the impact of good/bad correlations and good/bad priors.
  • JAHS-Bench-201: A benchmark for neural architecture search that includes hyperparameters and multiple fidelities.
  • PD1 (HyperBO): Benchmarks based on learning curves of large architectures for language and computer vision tasks.
  • Yahpo-Gym: A collection of multi-fidelity surrogates for various tasks, including traditional ML models and neural network benchmarks (specifically, two LCBench tasks were selected).

The authors also mention the creation of new surrogate benchmarks for large models in image and language tasks, trained from optimization data.

Key Insights and Ideas

  • Simple prior integration is insufficient: The paper demonstrates that naively replacing random sampling with prior-based sampling (e.g., RS+prior, HB+prior) can be detrimental when the prior is misspecified. This highlights the need for more robust integration strategies.
  • PriorBand's robustness is key: PriorBand's design, which combines expert priors with incumbent sampling, makes it resilient to inaccurate expert beliefs and misleading proxy tasks, a critical feature for real-world applications.
  • Efficiency at low budgets: PriorBand shows remarkable efficiency, achieving competitive performance with as few as 10 training runs, which is a significant advantage for resource-constrained DL research.
  • Model-free advantage: In low-budget scenarios, PriorBand's model-free nature (unlike some Bayesian optimization approaches) allows it to make informed decisions without needing to build complex surrogate models, often leading to better performance.

Key Results

  • PriorBand consistently outperforms HyperBand with simple prior sampling, especially when the expert prior is misleading.
  • On real-world DL benchmarks, PriorBand demonstrates its effectiveness, often outperforming model-based methods at low budgets.
  • The paper shows that PriorBand can achieve strong performance using as little as the cost of 10 training runs.
  • Ablation studies confirm that both the expert prior and incumbent sampling components of PriorBand contribute to its overall performance and robustness.

Limitations and Future Work

The authors acknowledge the following limitations and suggest future directions:

  • Distance measure: The efficacy of the distance measure used for incumbent sampling could potentially be improved.
  • Surrogate models and acquisition functions: PriorBand could be extended to incorporate surrogate models and acquisition functions to further enhance its performance, especially by building upon the headstart provided by expert priors.
  • Parallelization: Investigating parallel versions of PriorBand could lead to further efficiency gains.

Summary updated

BibTeX
@inproceedings{mallik2022priorband,
  author = {Neeratyoy Mallik and Carl Hvarfner and Danny Stoll and Maciej Janowski and Eddie Bergman and Marius Lindauer and Luigi Nardi and Frank Hutter},
  title = {{PriorBand: HyperBand + Human Expert Knowledge}},
  booktitle = {MetaLearn @ NeurIPS},
  year = {2022},
  url = {https://openreview.net/forum?id=ds21dwfBBH},
}
Figure