Put CASH on Bandits: A Max K-Armed Problem for Automated Machine Learning

Amir Rezaei Balef, Claire Vernade, Katharina Eggensperger · OpenReview

Abstract

The Combined Algorithm Selection and Hyperparameter optimization (CASH) is a challenging resource allocation problem in the field of AutoML. We propose MaxUCB, a max $k$-armed bandit method to trade off exploring different model classes and conducting hyperparameter optimization. MaxUCB is specifically designed for the light-tailed and bounded reward distributions arising in this setting and, thus, provides an efficient alternative compared to classic max $k$-armed bandit methods assuming heavy-tailed reward distributions. We theoretically and empirically evaluate our method on four standard AutoML benchmarks, demonstrating superior performance over prior approaches.

Introduction

Building an effective machine learning pipeline requires solving the Combined Algorithm Selection and Hyperparameter optimization (CASH) problem. This involves simultaneously selecting the best model class (e.g., Gradient Boosting, Neural Networks) and the optimal hyperparameters for that class. Traditional methods often treat the joint search space as a single entity, which scales poorly as the number of algorithms increases.

A more efficient strategy employs a two-level optimization: an upper-level Multi-Armed Bandit (MAB) to select the model class and a lower-level optimizer for hyperparameter tuning. However, standard MAB algorithms focus on maximizing the average reward. In AutoML, the objective is to find the single best configuration—the maximum reward. This paper introduces MaxUCB, a bandit algorithm specifically designed for the Max $k$-Armed Bandit (MKB) problem in the context of AutoML.

The MaxUCB Framework

MaxUCB addresses the CASH problem by treating each model class as an "arm" in a bandit setting. Unlike traditional UCB algorithms that use a square-root exploration bonus to estimate the mean, MaxUCB utilizes a squared logarithmic bonus: $(\frac{\alpha \log(t)}{n})^2$. This aggressive exploration strategy is justified by the unique properties of HPO reward distributions.

The MaxUCB framework for CASH, showing the interaction between the upper-level bandit and lower-level HPO.

The algorithm operates in two levels:

  1. Upper Level: MaxUCB selects a model class (arm) based on its potential to yield a new maximum reward.
  2. Lower Level: One iteration of Hyperparameter Optimization (HPO) is performed on the selected model class, and the resulting performance (e.g., validation accuracy) is returned as a reward.

Empirical Insights: Mean vs. Max

A core contribution of this work is the empirical demonstration that the "best" model class is often not the one with the highest average performance. In CASH, we prefer "swingy" models that may fail often but have the potential for high peak performance over models that are consistently mediocre.

Left: Maximum observed accuracy over HPO iterations. Right: Probability density functions of accuracy for two model classes, showing that the model with the higher mean (CatBoost) does not necessarily have the higher maximum (LightGBM).

Furthermore, the authors show that HPO rewards are typically "light-tailed" and bounded (e.g., accuracy is capped at 1.0). This contradicts the heavy-tailed assumptions (like Pareto distributions) common in existing extreme bandit literature. Because HPO rewards are bounded, the maximum value concentrates much faster than the mean, allowing MaxUCB to identify optimal model classes with fewer iterations.

Experimental Evaluation

MaxUCB was evaluated across several benchmarks, including YaHPOGym, TabRepo, and NAS-Bench-201.

  • Performance: MaxUCB consistently achieved lower average ranks compared to state-of-the-art baselines like Rising Bandits and Quantile Bayes UCB. It identifies optimal model classes significantly faster than joint Bayesian Optimization.
  • Robustness: The algorithm's performance is stable across a range of values for the exploration parameter $\alpha$, with $\alpha=0.5$ serving as a robust default.
  • Generalization: The method successfully extended to Few-Shot Neural Architecture Search, outperforming specialized NAS baselines.

Conclusion

MaxUCB provides a theoretically grounded and empirically validated solution to the CASH problem. By recognizing the light-tailed nature of HPO rewards and focusing on maximizing peak performance rather than the mean, MaxUCB offers a significant efficiency gain for automated machine learning pipelines. Future work will explore non-stationary reward models to account for HPO learning curves and incorporate wall-clock time costs into the bandit's decision-making process.

Summary updated

BibTeX
@inproceedings{balef2025put,
  author = {Amir Rezaei Balef and Claire Vernade and Katharina Eggensperger},
  title = {{Put CASH on Bandits: A Max K-Armed Problem for Automated Machine Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=Yw9TdHy18N},
}
Figure