Abstract
Bayesian optimization (BO) is a powerful tool for optimizing expensive black-box functions, but real-world applications often face hidden constraints, such as memory limits in deep learning. We present constrained Max-value Entropy Search (cMES), an information-theoretic acquisition function designed for these scenarios. cMES handles both continuous and binary constraints efficiently. Crucially, we identify and correct a common sampling error in previous Entropy Search methods, showing that joint Thompson sampling is necessary for accurate optimization. Our results across diverse hyperparameter optimization (HPO) tasks demonstrate that cMES is faster, simpler, and more effective than existing constrained BO methods.
Introduction: The Challenge of Constraints
In hyperparameter optimization, we often seek to maximize a model's performance. However, certain configurations might lead to catastrophic failures, such as out-of-memory (OOM) errors. These constraints are often "black boxes"—we only discover them by evaluating a point. Standard BO methods like Expected Improvement (EI) are not natively built for these boundaries. While Predictive Entropy Search (PESC) can handle them, it is computationally heavy and complex. We propose cMES as a simpler, more efficient alternative.
Methodology: cMES and Joint Sampling
cMES operates on the principle of maximizing information about the maximum feasible value ($y_*$). Unlike previous methods that might only consider continuous feedback, cMES incorporates a mathematical framework for binary feedback (success/failure), which is vital for OOM-type constraints.
A key technical contribution of this work is the move from "mean-field" independent sampling to joint Thompson sampling. Previous implementations of Max-value Entropy Search assumed that points in the search space were independent when estimating the distribution of $y_*$. We found that this "mean-field" approximation leads to significant bias, where the estimated maximum diverges as the search space discretization increases.
By using joint sampling, cMES maintains a mathematically rigorous estimate of the feasible maximum, leading to much more reliable optimization trajectories.
Experimental Evaluation
We evaluated cMES on a variety of benchmarks, including a synthetic 2D problem with disconnected feasible regions and ten real-world HPO tasks (e.g., XGBoost, Random Forests, MLPs). These tasks included constraints on model size and class-specific error rates.
Key Results
- Performance Ranking: cMES achieved the best average rank across 10 diverse HPO tasks, outperforming constrained EI (cEI) and random search.
- Early Efficiency: The method is particularly adept at finding high-performing feasible configurations in the early stages of the search.
- Robustness to Binary Feedback: In scenarios where the objective is unobserved upon constraint violation (e.g., a crash), cMES significantly outperformed standard industry baselines.
Conclusion
cMES provides a robust, efficient, and easy-to-implement solution for constrained Bayesian optimization. By fixing the fundamental sampling issues of previous entropy-based methods and extending the framework to binary constraints, it offers a practical tool for tuning complex models under real-world resource limitations. Future work will explore scaling joint sampling to even larger search spaces and handling decoupled evaluations where constraints can be checked independently of the objective.
Summary updated