Source-linked AI summary

Hyper-Parameter Optimization: A Review of Algorithms and Applications

Tong Yu, Hong Zhu

arXiv:2003.05689v1cs.LGstat.ML

TL;DR

Deep-learning models are difficult to design and train, while manual hyper-parameter selection depends heavily on experience and computationally costly experimentation. This paper systematically reviews HPO hyper-parameters, search algorithms, evaluation strategies, services, and toolkits, then synthesizes their applicability and limitations. Its central practical conclusion is that computational efficiency is crucial, especially when HPO is applied to large models and limited resources.

  • Problem

    Deep-learning design and training are challenging, and users need effective hyper-parameter selection beyond manual, experience-based configuration.

  • Method

    The paper systematically reviews hyper-parameters, state-of-the-art HPO algorithms and schedulers, evaluation methods, services, and open-source frameworks.

  • Results

    The review compares HPO approaches and tools by feasibility, accuracy, efficiency, resource consumption, and application scope.

  • Takeaways & Limitations

    Computational efficiency is extremely crucial, motivating resource-saving evaluation approaches such as reduced-fidelity methods and transfer learning.

  • Takeaways & Limitations

    HPO methods remain constrained by resource and budget choices, including Bayesian optimization costs and bandit-based allocation trade-offs.

Abstract

from arXiv · show

Since deep neural networks were developed, they have made huge contributions to everyday lives. Machine learning provides more rational advice than humans are capable of in almost every aspect of daily life. However, despite this achievement, the design and training of neural networks are still challenging and unpredictable procedures. To lower the technical thresholds for common users, automated hyper-parameter optimization (HPO) has become a popular topic in both academic and industrial areas. This paper provides a review of the most essential topics on HPO. The first section introduces the key hyper-parameters related to model training and structure, and discusses their importance and methods to define the value range. Then, the research focuses on major optimization algorithms and their applicability, covering their efficiency and accuracy especially for deep learning networks. This study next reviews major services and toolkits for HPO, comparing their support for state-of-the-art searching algorithms, feasibility with major deep learning frameworks, and extensibility for new modules designed by users. The paper concludes with problems that exist when HPO is applied to deep learning, a comparison between optimization algorithms, and prominent approaches for model evaluation with limited computational resources.

1. Introduction

Deep-learning models are powerful but difficult and costly to design and train manually, motivating HPO for both researchers and less-experienced users. The paper surveys hyper-parameters, HPO algorithms, toolkits, and open challenges.

  • Motivation: Neural networks achieve impressive results across research and commercial applications, but obtaining an accurate model remains inefficient and technically demanding.Model construction involves model design, algorithm design, and hyper-parameter selection, often requiring substantial researcher effort.
  • Motivation: Manual hyper-parameter selection relies on experience, which produces workable rather than necessarily optimal configurations and weakens the logical credibility of empirical choices.The paper also notes that experience is difficult to generalize across tasks and model settings.
  • HPO scope: HPO automates the selection of hyper-parameters that cannot be updated during training, including structural choices and training settings such as learning rate, batch size, and optimizer.HPO is described as the final step of model design and the first step of neural-network training, trading human effort for computational resources.
  • HPO scope: HPO is increasingly necessary for both large, complex networks with many tunable parameters and lightweight models requiring narrowly tuned values to reproduce accuracy.Manual tuning becomes especially difficult as model size grows, while carefully designed small models impose stricter hyper-parameter ranges.
  • Paper objectives: The study surveys feasible HPO algorithms, compares leading tools and services, and identifies challenges for HPO on deep-learning networks.Its stated objective is to support parameter selection across academic and industrial applications.
  • Paper contributions: The review categorizes hyper-parameters, compares algorithms by accuracy, efficiency, and application scope, and examines toolkit design, users, and future research directions.The toolkit comparison covers closed-source libraries and open-source services, while the proposed directions address algorithms, applications, and techniques.

2. Major Hyper-Parameters and Search Space

