A System for Massively Parallel Hyperparameter Tuning

Liam Li, Kevin Jamieson, Afshin Rostamizadeh, Ekaterina Gonina, Moritz Hardt, Benjamin Recht, Ameet TalwalkararXiv 2018

TL;DR

ASHA (Asynchronous Successive Halving Algorithm) is a simple, robust, and massively parallel hyperparameter optimization algorithm that leverages aggressive early-stopping and asynchrony. It consistently outperforms state-of-the-art methods like PBT, BOHB, and Google’s Vizier, scaling linearly to hundreds of workers to find optimal models in roughly the time it takes to train a single configuration.

What Problem Does This Paper Address?

Hyperparameter optimization (HPO) is a major bottleneck in modern machine learning. As models grow more complex (high-dimensional search spaces) and datasets get larger (increasing training times), traditional sequential tuning becomes impossible—it could take years to find a good setup.

While parallel computing offers a solution, existing methods struggle in the "large-scale regime." Standard early-stopping algorithms like Successive Halving (SHA) are synchronous; they require all models in a "rung" to finish before promoting the best ones. This makes them highly sensitive to stragglers (slow workers) and dropped jobs, leading to idle resources and significant delays in distributed environments. The authors aim to build a production-quality system that can handle thousands of configurations across hundreds of parallel workers without these bottlenecks.

Methods

The core contribution is ASHA, an asynchronous version of the Successive Halving Algorithm.

  • Successive Halving (SHA): The base algorithm allocates a small budget to many configurations, keeps the top $1/\eta$ (where $\eta$ is a reduction factor), increases their budget, and repeats until a maximum resource $R$ is reached.
  • ASHA's Innovation: Unlike SHA, ASHA does not wait for a rung to complete. It promotes a configuration to the next rung as soon as it ranks in the top $1/\eta$ of its current rung's completed jobs. If no promotions are possible, it simply starts a new random configuration at the base rung. This ensures that workers are never idle.
  • System Design: The paper also details how ASHA was integrated into a production system (Determined AI). Key features include:
  • Automatic Scaling: Using the Paleo framework to balance the tradeoff between training one model faster (using more GPUs) versus evaluating more models in parallel to increase throughput.
  • Fair-share Scheduling: A centralized scheduler that adaptively allocates GPUs based on the current needs of the ASHA job.
  • Reproducibility: Tracking the exact sequence of asynchronous promotions to allow for replaying and resuming tuning jobs.
Figure 1. Promotion scheme for SHA with n = 9, r = 1, R = 9, and η = 3.

Datasets

The authors evaluated ASHA across several diverse benchmarks:

  • CIFAR-10: Used for tuning standard CNN architectures (cuda-convnet) and more complex Neural Architecture Search (NAS) spaces.
  • Penn Treebank (PTB): Used for tuning RNNs and LSTMs, including a large-scale language modeling task with 500 workers.
  • SVHN: Used for CNN architecture tuning.
  • MNIST & Vehicle: Used for SVM tuning to compare against the Fabolas algorithm.

Key Insights and Ideas

  • Asynchrony Mitigates Stragglers: By removing the synchronization barrier, ASHA is far more robust to the variability in training times common in distributed clusters.
  • Aggressive Early-Stopping is Effective: The authors show that you don't need sophisticated Bayesian models to pick the next configuration if you can just evaluate many configurations very quickly and kill the bad ones early.
  • Linear Scalability: ASHA achieves near-linear speedups with the number of workers. In their experiments, 25 workers provided a 10x-25x speedup over a single worker.
  • Simplicity vs. Complexity: While methods like BOHB add Bayesian Optimization to SHA, ASHA’s simple random sampling combined with asynchrony often performs better in wall-clock time because it processes configurations much faster.

Key Results

  • Massive Parallelism: On a large-scale LSTM task with 500 workers, ASHA found a high-quality configuration (perplexity < 80) 3x faster than Google’s Vizier.
  • Wall-clock Efficiency: ASHA can often return a fully trained, high-performing model in approximately the same time it takes to train a single model to completion (1x $time(R)$).
  • NAS Performance: In Neural Architecture Search tasks, ASHA found architectures with lower test errors nearly twice as fast as synchronous SHA and BOHB.
ASHA (black line with 'x' markers) consistently reaches lower test errors faster than competitors in distributed settings.

Limitations and Future Work

  • Random Sampling: ASHA currently relies on random sampling for new configurations. While the authors argue this is robust, combining ASHA with more sophisticated adaptive sampling (like Bayesian Optimization) while maintaining asynchrony is a noted area for potential improvement.
  • Resource Assumptions: The efficiency of ASHA assumes that early-stage performance is a good proxy for final performance. While this holds for many ML tasks, it might fail for specific models where "late bloomers" are common.
  • Production Complexity: Implementing the full suite of system optimizations (autoscaling, fair-share scheduling) requires a sophisticated infrastructure, which might be overkill for smaller research setups.

Summary updated

BibTeX
@misc{li2018system,
  author = {Liam Li and Kevin Jamieson and Afshin Rostamizadeh and Ekaterina Gonina and Moritz Hardt and Benjamin Recht and Ameet Talwalkar},
  title = {{A System for Massively Parallel Hyperparameter Tuning}},
  year = {2018},
  eprint = {1810.05934},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1810.05934},
}
Figure