Abstract
The performance of deep neural networks (DNN) is very sensitive to the particular choice of hyper-parameters. To make it worse, the shape of the learning curve can be significantly affected when a technique like batchnorm is used. As a result, hyperparameter optimization of deep networks can be much more challenging than traditional machine learning models. In this work, we start from well known Bayesian Optimization solutions and provide enhancement strategies specifically designed for hyperparameter optimization of deep networks. The resulting algorithm is named as DEEP-BO (Diversified, Early-termination-Enabled, and Parallel Bayesian Optimization). When evaluated over six DNN benchmarks, DEEP-BO easily outperforms or shows comparable performance with some of the well-known solutions including GP-Hedge, Hyperband, BOHB, Median Stopping Rule, and Learning Curve Extrapolation.
Introduction
Hyperparameter optimization (HPO) is often considered the "black art" of deep learning. Selecting the optimal learning rate, regularization strength, or architectural depth is critical for model performance. While Bayesian Optimization (BO) is a standard approach, it faces unique hurdles when applied to deep neural networks (DNNs). First, techniques like Batch Normalization can create misleading early signals, where high-performing models appear poor in early training stages—a phenomenon termed the "batchnorm trap." Second, the sensitivity of search spaces means no single surrogate model is universally optimal. Finally, the high computational cost of training DNNs demands efficient parallelization strategies.
Methodology: The DEEP-BO Framework
To address these challenges, we propose DEEP-BO (Diversified, Early-termination-Enabled, and Parallel Bayesian Optimization), which incorporates four key innovations:
- Model Diversification: Instead of a single surrogate model, DEEP-BO rotates through $N$ different modeling algorithms (e.g., Gaussian Processes and Random Forests). This prevents the search from converging prematurely to local optima.
- Compound Rule (CR) for Early Termination: Standard early-stopping rules often discard "slow burners." CR employs a conservative two-checkpoint strategy. Checkpoint-1 (at 50% of max epochs) removes only clearly untrainable configurations, while Checkpoint-2 (near completion) preserves those with high potential to exceed the current best.
- In-Progress Parallelization: To maximize hardware utilization, DEEP-BO uses "in-progress" evaluation data. By temporarily incorporating incomplete results into the history, it informs the selection of subsequent candidates, preventing redundant sampling across parallel workers.
- Hybrid Cost Transformation: A hybrid log-linear scale for error rates enhances sensitivity to improvements as models approach zero error, where linear scales typically lose precision.
Experimental Evaluation
We evaluated DEEP-BO using a surrogate-based benchmarking approach across six diverse tasks, including Computer Vision (MNIST, CIFAR-10, CIFAR-100), Natural Language Processing (Penn Treebank), and Regression (kin8nm).
As shown in Figure 4, DEEP-BO consistently achieves lower objective values (RMSE, perplexity, or test error) faster than baseline methods like Hyperband and BOHB.
Key Results and Insights
DEEP-BO demonstrates significant improvements in both efficiency and robustness:
- Success Rate: On a single processor, DEEP-BO achieved a 91% mean success rate across benchmarks, vastly outperforming BOHB (8%) and GP-Hedge (66%) in these settings.
- Parallel Scaling: With 6 parallel processors, DEEP-BO achieved a 5.35x speedup, demonstrating near-linear scalability.
- The Batchnorm Trap: Our analysis revealed that top-performing models with batch normalization often rank among the worst in the first 25% of training. DEEP-BO's conservative CR strategy successfully navigates this, whereas aggressive methods like Hyperband fail.
Figure 5 highlights the superior success rate of DEEP-BO, which reaches a 100% success rate significantly faster than competing algorithms.
Conclusion
DEEP-BO provides a robust framework for DNN hyperparameter optimization by balancing exploration through diversification and efficiency through conservative early termination and parallelization. While it introduces new parameters like the termination threshold $\beta$, its default settings prove effective across varied domains. Future work will focus on refining checkpoint selection and reducing initial warm-up requirements.
Summary updated