[Paper Review] Deep Learning Applied to Chest X-Rays: Exploiting and Preventing Shortcuts
This paper investigates how deep learning models on chest X-rays exploit spurious correlations—such as age, sex, or pacemaker presence—as shortcuts instead of learning clinically relevant disease features. It proposes a simple transfer learning method that pretrains on an unbiased source task (e.g., pneumonia) and fine-tunes only the final layer on a biased target task (e.g., congestive heart failure), improving generalization from AUROC 0.66 to 0.84 in skewed data.
While deep learning has shown promise in improving the automated diagnosis of disease based on chest X-rays, deep networks may exhibit undesirable behavior related to shortcuts. This paper studies the case of spurious class skew in which patients with a particular attribute are spuriously more likely to have the outcome of interest. For instance, clinical protocols might lead to a dataset in which patients with pacemakers are disproportionately likely to have congestive heart failure. This skew can lead to models that take shortcuts by heavily relying on the biased attribute. We explore this problem across a number of attributes in the context of diagnosing the cause of acute hypoxemic respiratory failure. Applied to chest X-rays, we show that i) deep nets can accurately identify many patient attributes including sex (AUROC = 0.96) and age (AUROC >= 0.90), ii) they tend to exploit correlations between such attributes and the outcome label when learning to predict a diagnosis, leading to poor performance when such correlations do not hold in the test population (e.g., everyone in the test set is male), and iii) a simple transfer learning approach is surprisingly effective at preventing the shortcut and promoting good generalization performance. On the task of diagnosing congestive heart failure based on a set of chest X-rays skewed towards older patients (age >= 63), the proposed approach improves generalization over standard training from 0.66 (95% CI: 0.54-0.77) to 0.84 (95% CI: 0.73-0.92) AUROC. While simple, the proposed approach has the potential to improve the performance of models across populations by encouraging reliance on clinically relevant manifestations of disease, i.e., those that a clinician would use to make a diagnosis.
Motivation & Objective
- To investigate how deep neural networks exploit spurious correlations in chest X-ray data, such as demographic or imaging protocol biases.
- To understand how such shortcuts degrade model generalization when applied to new patient populations with different attribute distributions.
- To evaluate a transfer learning approach that pretrains on an unbiased source task and fine-tunes only the final layer to reduce reliance on shortcut features.
- To assess whether this method improves performance on biased diagnostic tasks without requiring prior knowledge of the data skew.
Proposed method
- The method uses a two-stage training process: first pretraining a deep CNN (DenseNet) on a source task (e.g., pneumonia) using large, diverse datasets like MIMIC-CXR and CheXpert.
- The model is then fine-tuned only on the final layer (a linear classifier) using the target diagnostic task (e.g., congestive heart failure) with biased training data.
- The approach assumes that features learned from the source task—such as lung opacities or fluid patterns—are transferable and clinically relevant across diagnoses.
- The method is evaluated under controlled data skew conditions, where synthetic attributes (e.g., age, sex) are artificially correlated with the target label.
- Performance is measured using AUROC on held-out test sets with varying degrees of attribute skew, comparing to standard end-to-end training and other fine-tuning baselines.
- The approach is tested across multiple synthetic and real-world skewed data distributions to assess robustness and generalization.
Experimental results
Research questions
- RQ1To what extent can deep neural networks learn demographic attributes (e.g., age, sex, BMI) from a single chest X-ray with high accuracy?
- RQ2How do spurious correlations between patient attributes and disease labels affect model generalization when the attribute distribution shifts in the test set?
- RQ3Can a transfer learning approach that pretrains on an unbiased source task and fine-tunes only the final layer mitigate shortcut learning and improve performance on biased diagnostic tasks?
- RQ4How does the performance of the proposed method vary under different levels of data skew, especially when the source task itself contains some correlation with the biased attribute?
- RQ5Does the method generalize across different types of biases (e.g., age, sex, image preprocessing) and still improve model robustness?
Key findings
- Deep neural networks can identify patient attributes like sex with AUROC = 0.96 and age with AUROC ≥ 0.90 from a single chest X-ray, indicating strong learning of non-disease-related features.
- When training data exhibit spurious correlations (e.g., older patients more likely to have CHF), models rely on these shortcuts, leading to poor performance on test sets where the correlation does not hold (e.g., all male patients).
- In a skewed dataset where patients aged ≥63 were overrepresented in the training set for CHF diagnosis, standard training achieved AUROC 0.66 (95% CI: 0.54–0.77), indicating poor generalization.
- The proposed transfer learning method—pretraining on pneumonia and fine-tuning only the last layer—improved AUROC to 0.84 (95% CI: 0.73–0.92), significantly outperforming standard training.
- The method remains effective even when the source task (e.g., pneumonia) has mild correlations with the biased attribute, suggesting robustness to real-world data imperfections.
- Performance degrades when skew is extreme (e.g., near-perfect correlation), but the method still outperforms standard training, indicating partial mitigation of shortcut learning.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.