The section organizes hyper-parameters into training- and model-design-related choices, emphasizing their effects on learning efficiency, accuracy, and search difficulty. It reviews learning-rate schedules, optimizers, mini-batch size, model depth, dropout, and regularization as key search-space components.

  • Hyper-parameter categories: Hyper-parameters are prioritized by their influence on neural-network training, although their relative importance is difficult to determine quantitatively.Computational resources motivate preferential treatment of more influential parameters.
  • Hyper-parameter categories: Training hyper-parameters include the optimizer, learning rate, mini-batch size, momentum, and beta values, while design hyper-parameters govern network structure.The section distinguishes parameters that affect training from those used to construct the model.
  • Learning rate: Learning-rate schedules can be constant, linear, exponential, or cyclic, with schedule parameters controlling initial rate, decay, timing, and lower bounds.Linear schedules vary with time or iterations; exponential schedules decay more sharply initially and more gently near convergence; cyclic schedules use triangular updates within decaying bounds.
  • Learning rate: Learning-rate selection is constrained because small values slow convergence, large values may prevent convergence, and schedules must be coordinated with the optimizer.The paper recommends tuning schedule and optimizer hyper-parameters together when the schedule is fixed before training.
  • Optimization: Mini-batch size affects training speed, noise, convergence probability, and memory use, whereas optimizer choice involves trade-offs in reliability, adjustment, and optimization time.Adam is described as relatively easy to apply, while SGD with momentum may require more time to find the optimum.

3. Search Algorithms and Trial Schedulers on Hyper-Parameter Optimization

HPO searches hyper-parameter configurations to optimize a model’s validation performance, while combining search algorithms for sampling with trial schedulers for early stopping and evaluation.

  • HPO evaluates different hyper-parameter configurations to determine an optimal combination for model performance.Its general process moves from defining the search space to coarse-to-fine adjustment and model evaluation.
  • The paper focuses on methods for adjusting hyper-parameters and evaluating model performance rather than defining which hyper-parameters or search spaces to use.
  • Hyper-parameters may be integer, floating-point, categorical, or binary values distributed across a search space.
  • Search algorithms sample candidate hyper-parameter configurations, whereas trial schedulers primarily manage early stopping during model evaluation.

3.1 Search Algorithms

Search algorithms trade off exhaustive coverage, sampling efficiency, parallelism, and computational cost. Grid and random search provide simple baselines, while Bayesian optimization uses surrogate modeling and acquisition functions to guide trials with fewer objective evaluations.

  • Grid Search: Grid search exhaustively evaluates user-specified hyperparameter combinations and works best with few parameters and a narrow search space.It is easy to parallelize because trials are independent, but resource use grows exponentially with the number of tuned hyperparameters.
  • Random Search: Random search samples hyperparameters from specified distributions until a budget or accuracy target is reached.Its independently allocated budget can make it more likely than grid search to find good configurations when some hyperparameters are not uniformly distributed.
  • Bayesian Optimization: Bayesian optimization combines a probabilistic surrogate model with an acquisition function that balances exploration and exploitation when selecting the next trial.The workflow builds a prior, fits a posterior from observations, evaluates the acquisition function, tests the selected hyperparameters, and updates the model.
  • Bayesian Optimization: Gaussian processes are widely used Bayesian-optimization surrogates because they provide flexible nonparametric models and quantify predictive uncertainty.Their computational cost is O(N^3), with kernel computation costing O(DN^3) and memory use O(N^2), creating scalability problems for high dimensions or many data points.
  • Bayesian Optimization: Bayesian optimization can outperform grid and random search with fewer objective-function calls, but its sequential process complicates parallel execution.Batch methods, acquisition-function improvements, and combinations with other algorithms are proposed to address parallelism.
  • Tree Parzen Estimators: HyperOpt applies asynchronous parallelization with TPE, while BOHB combines TPE with HyperBand to address parallelization and conditional search spaces.TPE is popular for deep learning because it supports more data types, whereas Gaussian processes can perform better when hyperparameters strongly interact.

3.2 Optimization with an Early-stopping Policy

