When are ensembles really effective?

Ryan Theisen, Hyunsuk Kim, Yaoqing Yang, Liam Hodgkinson, Michael W. Mahoney · DOI

Abstract

Ensembling is a cornerstone of machine learning, yet its benefits are surprisingly inconsistent in modern deep learning. This paper introduces a theoretical framework centered on the Disagreement-Error Ratio (DER) to predict when ensembling will yield performance gains. The research demonstrates that ensembling excels when models disagree more than they err, but its effectiveness plummets once models reach the "interpolating regime"—where they achieve zero training error and begin to agree too much on their mistakes. By establishing a linear relationship between disagreement and improvement, this work provides a precise metric for practitioners to evaluate the utility of ensemble methods.

Introduction

Since the 18th century, Condorcet’s Jury Theorem has suggested that aggregating independent opinions leads to superior decision-making. In machine learning, this principle manifests as ensembling—combining multiple models to reduce predictive error. While ensembling is a reliable performance booster for classical methods like Random Forests, its impact on modern deep neural networks (DNNs) is inconsistent. Often, a single large model outperforms an ensemble of smaller ones, and the high computational cost of training multiple deep nets frequently yields diminishing returns.

This paper addresses a fundamental question: Can we theoretically and empirically characterize exactly when ensembling yields significant performance gains? The authors move beyond empirical heuristics to propose a formal metric that predicts ensemble effectiveness across diverse architectures and tasks.

The Theoretical Framework: DER and EIR

The researchers introduce two key metrics to quantify ensemble behavior:

  1. Ensemble Improvement Rate (EIR): A normalized measure of how much an ensemble reduces the error rate compared to the average error of its individual constituent models.
  2. Disagreement-Error Ratio (DER): The ratio of the expected disagreement between two models in the ensemble to the average error rate of those models.

Central to their theory is the Competence Assumption, a condition ruling out "pathologically bad" ensembles where models are more likely to be wrong in the same way than they are to be correct. Under this assumption, the authors prove that ensembling never hurts performance. More importantly, they demonstrate that the EIR is linearly related to the DER. When the DER is high (disagreement exceeds error), ensembling is highly effective; when the DER is low (disagreement is less than error), the benefits of ensembling vanish.

The Interpolation Cliff

A striking insight of this work is the "interpolation cliff." As deep neural networks gain enough capacity to perfectly memorize (interpolate) the training set, their disagreement on the test set drops sharply. This pushes the DER below 1.0, causing the benefits of ensembling to transition sharply from high to low.

Interestingly, Random Forests appear immune to this cliff. Even when individual trees are grown to maximum depth—effectively interpolating the data—the ensemble remains highly effective. The authors attribute this to the CART algorithm used in tree splitting, which prevents models from "over-agreeing" on their mistakes in the same way that gradient-optimized parameterized models like neural networks do.

Empirical Validation

The authors validated their theory across a wide array of benchmarks, including:

  • Image Classification: MNIST and CIFAR-10 using ResNet architectures.
  • Natural Language Processing: Sentiment analysis (IMDB) and the GLUE benchmark using fine-tuned BERT models.
  • Scientific Data: QSAR toxicity and thyroid disease datasets.
  • Robustness: Out-of-distribution (OOD) tests on CIFAR-10.1 and CIFAR-10-C.

Across these settings, empirical tests showed a remarkably strong linear relationship between EIR and DER, with Pearson correlation coefficients $R \ge 0.96$. The theory correctly predicts that ensembling helps significantly more in the "non-interpolating" regime. For instance, in deep ensembles on CIFAR-10, the EIR is maximized exactly at the interpolation threshold and decreases as models become wider or training becomes easier.

Discussion and Limitations

While the paper establishes a clear linear relationship between disagreement and improvement, the specific slope and intercept of that relationship vary by architecture and dataset. The current theory does not yet fully account for why a ResNet on CIFAR-10 might exhibit a different slope than a BERT model on GLUE.

Furthermore, the paper highlights the advantage of Bayesian Neural Networks (BNNs). When sampled via Hamiltonian Monte Carlo, BNNs tend to maintain high disagreement without aggressively interpolating the training data, making them particularly well-suited for ensembling compared to standard MAP-trained networks.

Conclusion

By introducing the Disagreement-Error Ratio, this work provides a rigorous foundation for understanding ensemble effectiveness. It identifies the interpolation regime as a critical boundary where the "magic" of ensembling begins to fade for deep learning models. Future work will focus on refining this theory to incorporate architectural priors and more formally connecting the mechanics of modern optimization to the limits of ensemble-based improvement.

Summary updated

BibTeX
@inproceedings{theisen2023when,
  author = {Ryan Theisen and Hyunsuk Kim and Yaoqing Yang and Liam Hodgkinson and Michael W. Mahoney},
  title = {{When are ensembles really effective?}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=jS4DUGOtBD},
}
Figure