NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Weighting Is Worth the Wait: Bayesian Optimization with Importance Sampling

Setareh Ariafar, Zelda Mariet, Ehsan Elhamifar, Dana H. Brooks, Jennifer G. Dy, Jasper SnoekarXiv 2020

Hyperparameter optimization (HPO) is the "expensive necessity" of modern machine learning. To find the best settings for a neural network, researchers typically have to train the model hundreds of times, a process that is both computationally grueling and environmentally costly. While multi-fidelity Bayesian Optimization (BO) attempts to speed this up by using "cheap" evaluations—such as training on small random subsets of data—these subsets are often noisy and unrepresentative, leading the optimizer to make poor decisions.

In this work, the authors introduce Importance-based Bayesian Optimization (IBO), a framework that accelerates tuning by making every training step more informative. By leveraging importance sampling during the training process, IBO finds superior model configurations in significantly less wall-clock time than state-of-the-art baselines.

The Core Concept: Quality Over Quantity

The fundamental challenge in multi-fidelity BO is the trade-off between the cost of an evaluation and the quality of the information it provides. Standard methods often prioritize quantity, gathering many noisy data points. However, IBO operates on the principle that "weighting is worth the wait."

A comparison of Gaussian Process models. (a) shows a model built from many noisy points, resulting in a poor fit to the real function. (b) shows that a few high-fidelity, noiseless points allow for a much more accurate reconstruction of the underlying function.

As illustrated above, a surrogate model built on a few accurate, high-fidelity data points is far more useful for optimization than one built on a large volume of noisy data. IBO achieves this high fidelity by intelligently selecting which data points to train on.

Methodology: Importance-based Bayesian Optimization (IBO)

IBO employs a two-layered approach to optimize hyperparameters efficiently:

  1. The Inner Loop (Importance Sampling): Instead of standard Stochastic Gradient Descent (SGD), which treats every training example as equally important, IBO uses Importance Sampling (IS). It calculates which data points are most "informative" based on gradient norms and prioritizes them. This results in higher-quality gradient updates and faster convergence.
  2. The Outer Loop (Multi-task BO): The core innovation is treating the design of this importance sampling as a tunable parameter. The algorithm uses a multi-task Gaussian Process (GP) to model the relationship between hyperparameters and the "pre-sample size" ($B$), which controls the intensity of the importance sampling.
  3. Cost-Aware Acquisition: Using a cost-adjusted Entropy Search acquisition function, the algorithm mathematically decides whether to invest time in a high-fidelity evaluation (large $B$) or a quick, low-fidelity check (small $B$).

Key Results and Insights

The researchers evaluated IBO across benchmarks of increasing complexity, including MNIST, CIFAR-10, and CIFAR-100 using both standard CNNs and ResNet architectures.

One of the most significant findings is that the benefits of IBO become more pronounced as the task difficulty increases. On complex tasks like training a ResNet on CIFAR-100, IBO dominates existing methods like Fabolas and standard Entropy Search.

Performance comparison on ResNet CIFAR-100. IBO (dark blue) achieves a lower test error significantly faster than competing methods, reaching a superior optimum in roughly 20% of the time budget used by others.

On the CIFAR-100 benchmark, IBO achieved a test error of 0.32, significantly outperforming Fabolas (0.37) and standard Entropy Search (0.38) within the same time budget. Furthermore, IBO reached a lower test error in just 20% of the total time budget than its competitors reached in their entire run.

Conclusion

IBO demonstrates that by dynamically learning how much effort to put into importance sampling, Bayesian Optimization can become significantly more efficient. While importance sampling adds some per-iteration overhead, the resulting high-fidelity evaluations allow the optimizer to find global optima with far fewer total iterations. Future work may involve extending IBO to other optimization variants like Adam or RMSProp and integrating it with early-stopping methods like Hyperband for even greater speedups.

Summary updated

BibTeX
@misc{ariafar2020weighting,
  author = {Setareh Ariafar and Zelda Mariet and Ehsan Elhamifar and Dana H. Brooks and Jennifer G. Dy and Jasper Snoek},
  title = {{Weighting Is Worth the Wait: Bayesian Optimization with Importance Sampling}},
  year = {2020},
  eprint = {2002.09927},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2002.09927},
}
Figure