Bayesian Hyperparameter Optimization for Ensemble Learning

Julien-Charles Levesque, Christian Gagné, Robert Sabourin

Introduction

Traditional Hyperparameter Optimization (HPO) typically focuses on finding a single configuration that minimizes validation error. While ensembles are often constructed post-hoc from the top-performing models, this approach is inherently sub-optimal. The best individual model is not necessarily the best "team player"; an effective ensemble requires diversity—models that complement each other by making different errors. This paper introduces Ensemble Optimization (EO), a framework that integrates ensemble construction directly into the Bayesian Optimization process.

The Ensemble Optimization (EO) Framework

The core innovation of EO is to make the collective performance of a fixed-size ensemble the direct objective of the optimization. Instead of searching for the global optimum of a single model's error surface, EO iteratively refines the ensemble members to fill performance gaps.

Flowchart of the Ensemble Optimization (EO) algorithm, showing the round-robin update process and Bayesian Optimization loop.

The algorithm operates as follows:

  1. Fixed-Size Round-Robin: The system maintains an ensemble of size $m$. In each iteration $i$, it targets a specific slot $j = i \pmod m$ for replacement.
  2. Ensemble-Aware Objective: The objective function evaluates the error of the entire ensemble when the current slot $h_j$ is replaced by a new model $h_\gamma$.
  3. Bayesian Optimization: A Gaussian Process (GP) models this ensemble-based objective, utilizing the history $H$ of previously trained models to predict which hyperparameters $\gamma$ will most improve the current ensemble $E_i$.
  4. Post-hoc Refinement: Once the budget is exhausted, a greedy selection process can further optimize the final ensemble from the pool of all generated models.

Key Methodological Insights

Smoothness via Squared Margin Loss

Optimizing standard zero-one loss (accuracy) is challenging for Bayesian Optimization because the surface is discrete and "flat." To provide the GP with a more informative signal, the authors employ a squared margin loss. This loss function prioritizes samples that the current ensemble nearly misclassifies, effectively forcing the new model to specialize in the ensemble's "weak spots."

Computational Efficiency

A significant advantage of EO is its efficiency. Because it reuses the validation predictions of all previously trained models, calculating the ensemble-aware objective is computationally inexpensive compared to the high cost of training new models.

Experimental Results

The researchers evaluated EO across SVM search spaces, diverse Scikit-Learn algorithm families, and deep learning tasks (CIFAR-10).

Critical Difference (CD) diagram showing the average rank of different optimization methods. Lower ranks (closer to 1) are better.

As shown in the ranking analysis, EO and its post-hoc refined version (EO-post) significantly outperform standard Bayesian Optimization (BO-best) and traditional post-hoc ensembles (BO-post). In the SVM search space, EO achieved an average rank of 1.89, compared to 3.39 for the best single model. These gains were even more pronounced in diverse search spaces where different algorithm families (e.g., Random Forests vs. SVMs) could be combined to maximize ensemble diversity.

Conclusion

Ensemble Optimization shifts the HPO paradigm from finding a single "winner" to building a collaborative "team." By conditioning the search on the existing ensemble and using a smooth margin-based loss, EO produces models that are specialized for diversity, leading to superior generalization performance with minimal additional overhead.

Summary updated

BibTeX
@inproceedings{levesque2016bayesian,
  author = {Julien-Charles Levesque and Christian Gagné and Robert Sabourin},
  title = {{Bayesian Hyperparameter Optimization for Ensemble Learning}},
  booktitle = {Conference on Uncertainty in Artificial Intelligence},
  year = {2016},
}
Figure