Skip to main content
QUICK REVIEW

[Paper Review] Overfitting in Bayesian Optimization: an empirical study and early-stopping solution

Anastasia Makarova, Huibin Shen|arXiv (Cornell University)|May 7, 2021
Advanced Multi-Objective Optimization AlgorithmsComputer Science27 references9 citations
TL;DR

This paper investigates overfitting in Bayesian optimization (BO) during hyperparameter tuning, demonstrating that BO can overfit on small datasets despite improving validation metrics. It proposes an early-stopping criterion based on predictive uncertainty and model fit to prevent overfitting, showing in real-world experiments that this method maintains solution quality while reducing unnecessary iterations more adaptively than baselines.

ABSTRACT

Tuning machine learning models with Bayesian optimization (BO) is a successful strategy to find good hyperparameters. BO defines an iterative procedure where a cross-validated metric is evaluated on promising hyperparameters. In practice, however, an improvement of the validation metric may not translate in better predictive performance on a test set, especially when tuning models trained on small datasets. In other words, unlike conventional wisdom dictates, BO can overfit. In this paper, we carry out the first systematic investigation of overfitting in BO and demonstrate that this issue is serious, yet often overlooked in practice. We propose a novel criterion to early stop BO, which aims to maintain the solution quality while saving the unnecessary iterations that can lead to overfitting. Experiments on real-world hyperparameter optimization problems show that our approach effectively meets these goals and is more adaptive comparing to baselines.

Motivation & Objective

  • To investigate the extent and impact of overfitting in Bayesian optimization during hyperparameter tuning, especially on small datasets.
  • To challenge the conventional assumption that improving validation metrics always leads to better test performance.
  • To develop a novel early-stopping criterion that prevents overfitting while preserving solution quality in BO.
  • To evaluate the proposed method against existing baselines in real-world hyperparameter optimization scenarios.

Proposed method

  • The authors introduce a new stopping criterion that monitors predictive uncertainty and model fit during BO iterations to detect when further optimization risks overfitting.
  • The criterion uses a combination of uncertainty estimates from the surrogate model and changes in the validation metric to determine when to halt the optimization process.
  • The method dynamically adapts the stopping point based on the observed trend in performance improvements and uncertainty growth.
  • The approach is evaluated using cross-validated metrics on real-world hyperparameter tuning tasks with small to moderate dataset sizes.
  • The stopping rule is designed to be lightweight and compatible with standard BO frameworks, requiring no additional hyperparameters beyond standard BO settings.
  • The method is compared against baseline early-stopping strategies based on fixed iteration counts or fixed improvement thresholds.

Experimental results

Research questions

  • RQ1To what extent does Bayesian optimization overfit when tuning models on small datasets, even as the validation metric improves?
  • RQ2How can overfitting in BO be detected early during the optimization process without relying solely on validation performance?
  • RQ3Can a dynamic early-stopping criterion based on uncertainty and model fit effectively prevent overfitting while maintaining high-quality solutions?
  • RQ4How does the proposed method compare to fixed-iteration and fixed-improvement baselines in terms of generalization and efficiency?

Key findings

  • Overfitting in Bayesian optimization is a serious and underappreciated issue, particularly when training on small datasets, even when the validation metric improves.
  • The proposed early-stopping criterion successfully prevents overfitting by detecting when further iterations are likely to degrade generalization performance.
  • The method reduces unnecessary optimization iterations while maintaining or improving final test performance compared to baselines.
  • The approach demonstrates greater adaptivity than fixed-iteration or fixed-improvement stopping rules, especially in scenarios with limited data.
  • Empirical results on real-world hyperparameter tuning problems confirm that the method effectively balances solution quality and optimization efficiency.
  • The use of predictive uncertainty as a signal for stopping improves robustness to noisy or misleading validation metrics.

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.