Abstract
Recent work on hyperparameters optimization (HPO) has shown the possibility of training certain hyperparameters together with regular parameters. However, these online HPO algorithms still require running evaluation on a set of validation examples at each training step, steeply increasing the training cost. To decide when to query the validation loss, we model online HPO as a time-varying Bayesian optimization problem, on top of which we propose a novel costly feedback setting to capture the concept of the query cost. Under this setting, standard algorithms are cost-inefficient as they evaluate on the validation set at every round. In contrast, the cost-efficient GP-UCB algorithm proposed in this paper queries the unknown function only when the model is less confident about current decisions. We evaluate our proposed algorithm by tuning hyperparameters online for VGG and ResNet on CIFAR-10 and ImageNet100. Our proposed online HPO algorithm reaches human expert-level performance within a single run of the experiment, while incurring only modest computational overhead compared to regular training.
Introduction
Training deep neural networks requires picking the right hyperparameters, such as dropout rates or data augmentation strengths. Traditionally, this is achieved via trial-and-error methods like grid search or random search, which necessitate running hundreds of full training sessions.
Recent "online" HPO methods allow hyperparameters to be tuned during a single training run by examining the validation loss at every step. However, calculating validation loss on a large dataset at every training iteration is computationally prohibitive, often making the training process several times longer. This research addresses the "costly feedback" gap: finding a way to gain the benefits of online tuning without the massive computational tax of constant validation.
The CE-GP-UCB Framework
The authors model the training process as a time-varying Bayesian Optimization (BO) problem. Because the optimal hyperparameters may shift as training progresses (e.g., requiring more data augmentation in later stages), the objective function is treated as a moving target.
The core contribution is the Cost-Efficient GP-UCB (CE-GP-UCB) algorithm, which utilizes three primary components:
- Spatio-Temporal Gaussian Process (GP): The algorithm uses a GP to model the reward (validation performance) across both the hyperparameter space and time. It incorporates a "forgetting rate" ($\epsilon$) to account for the fact that older validation scores lose relevance as model weights evolve.
- Uncertainty-Driven Querying: Instead of checking the validation set at every step, the agent evaluates its confidence. It asks if the current hyperparameter choice is demonstrably better than alternatives.
- The Decision Rule: If the probability that the current choice is superior to all other candidates exceeds a threshold $\kappa$, the algorithm skips the validation step. It only "pays" for feedback when uncertainty is high.
Experimental Evaluation
The researchers evaluated their approach on three main benchmarks: synthetic time-varying functions, CIFAR-10 (tuning VGG16 layer-wise dropout), and ImageNet100 (tuning eight data augmentation parameters for SimCLR).
Key Results
- Efficiency in SimCLR: On ImageNet100, the algorithm reached a top-1 accuracy of 77.95%, nearly identical to the 77.99% achieved by human experts. Crucially, it achieved this while reducing the query cost (validation evaluations) by 40%.
- Superior Cost-Efficiency: Compared to standard BO algorithms and random (Bernoulli) query schedules, CE-GP-UCB consistently achieves lower regret for the same computational budget.
- Synthetic Performance: In controlled environments, the algorithm saved roughly 97.5% of queries compared to full-observation GP-UCB while still finding the optimal hyperparameter path.
Discussion and Insights
The paper shifts the perspective of HPO from finding the best point to finding the best point while minimizing evaluation spend. The most significant insight is that if the Upper Confidence Bound (UCB) of a current choice is significantly higher than the Lower Confidence Bound of others, new data is not strictly necessary to proceed.
By using a time-varying GP, the model naturally understands that its knowledge decays. This forces the algorithm to occasionally re-query the validation set even if it was previously confident, ensuring it adapts to the shifting landscape of the training process.
Limitations
While effective, the algorithm is sensitive to local optima if hyperparameter candidates are too similar, which may cause persistent uncertainty. Additionally, like all BO methods, it introduces its own "hyper-hyperparameters" (threshold $\kappa$ and forgetting rate $\epsilon$) that require initial configuration. Scaling to hundreds of hyperparameters also remains a challenge due to the inherent dimensionality constraints of Gaussian Processes.
Summary updated