Automatic Termination for Hyperparameter Optimization

Anastasia Makarova, Huibin Shen, Valerio Perrone, Aaron Klein, Jean Baptiste Faddoul +3 more
4/16/2021
cs.LGcs.AIstat.ML

Official code: amazon-science/bo-early-stopping (7 stars, Jupyter Notebook, Apache-2.0, last commit 2022-09-20).

Abstract

Bayesian optimization (BO) is a widely popular approach for the hyperparameter optimization (HPO) in machine learning. At its core, BO iteratively evaluates promising configurations until a user-defined budget, such as wall-clock time or number of iterations, is exhausted.

Show full abstract

While the final performance after tuning heavily depends on the provided budget, it is hard to pre-specify an optimal value in advance. In this work, we propose an effective and intuitive termination criterion for BO that automatically stops the procedure if it is sufficiently close to the global optimum. Our key insight is that the discrepancy between the true objective (predictive performance on test data) and the computable target (validation performance) suggests stopping once the suboptimality in optimizing the target is dominated by the statistical estimation error. Across an extensive range of real-world HPO problems and baselines, we show that our termination criterion achieves a better trade-off between the test performance and optimization time. Additionally, we find that overfitting may occur in the context of HPO, which is arguably an overlooked problem in the literature, and show how our termination criterion helps to mitigate this phenomenon on both small and large datasets.

View on arXivView PDF

Code Implementations(1)

Apache-2.0
73Jupyter Notebook, PythonJun 27, 20224 years agoApache-2.0

Similar Papers

Cite this paper

@article{makarova2021automatic,
  title  = {Automatic Termination for Hyperparameter Optimization},
  author = {Anastasia Makarova and Huibin Shen and Valerio Perrone and Aaron Klein and Jean Baptiste Faddoul and Andreas Krause and Matthias Seeger and Cedric Archambeau},
  year   = {2021},
  eprint = {2104.08166},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2104.08166}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2104.08166.svg)](https://codeofpaper.com/paper/2104.08166)

Discussion