Early-stopping policies reduce HPO cost by terminating unpromising trials before full training, while bandit-based methods allocate limited budgets across configurations. Curve fitting adds predictive modeling, and later methods combine adaptive allocation or guided sampling to improve search.

  • Early stopping terminates trials before complete training, freeing computational resources for promising hyper-parameter configurations.
  • Median stopping is a model-free policy that compares a trial’s intermediate objective with the average performance of previous runs.
  • Curve fitting predicts a trial’s final objective from performance curves and stops training according to the predicted outcome.
  • Successive Halving evaluates intermediate results, but its resource allocation requires users to balance the total budget against the number of trials.
  • HyperBand combines random sampling with early stopping and adaptive resource allocation, achieving superior accuracy with fewer resources than random search and Bayesian optimization in some deep-learning settings.
  • BOHB combines HyperBand’s budget control and scalability with Bayesian guided sampling, reporting 20-times acceleration under limited budgets and 55-times acceleration with sufficient budgets over random search.
  • Population-Based Training integrates hyper-parameter tuning with ongoing model training through warm starts, but its optimality and extensibility remain unresolved.

4. Toolkits for Hyper-parameter Optimization

HPO toolkits range from cloud services emphasizing ease of use and scalability to open-source frameworks emphasizing customization and extensibility. Their trade-offs involve algorithm coverage, deployment resources, user control, and interface capabilities.

  • HPO toolkits are assessed by resource handling, optimization-algorithm support, trial scheduling, ease of use, scalability, availability, and flexibility.
  • Open-source libraries target different automated model-design tasks, with HyperOpt, HpBandSter, and other tools specializing in particular optimization methods.
  • Cloud services from Google and AWS support massive parallel training but are closed-source and require users to pay for computational resources.
  • Google Vizier: Google Vizier reduces setup effort through managed deployment, experiment monitoring, scalable infrastructure, transfer learning, and a graphical interface.
  • Google Vizier: Vizier supports grid search, random search, and Bayesian optimization, but does not outperform in search algorithms and early-stopping strategies.
  • Advisor: Advisor reproduces many Vizier features without Google Cloud, but its scalability is limited by available computational resources.
  • NNI: NNI offers an open-source, customizable AutoML and HPO framework deployable across local machines, remote servers, and Docker environments.
  • NNI: NNI’s Web UI displays experiment status and results but does not allow interactive changes to hyper-parameters, algorithms, or resource settings.

5. Discussion and Extensions

The paper frames deep-learning HPO as a resource-constrained optimization problem requiring efficient evaluation, parallelism, and algorithm-specific trade-offs. Early stopping, transfer learning, and hybrid methods address these constraints, but each major algorithm retains limitations.

  • Deep-learning HPO faces infeasible classical searches, expensive model evaluation, and a strong need for parallelism and computational efficiency.
  • Algorithm applicability: Random search is computationally parallel and useful with early stopping for initially exploring a broad search space.
  • Algorithm applicability: Bayesian optimization guides search with surrogate models and acquisition functions, but distributed deployment remains challenging because it relies on previous results.
  • Algorithm applicability: Multi-armed bandit methods allocate budgets progressively, with HyperBand testing multiple budget configurations and BOHB replacing random sampling with Bayesian optimization.
  • Algorithm applicability: Population-Based Training jointly tunes hyper-parameters and trains models by eliminating weak trials, refining configurations, and inheriting settings from stronger models.
  • Algorithm limitations: Grid search becomes infeasible as dimensionality and search-space size increase, while random search becomes inefficient near the optimum and cannot guarantee optimal results.
  • Evaluation: Evaluation methods trade accuracy against speed, using direct evaluation, early stopping, and transfer learning to reduce unnecessary full training.

6. Conclusion

The paper reviews HPO for neural networks from hyper-parameter definitions through algorithms, schedulers, services, toolkits, and evaluation methods. It emphasizes feasibility for large models and computational-resource consumption for researchers and industrial users.

  • The review covers important training and structural hyper-parameters, state-of-the-art search algorithms and schedulers, HPO services, open-source frameworks, and evaluation methods.
  • Its comparisons focus on algorithm and evaluation feasibility for large models and computational-resource consumption.
Loading 2003.05689v1…