Diversity regularization in deep ensembles

Changjian Shui, Azadeh Sadat Mozafari, Jonathan Marek, Ihsen Hedhli, Christian GagnéarXiv 2018

Abstract

While deep learning ensembles are known to improve accuracy, they often suffer from "under-confidence," where the model is less certain than it should be. This paper introduces a training strategy using Negative Correlation (NC) regularization to enforce diversity among ensemble members, significantly improving probability calibration—making confidence match accuracy—without sacrificing predictive performance.

The Problem: Overconfidence and the Ensemble Paradox

Modern deep neural networks (DNNs) are notoriously overconfident, often predicting classes with near-certainty even when incorrect. While ensembling (averaging multiple models) typically improves accuracy, it introduces a counter-intuitive trend: standard ensembles often become under-confident. As more members are added to a standard ensemble, confidence scores tend to drop below actual accuracy. The goal of this research is to find a "Goldilocks" zone where subjective certainty aligns perfectly with objective accuracy, a state known as being well-calibrated.

Methodology: Negative Correlation Regularization

The authors propose a diversity-regularized training strategy. Instead of training $M$ neural networks independently (the "Pure" approach), they introduce a penalty term to the loss function that encourages models to be different from one another:

$$E_i = L(y, h_i(x)) + \lambda \text{div}(h_i(x); h_{1:M})$$

Where:

  • $L$ is the standard cross-entropy classification error.
  • $\text{div}$ is the Negative Correlation (NC) term, which penalizes models if their deviations from the ensemble average are correlated.
  • $\lambda$ controls the strength of the diversity push.

By forcing each model to "fail" or "succeed" in different ways, the ensemble covers a broader range of the feature space, leading to more reliable uncertainty estimation.

Accuracy and ECE trends over training epochs. (a) shows accuracy gains for ensembles over single models, while (b) demonstrates that NC regularization achieves the lowest Expected Calibration Error (ECE) as training progresses.

Key Insights and Results

The researchers evaluated their approach on CIFAR-10 and CIFAR-100 benchmarks using VGG-11 and modified AlexNet architectures.

Diversity is the Key to Calibration

The study reveals that diversity is not just a tool for boosting accuracy; it is fundamental for reliable uncertainty estimation. By explicitly forcing diversity via NC regularization, the ensemble's average prediction becomes a much more accurate reflection of true probability.

Quantitative Performance

  • CIFAR-100: With an ensemble size of $M=7$, the NC-regularized ensemble achieved an Expected Calibration Error (ECE) of 2.5%, significantly outperforming the pure ensemble (4.3%) and single networks.
  • CIFAR-10: The NC approach achieved the highest accuracy (78.65%) while maintaining the lowest ECE (1.4%).
Reliability diagrams comparing Single (a), Pure (b), and NC-regularized (c) ensembles. The NC approach (c) shows the closest alignment between confidence and accuracy, achieving the lowest ECE of 0.025.

Conclusion and Future Work

NC regularization mitigates the scaling issues found in standard ensembles, where calibration often worsens as more members are added. This method allows for larger, more accurate ensembles that remain well-calibrated. Future work will focus on scaling these benefits to larger datasets like ImageNet and exploring calibration in few-shot learning regimes where data is scarce and uncertainty estimates are critical.

Summary updated

BibTeX
@misc{shui2018diversity,
  author = {Changjian Shui and Azadeh Sadat Mozafari and Jonathan Marek and Ihsen Hedhli and Christian Gagné},
  title = {{Diversity regularization in deep ensembles}},
  year = {2018},
  eprint = {1802.07881},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1802.07881},
}
Figure