Abstract
Deep learning models often fail when encountering "natural corruptions" such as weather effects or sensor noise. This paper explores the application of "design diversity"—a principle from safety-critical systems engineering—to improve the resilience of deep learning ensembles. By evaluating different forms of diversity, the authors find that attribution diversity (the internal logic used for decisions) is a more effective predictor of ensemble robustness than traditional prediction diversity. The study also highlights that architectural choices, particularly the use of Vision Transformers, play a more significant role in resilience than model scale.
Introduction: The Brittleness of Deep Learning
While deep learning models achieve high accuracy on standard benchmarks, they remain notoriously brittle when faced with out-of-distribution data. Natural corruptions—ranging from water drops on a camera lens to lighting shifts—can cause catastrophic failures in models that otherwise perform perfectly in controlled environments. Ensembling multiple models is a common strategy to mitigate these failures, yet the optimal way to construct these "teams" for maximum resilience remains an open question.
Traditionally, researchers have prioritized prediction diversity, ensuring that models fail on different inputs. However, this often introduces an "accuracy-diversity trade-off," where forcing models to be different degrades their individual performance. This paper looks toward safety-critical systems (e.g., avionics) to apply design diversity, ensuring models arrive at conclusions through distinct internal logic or features.
Measuring and Enforcing Diversity
The researchers categorize and test three primary methods for measuring diversity within ensembles:
- Prediction (Output) Diversity: This traditional metric focuses on differences in final labels or error patterns across models.
- Representation (Activation) Diversity: This involves comparing the internal "thought processes" or activations of different layers using techniques like Centered Kernel Alignment (CKA).
- Input Feature Attribution Diversity: This novel approach measures whether models utilize the same pixels to reach a decision. By calculating the variance of attribution scores (via Saliency maps) across the ensemble, the authors hypothesize that models looking at different features (e.g., one model focusing on a car's wheels, another on its windows) are less likely to fail simultaneously if a specific part of the image is corrupted.
Experimental Setup
The study utilized standard benchmarks like ImageNet and ImageNetv2 for in-distribution performance, alongside ImageNet-C to test robustness against 15 types of natural corruptions. The analysis specifically focused on four corruption types—Plasma, Checkerboard, Waterdrop, and Lines—at varying levels of severity. Ensembles were created using independent training, Neural Architecture Search (NAS), and Negative Correlation Learning (NCL).
Key Insights: Architecture and Attribution
The research yielded several critical findings regarding the nature of model robustness:
- Architecture Over Scale: The specific architecture (e.g., ResNet vs. Vision Transformer) is a far more significant factor for resilience than the number of parameters or baseline accuracy. Small Transformers frequently outperformed much larger CNNs on corrupted data.
- The "Why" vs. The "What": Attribution-based diversity showed a healthier relationship with ensemble accuracy than prediction-based diversity. While forcing different predictions often hurts accuracy, encouraging models to focus on different features was positively correlated with improved ensemble performance.
- The Transformer Advantage: Vision Transformers (ViTs) appear naturally more resilient because they process images globally. In contrast, CNNs focus on local textures, which are easily disrupted by noise or structural corruptions like lines.
- NAS Limitations: Ensembles generated via Neural Architecture Search from a single "super-network" lacked sufficient diversity. Sharing a common lineage led to similar failure modes, suggesting that true design diversity requires fundamental differences in training or structure.
Results and Future Directions
The study found that a "balanced loss function"—weighting both individual and ensemble accuracy—produced the most resilient ensembles, outperforming standard diversity enforcement in most corruption scenarios. Furthermore, ensembles composed of heterogeneous architectures (e.g., mixing CNNs and Transformers) naturally produced higher diversity across all metrics compared to ensembles of the same architecture type.
While attribution diversity is a powerful metric for evaluation, the authors noted that using it as a direct penalty during training currently faces stability issues. Future work will focus on refining these loss functions, exploring knowledge distillation to transfer ensemble resilience into single models, and extending these concepts to complex tasks like object detection in autonomous driving.
Summary updated