Abstract
Deep Ensembles are widely considered the state-of-the-art for Out-of-Distribution (OOD) detection in deep learning. The prevailing theory suggests that their success stems from "diversity"—the disagreement between individual ensemble members when encountering unfamiliar data. This paper challenges that intuition, demonstrating through large-scale experiments that diversity-based metrics like Mutual Information (MI) are often poor indicators of OOD samples. We show that the benefits of ensembling for OOD detection are better explained by the reduction of individual model errors through simple averaging, rather than the exploitation of model disagreement.
Introduction
In safety-critical applications such as autonomous driving or medical imaging, it is vital for a machine learning model to identify when an input falls outside its training distribution. This task, known as Out-of-Distribution (OOD) detection, is currently best handled by Deep Ensembles—collections of models trained with different initializations.
The research community has long hypothesized that ensemble members will produce similar predictions for in-distribution (ID) data but diverge significantly on OOD data. Consequently, Mutual Information (MI), which quantifies this disagreement, has become a popular metric for OOD detection. However, most evidence for this "diversity intuition" comes from toy datasets or small-scale models. This study investigates whether these findings hold true for real-world, large-scale benchmarks.
Methodology
To rigorously evaluate the role of diversity, the authors trained an ensemble of five ResNet-50 models on the ImageNet-200 dataset. They compared several uncertainty and OOD detection metrics:
- Single Model Entropy ($\mathcal{H}$): The baseline uncertainty from a single ensemble member.
- Ensemble Entropy (Ens. $\mathcal{H}$): The total uncertainty of the averaged predictive distribution.
- Average Entropy (Av. $\mathcal{H}$): The mean of the individual entropies of each member.
- Mutual Information (MI): Defined as Ens. $\mathcal{H} - \text{Av. } \mathcal{H}$, representing the disagreement between members.
- Energy Score: A non-probabilistic OOD score that doesn't rely on probability normalization.
The evaluation spanned a diverse set of OOD benchmarks, including semantically similar datasets (Near-ImageNet-200), medical imagery (Colorectal, Colonoscopy), and synthetic noise.
The Failure of the Diversity Intuition
The experimental results provide a stark contrast to the common belief that diversity is a reliable OOD signal. As shown in Figure 1, MI consistently underperforms compared to simpler metrics like single-model entropy or ensemble entropy across various OOD datasets. In some instances, such as the iNaturalist benchmark, using MI as a detection signal resulted in a 30-40% increase in the False Positive Rate (FPR@95) compared to the single-model baseline.
The reason for this failure lies in the relationship between individual model uncertainty and ensemble disagreement. For OOD data, individual models often exhibit very high entropy (Av. $\mathcal{H}$). When models are highly uncertain, their predictive distributions tend toward uniform, making it mathematically difficult for them to "disagree" in a way that produces high MI. As a result, MI often decreases for the most difficult OOD samples, effectively masking the very signal it was intended to detect.
Ensembles as Diverse Binary Classifiers
If diversity is not the primary driver, why do Deep Ensembles still outperform single models? The authors propose that OOD detection should be viewed as a binary classification task. Each member of the ensemble acts as a "binary classifier" for the ID vs. OOD boundary. Because these models are trained independently, they develop different "blind spots"—specific OOD regions where they might be overconfident.
By averaging the OOD scores (such as the Energy score) across the ensemble, these individual errors are mitigated. The success of the ensemble comes from the same principle that improves standard classification accuracy: the cancellation of independent errors through averaging. Indeed, the study found that "Average Energy"—simply the mean of the energy scores of all ensemble members—consistently achieved the best OOD detection performance, surpassing even the standard ensemble entropy.
Conclusion
This work demonstrates that the "diversity intuition" for OOD detection does not scale to large-scale CNNs. Mutual Information, while theoretically appealing, fails in practice because high individual uncertainty suppresses disagreement. Instead, the power of Deep Ensembles in OOD detection lies in their ability to act as an ensemble of diverse binary classifiers, where simple averaging of strong OOD scores provides the most robust results. Future work should explore if these conclusions extend to other architectures like Vision Transformers and whether new training objectives can be designed to make diversity a more useful signal at scale.
Summary updated