Abstract
Black box optimization requires specifying a search space to explore for solutions, and this choice is critical for getting the best results at a reasonable budget. Unfortunately, determining a high-quality search space can be challenging in many applications. For example, when tuning hyperparameters for machine learning pipelines on a new problem given a limited budget, one must strike a balance between excluding potentially promising regions and keeping the search space small enough to be tractable. The goal of this work is to motivate—through example applications in tuning deep neural networks—the problem of predicting the quality of search spaces conditioned on budgets, as well as to provide a simple scoring method based on a utility function applied to a probabilistic response surface model, similar to Bayesian optimization. We show that the method we present can compute meaningful budget-conditional scores in a variety of situations. We also provide experimental evidence that accurate scores can be useful in constructing and pruning search spaces. Ultimately, we believe scoring search spaces should become standard practice in the experimental workflow for deep learning.
Introduction
Hyperparameter tuning is a cornerstone of modern machine learning, yet it remains a "black-box" challenge. Practitioners must define a search space—bounds for learning rates, dropout, or layer sizes—before optimization begins. This choice is often a guessing game. A space that is too broad may lead to an inefficient search given a limited compute budget, while a space that is too narrow might exclude the global optimum. This paper introduces a principled, budget-aware method to score and rank candidate search spaces, allowing for more efficient experimental workflows.
The Scoring Framework
The authors propose a method to evaluate the utility of an entire search space conditioned on a specific budget $b$. Unlike standard Bayesian Optimization (BO), which selects the next point to evaluate, this approach uses a probabilistic surrogate model (typically a Gaussian Process) to predict the expected improvement of a batch of $b$ points within a candidate space.
- Seed Data: A small set of initial observations is used to train the surrogate model.
- Utility Function: The method calculates the multi-point expected improvement ($b$-EI) or probability of improvement ($b$-PI).
- Estimation: Since exact calculation is intractable, Monte Carlo sampling is used to estimate the average improvement a budget of $b$ would yield in a specific sub-space.
Visualizing Utility on Synthetic Functions
The core insight is that the "best" search space depends on the budget. In the Branin function experiment, we see how the scoring function captures the trade-off between exploration and exploitation.
As the budget increases, the scoring function becomes less risk-averse. For small budgets, a compact space containing a "good enough" point is often scored higher than a vast space containing the global optimum, because the probability of finding that optimum with few evaluations is low. The predicted scores (solid lines) accurately track the empirical improvement (dashed lines) as the budget increases.
Validation on Deep Learning Tasks
The method's utility extends beyond synthetic functions to large-scale deep learning models. The authors evaluated the scoring mechanism on tasks such as tuning WideResNet on CIFAR100 and ResNet50 on ImageNet.
In these experiments, the predicted scores successfully preserved the true empirical ranking of different search spaces. This allows practitioners to prune ineffective regions of a search space or decide whether a specific hyperparameter (like dropout) is worth the cost of tuning given their specific compute constraints. For instance, on the LM1B Transformer task, the method correctly predicted that dropout should be fixed to 0 rather than tuned when the budget was small.
Key Insights and Applications
- Budget-Awareness: The ideal search space is not static; it scales with available compute. A massive search space might contain the global optimum, but a smaller, slightly sub-optimal space may yield better results if the budget is limited.
- Automated Pruning: By generating random sub-spaces and scoring them, the method can automatically identify the most promising regions to search, outperforming standard random search on the full space.
- Workflow Optimization: The framework provides a mathematical way to answer practical questions like "Should I tune this parameter?" by comparing the predicted utility of including it versus fixing it to a default value.
Limitations and Future Work
The accuracy of the scores is heavily dependent on the quality of the initial surrogate model. Sparse or poor-quality seed data can lead to unreliable predictions. Future work includes exploring more robust surrogate models, such as Random Forests or Bayesian Neural Networks, and developing algorithms that can directly propose optimal search space bounds rather than just scoring pre-generated candidates.
Conclusion
By treating search space selection as a budget-conditional optimization problem, this work provides a path toward more reproducible and efficient hyperparameter tuning. Scoring search spaces should become a standard part of the deep learning experimental workflow, helping researchers avoid the "Goldilocks problem" of search space definition.
Summary updated