Paper commentary
Hyperband: A Novel Bandit-Based Approach to Hyperparameter Optimization
Hyperband speeds up random search by allocating resources adaptively
- Problem Random search and grid search train every candidate fully, so a fixed budget covers few configurations. Bayesian optimization struggles with noisy, high-dimensional objectives.
- Method Hyperband runs SuccessiveHalving in several brackets over randomly sampled configurations. Each bracket pairs a different number of configurations with a different per-configuration budget.
- Results On MRBI, Hyperband is over an order of magnitude faster than standard approaches in training iterations, and 5× faster than SMAC (early).
Why random search still needs a better allocation rule
Hyperparameter optimization asks which settings of a learning algorithm give good validation performance, and each candidate is costly to train. Practitioners often fall back on random search and grid search, and these spend the full training cost on each candidate. The authors argue that Bayesian optimization, the main recent answer, must learn an unknown high-dimensional objective while optimizing it, which is hard when the function is non-convex and evaluations are noisy.
The authors keep random sampling, which they treat as a simple baseline with a sound theoretical basis, and cut the cost of evaluating each sampled candidate. The resource being allocated can be training-set size, number of features, or training iterations, and the aim is to examine far more configurations than a method that trains each one fully.
The n versus B/n tradeoff in SuccessiveHalving
SuccessiveHalving gives each surviving configuration an equal share of resources, removes the weaker half, and repeats until one configuration remains. Promising configurations therefore receive exponentially more resources over the rounds, but the method needs the number of configurations n as an input.
For a total budget B, the average resource per configuration is B/n, so a fixed budget forces a choice between many configurations with little training each and few configurations with long training. The authors illustrate this with two configurations whose intermediate losses are bounded by envelope functions, which separate once the envelopes stop overlapping.
The optimal strategy gives each configuration only the resource needed to separate it from the best one, whereas uniform allocation must give every configuration the resource needed for the hardest comparison. The authors describe the budget that SuccessiveHalving needs as only a small factor above the optimal, because it exploits configurations that are easy to distinguish from the best.
The envelope functions and the loss distribution are unknown in practice, so the right number of configurations cannot be picked in advance. Hyperband responds by hedging across several values of n rather than committing to one.
How Hyperband lays out its brackets
Hyperband calls SuccessiveHalving as a subroutine, once per bracket, and each bracket fixes a different pairing of configuration count and per-configuration budget. In the infinite-horizon version, the pair for index k and bracket s is \(B_{k,s}=2^{k}\) and \(n_{k,s}=2^{s}\), with brackets run for each s satisfying \(k-s\ge\log_2(s)\). Since the budget grows with k, the number of brackets increases over time rather than staying fixed.
When the maximum resource R is finite and known, the number of brackets is set by R and the elimination rate η, and the budget per bracket is \(B=(\lfloor\log_\eta(R)\rfloor+1)R\). The most exploratory bracket evaluates R configurations, and the number of brackets is \(s_{max}+1\) with \(s_{max}=\lfloor\log_\eta(R)\rfloor\). If overhead matters, capping the number of configurations at nmax also caps smax at \(\lfloor\log_\eta(n_{max})\rfloor\).
A larger η means more aggressive elimination with fewer rounds, since each round keeps only 1/η of the configurations. The experiments chose η to yield about five brackets, and the guidelines require at least three brackets so that a baseline level of early-stopping is always used.
For computationally intensive problems with long training times and high-dimensional spaces, the authors recommend trying only brackets from smax down to \(\lfloor\log_\eta(n_{min})\rfloor\), which fixes a minimum level of exploration.
Deep-learning benchmark setup
The deep-learning study tunes a convolutional network with the architecture used by Snoek et al. and Domhan et al., searching six hyperparameters for stochastic gradient descent and two for the response normalization layers, with batch size 100.
Three image classification datasets are used: CIFAR-10 is split into 40k, 10k and 10k instances, MRBI into 10k, 2k and 50k, and SVHN into close to 600k, 6k and 26k for training, validation and test. The only preprocessing applied to the raw images is demeaning.
One unit of resource is 100 mini-batch iterations, and R is 300 for CIFAR-10 and MRBI and 600 for SVHN, so the larger training set gets a larger ceiling. With these R values, the elimination rate η is 4, which yields five SuccessiveHalving brackets.
Each searcher receives a budget of 50R per trial, and ten independent trials are run for each searcher. Within that budget, Hyperband's outer loop runs twice, which amounts to ten SuccessiveHalving brackets. The competitors are SMAC, TPE, Spearmint, random search, random 2×, SMAC (early), and SuccessiveHalving run as the most exploratory bracket.
Speedups on CIFAR-10 and MRBI
On MRBI, the margin is over an order of magnitude against standard configuration selection approaches and 5× against SMAC (early). These speedups are measured in iterations of training, not wall-clock time.
The authors judge that ignoring overhead does not change the conclusions, since Hyperband's overhead stays below 5% on EC2 g2.8xlarge machines. The overhead ignored for Bayesian methods is the cost of selecting configurations, which the iteration-based comparison also leaves out.
The introduction's wider range of 5× to 30× over popular Bayesian optimization algorithms also covers kernel-based problems. The kernel least squares experiments are mentioned in this text only in connection with normalizing the regularization term, so the CIFAR-10 and MRBI figures above are the speedups quantified here.
Recasting configurations as an infinite-armed bandit
In the theory, each configuration x is a source of a loss sequence \(\ell_k(x)\) with values in [0,1], where k counts units of resource, and its limit \(\ell^*(x)\) is the loss at full training. The target is \(\nu^*\), the infimum over configurations of \(\ell^*(x)\), and neither the loss sequences nor their distribution is known in advance.
Configurations are drawn from a known distribution p(x), which is uniform in the experiments, but any sampler can be used. Because nothing is assumed about how losses vary across configurations, the problem reduces to the loss sequence of each drawn arm, and the arm index is the only identifier.
Two assumptions make the reduction precise: each arm's limit exists and equals \(\nu_i\), and the \(\nu_i\) are bounded i.i.d. draws with CDF F. F is the CDF of the terminal loss of a random configuration, and \(\nu^*\) is the lower end of the support of that distribution.
The function γ bounds, for every arm, the deviation of the loss at iterate j from its limit, that is \(\sup_i|\ell_{i,j}-\ell_{i,*}|\le\gamma(j)\), and R is the first index where γ is zero, or infinite otherwise. The finite-horizon case has R known, as when subsets of a data set serve as the resource, while the infinite-horizon case assumes no bound on R.
What the guarantees say and what they need
Theorem 1 covers SuccessiveHalving on n fixed arms ordered so that \(\nu_1\le\dots\le\nu_n\).
The budget depends on F and γ, which the method does not know in practice, so the corollary is a guide to what an oracle budget would achieve.
A tail bound gives \((1-F(\nu^*+\Delta))^n\approx e^{-nF(\nu^*+\Delta)}\) for the chance that all n arms are at least Δ above \(\nu^*\), which links the number of arms to how likely a good one is found.
For Hyperband itself, the authors state that it needs only log factors more budget than SuccessiveHalving, without knowing F or the envelope functions. Appendix proofs simplify the finite-horizon bounds in terms of exponents α and β, with constants depending only on those exponents.
Limits of the approach
Progress is compared by iterations instead of time, which leaves out the cost of configuration selection for Bayesian methods and the model initialization and validation cost for Hyperband. The estimate of under 5% overhead, and the judgment that time-based comparison would not change the results significantly, refer to EC2 g2.8xlarge machines.
When a hyperparameter's effect depends on the allocated resource, performance at small budgets says little about performance at large budgets, so the early-stopping benefit shrinks. The authors recommend removing such dependence where possible, for example by normalizing the regularization term as in the kernel least squares experiments.
Configurations with drastically different convergence rates, such as those with different learning rate decay or different model families, remain an open challenge.
The method uses random sampling, and combining it with non-random sampling schemes is left as future work.
Parallel brackets across machines are discussed, but the number of tasks shrinks as arms are eliminated, which requires a more elaborate job queue.
Paper info
- Authors
- Lisha Li, Kevin Jamieson, Giulia DeSalvo, Afshin Rostamizadeh, Ameet Talwalkar
- Venue
- arXiv · Preprint
- First published
- 2016-3-21
- Added
- 2026-11-12
- Updated
- 2018-6-18
- Version
- v4
- arXiv
- 1603.06560
- Category
- cs.LG · stat.ML
- Original paper terms
- arXiv non-exclusive 1.0
- What we show
- Paper info and commentary
AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.
Quote from the paper
Lisha Li, Kevin Jamieson, Giulia DeSalvo, Afshin Rostamizadeh, Ameet Talwalkar (2016). Hyperband: A Novel Bandit-Based Approach to Hyperparameter Optimization. arXiv:1603.06560v4. https://arxiv.org/abs/1603.06560v4
BibTeX
@misc{li2016hyperband,
title = {{Hyperband: A Novel Bandit-Based Approach to Hyperparameter Optimization}},
author = {Lisha Li and Kevin Jamieson and Giulia DeSalvo and Afshin Rostamizadeh and Ameet Talwalkar},
year = {2016},
eprint = {1603.06560},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/1603.06560v4}
}