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

Amir Rezaei Balef, Claire Vernade, Katharina Eggensperger

TL;DR

MaxUCB is a novel multi-armed bandit algorithm designed specifically to solve the Combined Algorithm Selection and Hyperparameter optimization (CASH) problem in AutoML. By recognizing that hyperparameter optimization rewards are bounded and short-tailed rather than heavy-tailed, MaxUCB efficiently balances exploring different model classes and fine-tuning their hyperparameters to find the single best-performing model configuration.

What Problem Does This Paper Address?

When building a machine learning pipeline, engineers face a dual challenge: choosing the right model class (e.g., XGBoost, CatBoost, or a Neural Network) and finding its optimal hyperparameter configuration. This joint search space is known as the CASH (Combined Algorithm Selection and Hyperparameter optimization) problem.

Searching this massive, hierarchical space all at once is notoriously inefficient. A popular alternative is "two-level CASH," which uses a Multi-Armed Bandit (MAB) framework. Here, each "arm" represents a model class, and pulling an arm means running one iteration of Hyperparameter Optimization (HPO) on that model.

However, standard bandit algorithms are designed to maximize the average reward over time. In AutoML, we don't care about the average performance of a model class across random hyperparameters; we only care about the maximum performance—the single best configuration found. While Max $K$-Armed Bandit (MKB) algorithms exist for this "extreme" setting, they traditionally assume heavy-tailed reward distributions (like Pareto distributions) with infinite upper bounds. This paper addresses the mismatch between these theoretical assumptions and the actual, bounded reality of machine learning performance metrics.

Figure 1: (Left) MaxUCB (blue line) outperforms combined search (black line) to identify the best- performing model class (brown line). (Middle) The irregular distribution of the empirical performance of model classes is left-skewed, and a higher mean may not correspond to a higher maximum. (Right) MaxUCB selects for which model to run one iteration of HPO during two-level optimization.

Methods

The authors introduce MaxUCB, an extreme bandit algorithm tailored to the statistical properties of HPO tasks.

Unlike standard Upper Confidence Bound (UCB) algorithms that use a square-root exploration bonus (e.g., $\sqrt{\frac{\log(t)}{n}}$), MaxUCB employs a unique squared exploration bonus: $$\text{Bonus} = \left(\frac{\alpha \log(t)}{n}\right)^2$$

The mathematical justification stems from how maximum values concentrate in bounded distributions. Because the rewards cannot exceed a certain threshold (like 100% accuracy), the probability of extreme "bad events" (underestimating the best arm or overestimating a sub-optimal arm) decays much faster than it would in heavy-tailed scenarios. MaxUCB exploits this faster concentration to aggressively exploit promising model classes while maintaining a controllable exploration factor ($\alpha$).

Datasets

The authors evaluated MaxUCB across four diverse, standard AutoML benchmarks for tabular data:

  • YaHPOGym: A surrogate benchmark covering 6 ML models across 103 datasets, using a regression model to predict HPO performance.
  • TabRepo: A repository containing pre-computed random search trajectories for 7 ML models across 200 datasets.
  • TabRepoRaw: The raw search space from TabRepo, but optimized actively using SMAC (Bayesian Optimization) across 30 datasets.
  • Reshuffling: A benchmark utilizing HEBO (Heteroscedastic and Evolutionary Bayesian Optimization) for 4 ML models across 10 datasets.

No new datasets were introduced, but the benchmarks represent a rigorous cross-section of modern AutoML challenges.

Key Insights and Ideas

  • HPO Rewards are Bounded and Left-Skewed: Through empirical analysis, the authors show that HPO reward distributions are short-tailed and left-skewed. Because machine learning loss landscapes often have flat regions near the optimum, many hyperparameter configurations perform similarly well. Extreme performance values are not rare outliers.
  • Heavy-Tailed Assumptions Hurt Performance: Traditional extreme bandit algorithms assume that finding a maximum value is like finding a needle in a heavy-tailed haystack. Because they expect rare, massive outliers, they over-explore. MaxUCB realizes that high rewards are tightly packed near the upper bound, allowing it to converge on the best model class much faster.
Figure 3: (Left, Middle) L and U for the average survival functions in Figure 2. (Right) We high- light the difference to right-skewed Log-normal and Pareto distributions.
  • Higher Mean $\neq$ Higher Max: A model class might have a lower average performance across its hyperparameter space but possess a significantly higher peak potential than its competitors. MaxUCB successfully identifies these high-potential models where average-reward bandits fail.

Key Results

MaxUCB consistently achieved superior anytime and final performance compared to both joint search methods and state-of-the-art bandit baselines:

  • Outperforming Combined Search: MaxUCB significantly outperformed standard flat Bayesian Optimization (SMAC) and random search across the benchmarks, particularly when the iteration budget was tightly constrained ($T = 50$).
  • Defeating Bandit Baselines: It surpassed other AutoML-focused bandit methods like Quantile Bayes UCB, ER-UCB-S, and Rising Bandits.
  • Robustness: Statistical sign tests confirmed that MaxUCB's performance gains were highly significant across almost all tested configurations, proving to be a robust choice for practical AutoML systems.

Limitations and Future Work

  • Assumption of Stationarity: MaxUCB assumes that the underlying reward distribution of an arm does not change over time. In practice, as an HPO solver focuses its search, the rewards might shift (non-stationarity). The authors showed that adding an initial "burn-in" phase helps mitigate this, but a native non-stationary modeling approach is left for future work.
  • Uniform Resource Cost: The algorithm treats every "pull" as equal. However, training a Deep Neural Network takes significantly more time and compute than training a Decision Tree. Incorporating cost-aware optimization into the bandit strategy is a crucial next step.
  • Information Sharing: Currently, MaxUCB treats each model class as completely independent. Exploiting structural similarities between algorithms to share hyperparameter insights across arms could further accelerate the search.

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