Stage-based Hyper-parameter Optimization for Deep Learning

Ahnjae Shin, Dongjin Shin, Sungwoo Cho, Do Yoon Kim, Eunji Jeong, Gyeong-In Yu, Byung-Gon ChunarXiv 2019

Introduction

Hyper-parameter optimization (HPO) is a critical yet computationally expensive phase in deep learning workflows. Finding the optimal configuration—such as learning rates, batch sizes, or weight decay—often requires running hundreds of independent trials. This paper introduces a novel stage-based execution strategy that fundamentally rethinks how HPO is performed. By merging trials with common prefixes into a "stage-tree," the proposed system eliminates redundant computations, achieving up to a 6.6x reduction in GPU-hours and a 4.1x speedup in end-to-end training time without sacrificing model accuracy.

The Problem: Redundant Computation in HPO

Modern deep learning training often involves multi-stage schedules where hyper-parameters change over time (e.g., decaying the learning rate at specific epochs). Traditional HPO systems treat each trial as an isolated "black box." If multiple trials share the same initial hyper-parameters for the first few dozen epochs, a standard system will redundantly re-train those identical initial epochs for every single trial. This "prefix redundancy" represents a massive waste of computational resources, as the early stages of training are repeated unnecessarily across the search space.

The Solution: Stage-based Execution

The authors propose moving from trial-based execution to stage-based execution. This approach is built on four key pillars:

  1. The Stage-Tree: Instead of a flat list of independent trials, the search space is organized as a tree. Each node represents a "stage"—a training interval where hyper-parameters are constant.
  2. Prefix Merging: The system automatically identifies trials with identical initial hyper-parameter settings and merges them into a single path in the tree.
  3. Branching Execution: A parent stage is executed once, and its state is saved as a checkpoint. All subsequent "child" stages, representing different hyper-parameter choices for the next phase, resume from this shared checkpoint.
  4. Just-fit Resource Allocation: The system profiles each stage to determine its specific memory and compute requirements (e.g., based on batch size) and allocates GPU resources accordingly, avoiding the common pitfall of over-provisioning for the worst-case scenario.
Comparison of traditional trial-based study vs. the proposed stage-tree approach.

Experimental Evaluation

The researchers evaluated the stage-based strategy using standard image classification benchmarks:

  • Datasets: CIFAR-10.
  • Models: ResNet-20 and WideResNet 16-4.
  • Algorithms: The strategy was integrated with Grid Search, Successive Halving Algorithm (SHA), and Asynchronous SHA (ASHA).

Key Results

The stage-based approach demonstrated significant efficiency gains across all tested scenarios while maintaining state-of-the-art accuracy (e.g., 94.8% on WideResNet).

  • Learning Rate Tuning (ResNet-20):
    • Grid Search: Achieved a 2.94x end-to-end speedup and a 3.49x reduction in GPU-hours.
  • SHA: Delivered a 2.02x end-to-end speedup and a 5.73x reduction in GPU-hours.
  • Batch Size Tuning (WideResNet):
    • ASHA: Resulted in a 4.13x end-to-end speedup and a 6.60x reduction in GPU-hours.
GPU-hour reduction across different HPO algorithms and models.

Discussion and Future Work

The core insight of this work is that HPO configurations are sequences of values over time rather than static points. By transforming HPO into a tree-structured computation problem, the system aligns execution with the actual information entropy of the search space.

However, some limitations remain. The current implementation is most effective for discrete search spaces where overlaps are frequent. In continuous search spaces (e.g., random search), the probability of exact prefix matches is low, though users can mitigate this by discretizing their search domains. Additionally, for very small models, the overhead of checkpointing might offset the gains.

Future research will focus on extending this framework to more complex hyper-parameters, such as data augmentation and Neural Architecture Search (NAS), and developing HPO algorithms that are natively designed to maximize prefix sharing.

Summary updated

BibTeX
@misc{shin2019stage,
  author = {Ahnjae Shin and Dongjin Shin and Sungwoo Cho and Do Yoon Kim and Eunji Jeong and Gyeong-In Yu and Byung-Gon Chun},
  title = {{Stage-based Hyper-parameter Optimization for Deep Learning}},
  year = {2019},
  eprint = {1911.10504},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1911.10504},
}
Figure