Abstract
This work tackles a central machine learning problem of performance degradation on out-of-distribution (OOD) test sets. The problem is particularly salient in medical imaging based diagnosis systems that appear to be accurate but fail when tested in new hospitals or datasets. Recent studies indicate the system might learn shortcut and non-relevant features instead of generalizable features, so-called good features. We hypothesize that adversarial training can eliminate shortcut features whereas saliency guided training can filter out non-relevant features; both are nuisance features accounting for the performance degradation on OOD test sets. With that, we formulate a novel model training scheme for the deep neural network to learn good features for classification and/or detection tasks ensuring a consistent generalization performance on OOD test sets. The experimental results qualitatively and quantitatively demonstrate the superior performance of our method using the benchmark CXR image data sets on classification tasks.
The Challenge: Shortcut Learning in Healthcare AI
Deep Neural Networks (DNNs) are exceptionally proficient at pattern recognition, but they are often "lazy." In medical imaging, a model might achieve high accuracy on a training set not by identifying pathology, but by spotting a "shortcut"—such as a specific hospital’s digital watermark, the type of X-ray machine used, or even the patient’s posture.
When these models are deployed in a new hospital (Out-of-Distribution, or OOD), their performance often plummets because those specific shortcuts are absent. This is a critical safety issue. The authors identify two types of "nuisance features":
- Non-relevant features: Background noise or regions with no diagnostic value (e.g., the corners of the image).
- Shortcut features: Spurious correlations that appear to predict the label but do not represent the actual pathology (e.g., hospital-specific tags).
Methodology: Saliency Guided Adversarial Training (SGA)
The proposed Saliency Guided Adversarial Training (SGA) is a two-pronged approach integrated into the training loop to force the model to ignore nuisances:
- Saliency Masking: The model calculates the gradient of the output with respect to the input image to determine pixel importance. It identifies the $k$ least important features (those with gradients near zero) and masks them with random values. This forces the model to ignore the "boring" background and focus on the foreground.
- Adversarial Perturbation: On this masked image, the system applies an adversarial attack (using FGSM). By adding "worst-case" noise to the most relevant features, the model is forced to learn robust, generalizable representations of the pathology rather than memorizing fragile pixel patterns.
- Consistency Loss: The final training objective uses a standard cross-entropy loss plus a Kullback–Leibler (KL) divergence term. This ensures that the model’s prediction for the original clean image and the masked, perturbed adversarial image are as similar as possible.
Visualizing the "Why"
Using interpretation tools, the authors demonstrated that standard models often focus on the corners of X-rays or the edges of the ribcage. In contrast, SGA-trained models consistently highlight lung opacities—the same regions radiologists use for diagnosis.
Experimental Results
The study focused on COVID-19 detection using Chest X-rays (CXR) across two datasets: an "internal" IID set (SIIM-FISABIO-RSNA) and an "external" OOD set (GitHub-COVID and ChestX-ray14).
Key Findings:
- Superior Generalization: SGA achieved the best average performance with an AUROC of 0.81 across both IID and OOD sets.
- Stability: While Natural Training (NT) saw a significant performance drop of 8.5% when moving from IID to OOD data, the SGA model remained stable.
- Synergy: SGA outperformed standard Adversarial Training (AT) and Saliency Guided (SG) training alone, proving that the combination of the two techniques is synergistic.
Conclusion
SGA provides a robust framework for training medical imaging models that generalize beyond their initial training environment. By explicitly filtering out background noise and penalizing reliance on shortcuts, SGA ensures that AI diagnostic tools look at the lungs, not the labels. Future work will address hyperparameter sensitivity and the computational overhead associated with gradient-based masking.
Summary updated