Multi-level Training and Bayesian Optimization for Economical Hyperparameter Optimization

Yang Yang, Ke Deng, Michael Zhu · DOI

Abstract

Hyperparameter optimization (HPO) is essential for maximizing machine learning performance but is often constrained by the prohibitive computational cost of full model training. This paper introduces a multi-level training framework and a Bayesian Truncated Additive Optimization (BTAO) algorithm to accelerate HPO. By utilizing "light training" (early stopping) and "heavy training" (full completion), and calibrating the relationship between them using a Truncated Additive Gaussian Process model, the proposed method significantly reduces the total training time required to find optimal configurations. The approach demonstrates competitive performance across synthetic benchmarks, support vector machines (SVM), and deep neural networks.

Introduction

Hyperparameter optimization is frequently described as the "dark art" of machine learning. Whether tuning the learning rate of a transformer or the dropout rate of a convolutional neural network (CNN), the process is notoriously resource-intensive. Practitioners often spend hours waiting for a model to finish training, only to find that the selected settings were suboptimal.

In the paper "Multi-level Training and Bayesian Optimization for Economical Hyperparameter Optimization," researchers from Tsinghua and Purdue Universities propose a method to mitigate these costs. By combining early-stopping data with a novel statistical model, they have developed a framework that identifies optimal settings significantly faster than standard Bayesian Optimization (BO) approaches.

The Efficiency Gap: Fast vs. Slow Improvement

The primary bottleneck in HPO is the excessive training time required for each evaluation. The authors identify a specific phenomenon in deep learning: the distinction between the "fast-improving" period and the "slow-improving" period.

Typically, a model achieves approximately 90% of its total performance improvement in the first 20% of its training time. The remaining 10% of improvement consumes the final 80% of the clock. Standard BO usually requires models to be trained to completion ("heavy training") to obtain an accurate data point, which is highly inefficient. While multi-fidelity methods like Hyperband exist to exploit early stopping, they often struggle to accurately model the complex relationship between a partially trained model and a fully trained one.

Methodology: Bayesian Truncated Additive Optimization (BTAO)

The core innovation of this research is the Truncated Additive Model (TAM) and the resulting BTAO algorithm, which consists of four primary components:

1. Two-Level Training

The authors define two distinct training regimes:

  • Light Training (LT): Training that stops immediately after the fast-improving period.
  • Heavy Training (HT): Training that runs to full convergence.

2. The Truncated Additive Model (TAM)

Instead of treating LT and HT as independent tasks, the authors model the HT performance ($y_h$) as a function of LT performance ($y_l$):

$$y_h(x) = \rho y_l(x) + \delta(x)$$

In this equation, $\delta(x)$ represents a "location adjustment." Crucially, because more training almost always results in a lower validation error (or at least does not degrade it), the authors model $\delta(x)$ using a Truncated Gaussian Process. This mathematical constraint ensures the model respects the physical reality that $y_h(x) \le y_l(x)$, preventing the optimizer from making impossible predictions.

3. Initialization with Nested Latin Hypercube Designs (NLHD)

To ensure the search space is explored efficiently, the authors use Nested Latin Hypercube Designs. This ensures that the initial configurations selected for both light and heavy training are spread evenly across the space, preventing redundant evaluations in unhelpful regions.

4. Sequential Optimization

The BTAO algorithm utilizes two acquisition functions. It first identifies promising candidates for Light Training. If a candidate performs well in the light phase, the model "promotes" it to Heavy Training to obtain an exact measurement and refine the calibration of the TAM.

Experimental Results

The authors evaluated BTAO against standard benchmarks, including synthetic functions (Currin exponential and Park functions), SVMs on MNIST, and deep learning architectures (FCNs on MNIST and CNNs on CIFAR-10). BTAO was compared against Random Search (RS), TPE, GP-BO, SMAC, and BOHB.

  • Speedup in Deep Learning: On the CIFAR-10 CNN task, BTAO found optimal hyperparameters 1.5 to 1.8 times faster than other state-of-the-art methods.
  • Efficiency in SVM: For SVM tuning, BTAO was twice as fast as standard GP-BO.
  • Convergence Speed: In FCN training, BTAO reached comparable validation errors up to five times faster than SMAC during the middle of the training period.
  • Profile Accuracy: The TAM model demonstrated a high degree of accuracy in predicting the entire performance profile of the hyperparameter space using very few expensive HT runs.

Conclusion and Future Work

BTAO represents a significant step forward in making HPO more economical by treating the final stages of training as a calibration problem rather than a discovery problem. By baking the physical constraints of learning curves into a Truncated Gaussian Process, the algorithm makes more informed decisions about which models are worth the computational investment of full training.

Future research directions include extending the TAM to handle more than two levels of fidelity (e.g., training on varying percentages of data) and developing automated methods to detect the "elbow" of the learning curve to define the transition from Light to Heavy training dynamically.

Summary updated

BibTeX
@misc{yang2020multi,
  author = {Yang Yang and Ke Deng and Michael Zhu},
  title = {{Multi-level Training and Bayesian Optimization for Economical Hyperparameter Optimization}},
  year = {2020},
  eprint = {2007.09953},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2007.09953},
}
Figure