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

Fast Bayesian Optimization of Machine Learning Hyperparameters on Large Datasets

Aaron Klein, Stefan Falkner, Simon Bartels, Philipp Hennig, Frank Hutter

Abstract

Bayesian optimization has become a successful tool for hyperparameter optimization of machine learning algorithms, such as support vector machines or deep neural networks. Despite its success, for large datasets, evaluating a single hyperparameter configuration can be prohibitively expensive. This paper introduces FABOLAS (FAst Bayesian Optimization for LArge data Sets), a method that accelerates the optimization process by 10 to 100 times by intelligently utilizing small subsets of data to inform the search for the global optimum on the full dataset.

Introduction

Optimizing hyperparameters like learning rates, regularization constants, or architectural parameters is essential for achieving state-of-the-art performance in machine learning. However, traditional "black-box" Bayesian Optimization (BO) typically evaluates each configuration on the entire dataset. When training a single model takes days, finding the best settings becomes computationally infeasible.

While human experts often test ideas on small data subsets first, automating this intuition is challenging. Existing multi-fidelity methods often require predefined discrete tasks and struggle to learn correlations between small and large datasets without expensive full-scale evaluations. FABOLAS bridges this gap by treating dataset size as a continuous variable and extrapolating performance to the full dataset using a cost-aware framework.

Methodology

FABOLAS treats the dataset size ($s$) as an additional continuous input to the objective function, where $s \in [0, 1]$ represents the fraction of the total data. The core of the method lies in its joint modeling approach:

  • Joint Modeling: Gaussian Processes (GPs) model both the validation loss and the computational cost as functions of hyperparameters and dataset size.
  • Specialized Kernels: To capture the regularity of learning curves, the authors use a factorized kernel for loss that enforces monotonicity (loss generally decreases as $s$ increases). For cost, they model log-time to capture polynomial scaling (e.g., $O(n^2)$).
  • Information-Theoretic Acquisition: The method employs a modified Entropy Search (ES) that selects the hyperparameter/size pair $(x, s)$ providing the maximum expected information gain about the global optimum on the full dataset ($s=1$) per unit of time.
  • Overhead Awareness: The acquisition function explicitly accounts for the computational overhead of the BO algorithm itself, ensuring the optimizer doesn't spend more time "thinking" than it saves by training on smaller subsets.

Analysis of Hyperparameter Landscapes

A key insight of this work is that the hyperparameter landscape is often remarkably stable across different data scales. As shown in the figure below, even a tiny fraction of the data can identify the "good" regions of the search space.

Validation error surfaces for different dataset fractions $s$. Darker regions indicate lower error, showing that the optimal region remains consistent as $s$ increases.

By leveraging this stability, FABOLAS can perform the majority of its exploration on very small fractions of the data (e.g., $s < 0.25$), only moving to larger fractions when it needs to refine its estimate of the global optimum.

Experimental Results

The researchers evaluated FABOLAS on standard benchmarks including MNIST, CIFAR-10, and various UCI datasets for both SVMs and Deep Neural Networks (CNNs and ResNets).

Massive Speedups

FABOLAS consistently found high-quality hyperparameters 10 to 100 times faster than standard BO and the popular Hyperband strategy. On an SVM grid search benchmark, FABOLAS identified the global optimum in approximately 1,000 seconds, whereas standard BO required 100,000 seconds.

Optimization performance (test error vs. wallclock time) for FABOLAS compared to Multi-Task Bayesian Optimization (MTBO) baselines on an SVM benchmark.

Deep Learning Efficiency

On complex tasks like CIFAR-10 and SVHN, FABOLAS reached optimal performance levels significantly faster than vanilla BO. It also outperformed Hyperband because, while Hyperband starts with many random configurations, FABOLAS uses its internal model to immediately target promising areas of the hyperparameter space.

Conclusion and Future Work

FABOLAS demonstrates that treating dataset size as a continuous fidelity parameter allows for significantly more efficient hyperparameter optimization. By modeling the relationship between data size, performance, and cost, it automates the "small-scale testing" intuition used by human experts.

Future work may address the $O(n^3)$ scaling bottleneck of Gaussian Processes as the number of evaluations grows. Additionally, the authors suggest extending this framework to other environmental variables, such as the number of training epochs, image resolution, or the number of classes in a dataset, further broadening the applicability of multi-fidelity Bayesian optimization.

Summary updated

BibTeX
@inproceedings{klein2017fast,
  author = {Aaron Klein and Stefan Falkner and Simon Bartels and Philipp Hennig and Frank Hutter},
  title = {{Fast Bayesian Optimization of Machine Learning Hyperparameters on Large Datasets}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2017},
  url = {https://openreview.net/forum?id=nadHy7NFLPS},
}
Figure