Predicting the utility of search spaces for black-box optimization: a simple, budget-aware approach

Setareh Ariafar, Justin Gilmer, Zachary Nado, Jasper Snoek, Rodolphe Jenatton, George E. Dahl

Abstract

Black box optimization requires specifying a search space to explore for solutions, e.g. a d-dimensional compact space, 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.

The Challenge of Search Space Selection

In black-box optimization, and specifically hyperparameter optimization (HPO) for deep learning, the choice of search space is often more of an art than a science. If a search space is too narrow, the global optimum may be excluded. Conversely, if it is too broad, an optimization algorithm might waste its entire budget exploring low-quality regions.

Crucially, the "best" search space is not static; it depends heavily on the available budget. A small budget favors a narrow, high-probability region, while a larger budget allows for exploring riskier, broader spaces with higher potential upside. Currently, researchers often rely on intuition or "folk wisdom" to define these spaces, which can hinder reproducibility and efficiency. This paper proposes a formal method to quantify and predict the utility of these choices.

Proposed Method: Budget-Aware Scoring

The authors introduce a scoring function, $\hat{\alpha}(S, b, p, y^+)$, designed to predict the utility of a search space $S$ given a specific budget $b$. The approach follows three main steps:

  1. Probabilistic Modeling: A Gaussian Process (GP) is fit to a small set of "seed data" (initial random trials) to create a response surface that maps hyperparameters to performance while accounting for uncertainty.
  2. Utility Function: The method adapts "batch" acquisition functions from Bayesian Optimization, specifically multi-point Expected Improvement (b-EI). Instead of identifying a single next point, it calculates the average expected improvement if a random batch of size $b$ were drawn from the sub-region $S$.
  3. Budget Awareness: By conditioning the score on $b$, the method naturally manages the risk-reward trade-off. As the budget increases, the score for a larger, "loose" search space improves because the probability of discovering a high-performing outlier increases.
Figure 3: Branin contour and corresponding search space scores, illustrating how the method identifies regions with high improvement potential based on observed points.

Experimental Evaluation

The method was evaluated on synthetic benchmarks (Branin and Hartman functions) and real-world deep learning tasks, including tuning WideResNet on CIFAR-100, ResNet-50 on ImageNet, and a Transformer on LM1B. The hyperparameter spaces included dimensions such as learning rate, momentum, dropout, and label smoothing.

Key Results

  • Ranking Accuracy: On ImageNet and CIFAR-100, the predicted scores successfully preserved the ranking of candidate search spaces. The predicted "best" space consistently aligned with empirical performance.
  • Optimization Speedup: The scoring method enables "one-shot pruning," where the first portion of a budget is used to warm up the GP, and the second portion is restricted to a high-scoring sub-region. This approach consistently reached lower validation errors faster than standard Bayesian Optimization on the original, unpruned space.
  • Decision Support: For complex models like the Transformer, the method correctly identified that at low budgets, it is more efficient to fix certain hyperparameters (like dropout) to default values rather than attempting to tune them.
Figure 2: Predicted vs. empirical improvement scores for tuning WideResNet on CIFAR100 and ResNet50 on ImageNet across different search space volumes.

Insights and Limitations

A key finding is that the optimal search space is a function of the budget. For small budgets, the scoring method prefers safer, smaller spaces centered on known good points. As the budget grows, the scores shift to favor larger spaces with more "upside" potential.

However, the method is sensitive to the quality of the underlying probabilistic model. If the initial seed data is extremely sparse or unrepresentative, the GP may produce inaccurate scores. Additionally, there is a minimum "entry fee" of initial trials required to build a reliable model. Despite these limitations, the framework is model-agnostic and could potentially utilize Random Forests or Neural Networks as BBO modeling improves.

Conclusion

Predicting the utility of search spaces offers a path toward more automated and reproducible hyperparameter tuning. By making search space selection budget-aware, researchers can move away from intuition-based tuning toward a more principled, data-driven experimental workflow.

Summary updated

BibTeX
@inproceedings{ariafar2022predicting,
  author = {Setareh Ariafar and Justin Gilmer and Zachary Nado and Jasper Snoek and Rodolphe Jenatton and George E. Dahl},
  title = {{Predicting the utility of search spaces for black-box optimization: a simple, budget-aware approach}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2022},
  url = {https://openreview.net/forum?id=Ralq65bIW0},
}
Figure