Abstract
Deep learning models often rely on contextual shortcuts rather than intrinsic causal features, leading to poor generalization and potential risks in high-stakes domains like medical imaging. This paper proposes a set-theoretic framework to isolate causal features from contextual ones using contrastive gradients. By defining context as features that differentiate between classes, the authors derive a formula to extract "pure" causal features. Evaluation on COVID-19 CT scans demonstrates that these causal features are more spatially dense, lead to higher classification accuracy, and exhibit superior transferability across different network architectures compared to standard saliency methods like Grad-CAM.
Introduction
Deep learning models are notoriously "black boxes." While tools like Grad-CAM help visualize which parts of an image a model is looking at, they don't distinguish why those pixels are important. A model might correctly classify a "husky" not because it sees a dog, but because it sees snow in the background. In medical imaging, such as diagnosing COVID-19 from CT scans, this "contextual shortcutting" is dangerous. It is critical to determine if a model is identifying actual lung pathology (causal) or merely specific imaging equipment or patient positioning (context). Traditional "interventionist" causality—manually changing data to observe effects—is often unethical or impossible in medicine. This research seeks to extract causal features through "observed causality" using only the model's internal gradients.
Methodology
The authors propose a methodology based on set theory to isolate causal features ($C$) from the broader set of features highlighted by Grad-CAM ($G$), which contains both causal and contextual ($B$) elements ($G = C \cup B$).
To find the "pure" causal features ($C \setminus B$), the estimated context is subtracted from the Grad-CAM map. The framework utilizes three types of contrastive maps:
- $C_{P,Q}$: Features answering "Why class P or Q?" (General features).
- $C_{\overline{P},\overline{Q}}$: Features answering "Why neither P nor Q?" (Irrelevant features).
- $C_{P,\overline{P}}$: Features answering "Why not P with 100% confidence?" (Unresolved causal features).
These maps are generated by backpropagating specific loss functions through the network to the last convolutional layer, similar to the Grad-CAM process but with targeted "contrastive" objectives.
Experimental Setup
The study utilizes the COVID-CT-dataset, comprising 349 COVID-positive and 463 COVID-negative CT scans. The methodology was evaluated across several popular architectures, including ResNet-18, 34, 50 and DenseNet-121, 169, to assess the transferability of causal features between different model "brains."
Results and Discussion
The proposed method demonstrates significant improvements in both interpretability and model performance.
Key Findings:
- Causal Density: Causal features are more spatially "dense" than standard Grad-CAM features, representing the core logic of the decision in a smaller area. Image regions identified as causal required 15% fewer bits when encoded via Huffman encoding.
- Accuracy and Robustness: Despite using fewer pixels, causal features led to an average 3% increase in classification accuracy over Grad-CAM when used for masking. In "Deletion" and "Insertion" tests, the proposed method consistently outperformed Grad-CAM and Grad-CAM++, indicating that the identified pixels were more critical to the model's final decision.
- Transferability: Causal features identified by one architecture (e.g., ResNet-18) remain highly effective when used to mask images for a completely different architecture (e.g., DenseNet). In 19 out of 20 experimental categories, causal features outperformed standard explanations in cross-architecture transfers.
- Interpretability Paradox: The features the network finds "causal" are not always the ones humans find most intuitive. A network might rely on a specific texture that a radiologist wouldn't immediately identify, yet that texture proves more robust for classification across different models.
Conclusion
This paper introduces a robust framework for distinguishing causal from contextual features in limited-label scenarios. While the method shows great promise for medical imaging, limitations remain. The computational complexity grows with the number of classes (requiring $2^N$ backpropagations for $N$ classes), making it currently best suited for binary or limited-class scenarios. Furthermore, bridging the gap between machine-identified causal features and human-interpretable medical insights remains a key area for future work.
Summary updated