TL;DR
Medical imaging models often inadvertently encode confounding metadata (like scanner models), raising concerns about "shortcut learning." This paper introduces Weight Space Correlation (WSC) analysis, a novel method that quantifies whether a model actually utilizes this metadata for its final predictions by measuring the alignment of its classification heads. Validated on fetal ultrasound tasks, WSC successfully distinguishes between harmlessly encoded background information and active shortcut exploitation.
What Problem Does This Paper Address?
Deep learning models in medical imaging are notoriously good at picking up on subtle textures and patterns that escape human eyes. Unfortunately, this superpower makes them highly susceptible to shortcut learning—relying on non-causal, confounding factors (such as the specific scanner manufacturer or hospital protocols) to make clinical predictions.
While existing techniques like "linear probing" can detect if confounding metadata is present within a model's latent embeddings, they fail to answer a crucial question: Does the model actually use this information to make its final decision? Proving that information is encoded is not the same as proving it is exploited. This paper bridges this gap by providing a direct, quantitative measure of feature utilization.
Methods
The authors propose Weight Space Correlation (WSC) analysis, an interpretable framework that evaluates shortcut reliance in three distinct steps:
- Extract Classification Heads: The linear decision boundaries of both the primary clinical task and auxiliary metadata tasks are represented by their respective classification weight vectors.
- Project onto the Data Manifold: To ensure comparisons are meaningful, these weight vectors are projected onto a shared, lower-dimensional coordinate system derived via Principal Component Analysis (PCA) on the training embeddings (retaining 99% of the variance with a minimum floor of 50 components). This filters out uninformative orthogonal dimensions where no data variance exists.
- Quantify Alignment: The cosine similarity between the projected weight vectors of the primary task and the metadata tasks is calculated.
If the weight vectors are highly correlated, it implies the model is attending to the same latent features for both the clinical task and the metadata, signaling shortcut reliance. If they are orthogonal (close to zero correlation), the model is ignoring the metadata during its final inference.
Datasets
The methodology was evaluated using two private clinical ultrasound datasets:
- The Fetal Dataset: Comprising 2D ultrasound images of four standard fetal planes (head, abdomen, femur, thorax) used for anatomical plane classification.
- The Cervix Dataset: Consisting of transvaginal cervical ultrasound images used for predicting Spontaneous Preterm Birth (sPTB) before 37 weeks of gestation.
To rigorously validate WSC, the authors engineered two variations of the Fetal dataset: a Balanced Dataset (acting as a control with no correlation between plane and scanner) and an Induced Bias Dataset (where specific anatomical planes were heavily confounded with specific scanner models to force shortcut learning).
Key Insights and Ideas
- Presence $\neq$ Utilization: Standard models fine-tuned on metadata can predict scanner types with high accuracy, confirming that metadata is deeply embedded in image textures. However, WSC analysis reveals that the primary classifier's decision boundaries normally remain orthogonal to these metadata directions, meaning the model safely ignores the confounder.
- Establishing a Null Distribution: The authors characterized what "no correlation" looks like by comparing completely unrelated tasks, showing that unconfounded decision boundaries naturally form a tight, zero-centered distribution.
- Catching Shortcuts in Action: When bias was explicitly introduced into the dataset, WSC successfully flagged a significant spike in correlation between the clinical task and the scanner metadata, proving its efficacy as a diagnostic tool for model trustworthiness.
Key Results
- Probing Performance: Linear probes achieved an AUROC of up to 91.4% for scanner prediction on standard embeddings, which jumped to 99.7% in a multi-task learning setup, confirming strong metadata encoding.
- Real-World Application: The authors probed SA-SonoNet, a state-of-the-art model for preterm birth prediction. WSC analysis confirmed that the model's decision-making process was highly correlated with clinically relevant factors like cervical length and pixel spacing, while remaining safely decoupled from irrelevant acquisition factors like the scanner model.
Limitations and Future Work
The primary limitation of WSC analysis is its assumption of a linear relationship between the embedding space and the final class predictions. While this mirrors standard deep learning architectures (where a frozen backbone feeds into a linear classification head), it might not fully capture shortcut dynamics if complex, non-linear classification heads are utilized.
Additionally, real-world shortcuts can be multifaceted and non-linear. The authors note that future iterations of this work will focus on extending WSC to investigate higher-order interactions across multiple metadata dimensions simultaneously.
Summary updated