Accelerating Hyperparameter Optimization of Deep Neural Network via Progressive Multi-Fidelity Evaluation

Guanghui Zhu, Ruancheng ZhuPAKDD 2020

Abstract

Hyperparameter optimization (HPO) is a critical yet computationally intensive task in deep learning. This paper introduces FastHO, a framework designed to accelerate HPO by progressively scaling two dimensions of fidelity: the number of training epochs and the training dataset size. By integrating this multi-fidelity approach with an informed "warmup" phase for Bayesian Optimization, FastHO significantly improves "anytime performance." Empirical evaluations demonstrate that FastHO can reach high-performing configurations up to 67% faster than state-of-the-art methods like BOHB, while achieving comparable or superior final test accuracy.

Introduction

Finding optimal hyperparameters—such as learning rate, dropout, and batch size—remains a significant challenge in deep learning. Traditional Bayesian Optimization (BO) is effective but slow, as it typically requires full training runs for each evaluation. To mitigate this, Hyperband (HB) introduced Successive Halving, which prunes poorly performing configurations early by training them for fewer iterations. The current state-of-the-art, BOHB, combines BO with Successive Halving. However, BOHB remains computationally expensive, often requiring dozens of GPU days for medium-sized models. The primary goal of FastHO is to improve "anytime performance," finding high-quality models within a strictly limited time budget.

Methodology

FastHO innovates by expanding the definition of "fidelity" and optimizing the initialization of the search process.

Progressive Multi-Fidelity Evaluation (IF-SH)

While standard methods like BOHB primarily vary the number of training iterations, FastHO introduces Iteration-and-Fidelity Based Successive Halving (IF-SH). This approach argues that dataset size is a crucial dimension of fidelity. IF-SH progressively increases both the number of epochs and the data sampling ratio. As configurations survive successive rounds of pruning, they are allocated more training time and larger portions of the dataset.

The Low-Fidelity Bias

A key insight driving this approach is that low-fidelity evaluations (e.g., training on a small data subset) are not merely noisy; they are inherently biased. Models trained on small subsets often require different hyperparameter settings, such as higher regularization, to prevent overfitting. This bias, illustrated in the table below, justifies the progressive increase of data size rather than relying on a fixed, small proxy.

Test error comparison between the whole dataset and a 10% data subset across different datasets, highlighting the bias in low-fidelity evaluations.

Surrogate Model Warmup

BO typically starts with a random search to build an initial surrogate model, which is inefficient. FastHO introduces a "warmup" phase that runs a quick round of Successive Halving on a small data subset. This provides the BO model with high-quality initial observations at a fraction of the cost, allowing for more informed predictions from the start of the main optimization process.

Experimental Evaluation

The researchers evaluated FastHO across several tasks and architectures, including:

  • Image Classification: MNIST, CIFAR-10, CIFAR-10+, and CIFAR-100.
  • Tabular Data: Adult and Letter datasets using Fully-Connected Networks.
  • Architectures: Standard CNNs, ResNet18, and ResNet with Shake-Shake/Cutout regularization.

Results and Discussion

FastHO demonstrates significant improvements in both speed and anytime performance. On a standard CNN, FastHO was 63% faster than BOHB, and on ResNet18, it achieved a 67% speedup in total evaluation time.

Comparison of average test error across different HPO methods as a function of resources.

As shown in the performance comparison above, the error curve for FastHO drops much faster than competitors like TPE, HB, or BOHB. It consistently finds near-optimal configurations in roughly half the time. Furthermore, FastHO maintains high final accuracy; for instance, it achieved a 2.81% error rate on ResNet with Shake-Shake in 19 GPU days, whereas BOHB required 33 GPU days for similar results.

Conclusion and Future Work

FastHO effectively accelerates HPO by leveraging multi-dimensional fidelity and informed BO initialization. While the method is robust, future work could explore automated ways to set the data scaling factor or incorporate additional fidelity dimensions, such as feature subsampling, to further enhance early-stage optimization.

Summary updated

BibTeX
@inproceedings{zhu2020accelerating,
  author = {Guanghui Zhu and Ruancheng Zhu},
  title = {{Accelerating Hyperparameter Optimization of Deep Neural Network via Progressive Multi-Fidelity Evaluation}},
  booktitle = {PAKDD},
  year = {2020},
  url = {https://openreview.net/forum?id=oD0qg2g6sTa},
}
Figure