Abstract
There has long been plenty of theoretical and empirical evidence supporting the success of ensemble learning. Deep ensembles in particular take advantage of training randomness and expressivity of individual neural networks to gain prediction diversity, ultimately leading to better generalization, robustness and uncertainty estimation. In respect of generalization, it is found that pursuing wider local minima result in models being more robust to shifts between training and testing sets. A natural research question arises out of these two approaches as to whether a boost in generalization ability can be achieved if ensemble learning and loss sharpness minimization are integrated. Our work investigates this connection and proposes DASH - a learning algorithm that promotes diversity and flatness within deep ensembles. More concretely, DASH encourages base learners to move divergently towards low-loss regions of minimal sharpness. We provide a theoretical backbone for our method along with extensive empirical evidence demonstrating an improvement in ensemble generalizability.
Introduction
Ensemble learning is a cornerstone of modern machine learning, predicated on the principle that a committee of diverse models outperforms any single expert. Parallel to this, Sharpness-aware Minimization (SAM) has emerged as a powerful technique for improving single-model generalization by seeking "flat" minima in the loss landscape—regions where small parameter perturbations do not lead to significant spikes in error.
However, a fundamental challenge arises when integrating these two paradigms. Naive application of sharpness minimization to an ensemble often causes individual base learners to converge toward the same local minima. This "collapsing" behavior destroys the functional diversity essential for effective ensembling. This paper introduces DASH (Diversity-aware Agnostic Ensemble of Sharpness Minimizers), an algorithm designed to simultaneously pursue flatness and diversity.
Methodology
DASH is built upon two primary pillars: a new theoretical bound for ensemble generalization and an agnostic diversity constraint.
Theoretical Foundation
The researchers established (Theorem 1) that ensemble generalization error is bounded by the sharpness of both individual learners and the ensemble aggregate. Empirical analysis revealed that ensemble performance is significantly more sensitive to the flatness of individual members than to the flatness of the combined output. This insight informs the weighting of the optimization objective.
The Agnostic Diversity Constraint
To prevent models from clustering in the same flat region, DASH introduces a diversity-aware term during the weight perturbation phase. The algorithm minimizes the Kullback-Leibler (KL) divergence between the "non-targeted" logits (predictions for incorrect classes) of the base learners.
By focusing on non-targeted logits, DASH encourages models to "disagree" on secondary predictions without interfering with their primary task of predicting ground-truth labels. This approach is "agnostic" as it functions regardless of whether the ensemble members share the same architecture, making it suitable for heterogeneous ensembles.
Experiments and Results
The authors evaluated DASH across standard image classification benchmarks, including CIFAR-10, CIFAR-100, and Tiny-ImageNet, using both homogeneous (e.g., multiple ResNet18s) and heterogeneous (mixing ResNet, MobileNet, and EfficientNet) architectures.
Performance Gains
DASH consistently outperformed state-of-the-art methods such as Deep Ensembles, Snapshot Ensembles, and standard SAM-based ensembles:
- Accuracy: On CIFAR-100, DASH improved accuracy by up to 6.8% over standard Deep Ensembles and 2-3% over SAM-based ensembles.
- Calibration: DASH achieved a 26% relative improvement in the Calibrated-Brier score on CIFAR-10 compared to Deep Ensembles, indicating superior uncertainty estimation.
- Robustness: The method showed enhanced resilience against PGD (Projected Gradient Descent) attacks compared to standard SAM.
Hyperparameter Sensitivity
A critical component of DASH is the trade-off parameter $\gamma$, which balances individual versus ensemble sharpness. As shown in the experimental results, prioritizing the sharpness of individual learners ($\gamma \approx 0.1$) leads to the highest accuracy and the lowest Expected Calibration Error (ECE).
Discussion and Conclusion
DASH successfully addresses the antagonism between seeking flatness and maintaining diversity in deep ensembles. By forcing base learners to move divergently toward low-loss regions of minimal sharpness, the algorithm achieves significant gains in generalization and robustness.
While DASH introduces an additional gradient computation per step—increasing training time—the resulting improvements in model reliability and accuracy provide a compelling case for its use in safety-critical applications. Future research may focus on reducing the computational overhead or extending the DASH framework to large-scale natural language processing tasks.
Summary updated