Skip to main content
QUICK REVIEW

[Paper Review] Automatic Termination for Hyperparameter Optimization

Anastasia Makarova, Huibin Shen|arXiv (Cornell University)|Apr 16, 2021
Machine Learning and Data ClassificationComputer Science8 citations
TL;DR

This paper proposes an automatic termination criterion for Bayesian optimization in hyperparameter tuning that stops the process when the estimated regret is sufficiently close to the global optimum, using a high-probability confidence bound and a data-driven threshold based on cross-validation variance. The method reduces overfitting and saves computation while maintaining high test performance across diverse HPO benchmarks.

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. 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.

Motivation & Objective

  • To address the challenge of pre-specifying a fixed budget in Bayesian hyperparameter optimization (HPO), which can lead to suboptimal performance or wasted computation.
  • To identify and mitigate overfitting in HPO, where improving validation performance does not translate to better test performance.
  • To develop an intuitive, plug-and-play termination criterion that maintains solution quality while reducing optimization time.
  • To provide a data-driven threshold for stopping based on statistical properties of cross-validation, rather than arbitrary fixed values.

Proposed method

  • The method uses a high-probability upper bound on the simple regret (difference between current best and global optimum) to guide termination.
  • It incorporates a termination threshold derived from the variance of cross-validation estimators, accounting for the irreducible gap between validation and test error.
  • The criterion dynamically evaluates whether further optimization is unlikely to yield significant improvement beyond the user-defined tolerance.
  • The approach is compatible with any BO-based HPO method and can be combined with existing acceleration techniques like Hyperband.
  • It avoids reliance on fixed iteration counts or heuristic improvement thresholds, instead using statistical confidence to determine when to stop.
  • The method is implemented as a plugin that can be integrated into standard HPO pipelines without modifying the underlying optimization loop.

Experimental results

Research questions

  • RQ1Can an automatic termination criterion be designed for Bayesian optimization in HPO that adapts to the observed data and avoids overfitting?
  • RQ2How does the statistical variance of cross-validation affect the reliability of validation-based stopping decisions?
  • RQ3Does using a data-driven threshold based on cross-validation variance lead to better trade-offs between optimization time and final test performance?
  • RQ4To what extent does overfitting occur in HPO even with cross-validation, and can automatic termination help mitigate it?
  • RQ5How robust is the proposed termination criterion across different HPO optimizers and benchmark datasets?

Key findings

  • The proposed termination criterion achieves 80% to 90% success rate in stopping when the true regret is within the user-defined tolerance, ensuring high solution quality.
  • The method effectively mitigates overfitting in HPO, as evidenced by positive RYC scores indicating better test performance at termination than in later rounds.
  • Across HPO-Bench and NAS-Bench-201, the method outperforms baselines in maintaining test performance while reducing optimization time.
  • The method shows consistent performance across different HPO optimizers, including random search and BORE, indicating strong robustness.
  • The speed-up is substantial and stable, with minimal degradation in solution quality compared to baselines that rely on fixed iteration counts or convergence checks.
  • The study reveals that overfitting is a real and overlooked issue in HPO, even with cross-validation, and that early stopping can prevent it.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.