Abstract
While computer vision and machine learning have made great progress, their robustness is still challenged by two key issues: data distribution shift and label noise. When domain generalization (DG) encounters noise, noisy labels further exacerbate the emergence of spurious features in deep layers, i.e. spurious feature enlargement, leading to a degradation in the performance of existing algorithms. This paper explores how to make existing methods rework when meeting noise. We find that the latent features inside the model have certain discriminative capabilities, and different latent features focus on different parts of the image. Based on these observations, we propose the Self-Ensemble Post Learning approach (SEPL) to diversify features which can be leveraged. Specifically, SEPL consists of two parts: feature probing training and prediction ensemble inference. It leverages intermediate feature representations within the model architecture, training multiple probing classifiers to fully exploit the capabilities of pre-trained models, while the final predictions are obtained through the integration of outputs from these diverse classification heads. Considering the presence of noisy labels, we employ semi-supervised algorithms to train probing classifiers. Given that different probing classifiers focus on different areas, we integrate their predictions using a crowdsourcing inference approach. Extensive experimental evaluations demonstrate that the proposed method not only enhances the robustness of existing methods but also exhibits significant potential for real-world applications with high flexibility.
Introduction: The Challenge of Noisy Domain Generalization
Deep learning models often fail when they encounter two simultaneous real-world challenges: domain shift (where test data distributions differ from training data) and label noise (where training examples are incorrectly labeled). While standard Domain Generalization (DG) techniques are designed to handle domain shift, they are notoriously sensitive to noise.
The authors identify a phenomenon called spurious feature enlargement: when labels are noisy, deep layers in a model tend to overfit to non-essential parts of an image (like backgrounds) because those features happen to correlate with the errors. This causes standard DG algorithms to fail significantly when the training data is not perfectly clean.
Methodology: Self-Ensemble Post Learning (SEPL)
To address these issues, the authors propose SEPL, a post-processing framework that avoids retraining the entire model backbone. The approach consists of two primary phases:
- Feature Probing Training: The backbone of a pre-trained model is frozen. Multiple simple classification "heads" (probes) are attached to different intermediate layers. To handle noisy labels, these probes are trained using a semi-supervised approach (a simplified version of MixMatch). This allows the model to treat high-confidence samples as labeled and low-confidence ones as unlabeled, effectively filtering out the noise.
- Prediction Ensemble Inference: During testing, the model collects predictions from all probes. Instead of a simple average, they use the Dawid-Skene algorithm—a probabilistic crowdsourcing method. This treats each layer's probe as an "annotator" with its own expertise and error rate, iteratively estimating the most likely true label.
Key Insights and Analysis
- Intermediate Layers as "Hidden Gems": Different layers of a model focus on different parts of an image. While deep layers might get "distracted" by noise, intermediate layers often retain useful, discriminative features that can be rescued.
- Spurious Feature Entanglement: Noise doesn't just reduce accuracy; it changes where the model looks. Grad-CAM analysis reveals that models trained on noisy data shift their attention to non-critical areas compared to models trained on clean data.
- Crowdsourcing the Model: Treating different layers of a single neural network as a "crowd" of experts allows the application of classical statistical methods like Dawid-Skene to modern deep learning architectures.
Experimental Results
SEPL was evaluated on five diverse benchmarks (PACS, VLCS, OfficeHome, HAM10000, and MedMNIST+) with 25% label noise. Key results include:
- PACS: Achieved 83.7% average accuracy, significantly outperforming the standard ERM baseline (76.7%).
- Medical Applications: On the Skin Cancer dataset (HAM10000), SEPL reached 69.5% accuracy, outperforming the next best method by over 2 percentage points. On Organ Classification (MedMNIST+), it improved the baseline by over 6%.
- Noise Stability: Sensitivity analysis demonstrated that SEPL remains relatively stable even as the noise rate increases, maintaining a significant lead over standard averaging techniques.
Conclusion and Future Work
SEPL provides a flexible, robust solution for domain generalization in the presence of label noise. By leveraging the diverse feature representations inherent in intermediate layers and ensembling them via probabilistic methods, it recovers performance that standard algorithms lose to spurious feature enlargement. Future work will explore Transformer-based backbones and more advanced semi-supervised techniques like SoftMatch to further enhance the framework's capabilities.
Summary updated