Inherently Interpretable Multi-Label Classification Using Class-Specific Counterfactuals

Susu Sun, Stefano Woerner, Andreas Maier, Lisa M. Koch, Christian F. BaumgartnerarXiv 2023

TL;DR

Attri-Net is an inherently interpretable deep learning framework designed for multi-label medical image classification. By generating class-specific counterfactual attribution maps and feeding them directly into a simple logistic regression classifier, it achieves state-of-the-art diagnostic accuracy while ensuring that its visual explanations are perfectly faithful to its decision-making process.

What Problem Does This Paper Address?

Deep learning models show immense promise in medical imaging, but their "black-box" nature hinders clinical adoption. If a radiologist doesn't know why an AI flagged a chest X-ray for a disease, they cannot safely trust its prediction.

To solve this, researchers often use post-hoc explanation techniques (like Grad-CAM or SHAP) to highlight important pixels after a model makes a prediction. However, these methods suffer from severe flaws: they can be unfaithful to the model's actual mechanics, noisy, and poorly suited for multi-label classification—scenarios where a single image contains multiple co-occurring pathologies. In multi-label settings, traditional post-hoc methods frequently highlight the exact same anatomical regions regardless of which disease is being queried, failing to provide class-specific clarity.

Methods

The authors introduce Attri-Net, a model that is inherently interpretable because its final prediction is mathematically forced to rely solely on its visual explanation maps.

The framework operates in two main stages:

  1. Counterfactual Attribution Map Generation: Instead of predicting a disease label directly from the input image $x$, Attri-Net uses a generative network $M_c(x)$ to produce a residual "attribution map" for each class $c$. This map represents the exact pixel changes needed to remove all evidence of that specific disease from the image. The resulting image, $\hat{x} = x + M_c(x)$, is a counterfactual "healthy" version of the patient's scan. To handle multiple labels efficiently without cross-contamination, the network utilizes a task-switching architecture driven by Adaptive Instance Normalization (AdaIN) layers.
  2. Logistic Regression Classification: The attribution map is downsampled using 2D average pooling and fed directly into a simple, linear logistic regression layer to output the final probability for that class.

Because the classification layer is strictly linear and takes only the attribution map as an input, the map is guaranteed to be a faithful representation of the model's decision mechanism. The entire pipeline is trained end-to-end using a combination of adversarial loss (to ensure realistic counterfactuals), $L_1$ regularization (for map sparsity), and center loss (to cluster distinct positive and negative disease representations).

The Attri-Net Framework: The generator (a) creates class-specific counterfactual attribution maps, which are then downsampled and classified by a simple logistic regression layer (b).

Datasets

The model was trained and evaluated on three large-scale, publicly available chest X-ray datasets:

  • CheXpert: Focused on classes including Atelectasis, Cardiomegaly, Consolidation, Edema, and Pleural Effusion.
  • ChestX-ray8: Evaluated on the same five pathologies as CheXpert.
  • VinDr-CXR: Evaluated on its five most prevalent pathologies: Aortic enlargement, Cardiomegaly, Pulmonary fibrosis, Pleural thickening, and Pleural effusion.

Key Insights and Ideas

  • The Power of Inherent Interpretability: Post-hoc explanations are just approximations of what a black-box model might be doing. Attri-Net avoids this by making the explanation the actual input to a transparent linear classifier.
  • Task-Switching over Multi-Channel Outputs: The authors discovered that generating multiple disease maps simultaneously via standard multi-channel outputs led to poor attribution quality. Toggling network behavior using AdaIN task-embeddings proved crucial for clean multi-label separation.
  • Uncovering Hidden Correlations: Attri-Net's counterfactual maps occasionally highlighted regions outside standard clinical bounding boxes. Because the generator is optimized to make the image look completely free of a pathology, it may be uncovering secondary anatomical changes correlated with the disease that standard clinical protocols overlook.

Key Results

Attri-Net was compared against five post-hoc explanation methods (Guided Backpropagation, Grad-CAM, LIME, SHAP, Gifsplanation) and one inherently interpretable baseline (CoDA-Nets).

Classification Performance

Attri-Net preserves competitive diagnostic accuracy (measured by AUC) compared to state-of-the-art black-box models (ResNet50), even outperforming them on the VinDr-CXR dataset:

  • VinDr-CXR AUC: Attri-Net (0.9405) vs. ResNet50 (0.8986) vs. CoDA-Nets (0.9322).
  • ChestX-ray8 AUC: Attri-Net (0.7762) vs. ResNet50 (0.7445).

Explanation Quality (Class Sensitivity)

To quantify how well explanations distinguish between different co-occurring diseases, the authors measured "class sensitivity" scores (ranging from 0 to 1, where 1 is optimal). Attri-Net substantially outperformed all baselines across all datasets:

  • ChestX-ray8 Sensitivity: Attri-Net (0.6160) vs. SHAP (0.4122) vs. CoDA-Nets (0.4138).
  • VinDr-CXR Sensitivity: Attri-Net (0.5509) vs. Gifsplanation (0.4396) vs. ResNet50+Grad-CAM (0.1931).

Qualitatively, Attri-Net's maps highly localize to distinct, clinically correct anatomical regions (e.g., isolating the heart boundaries for Cardiomegaly), whereas baseline methods yield highly overlapping or noisy regions across different classes.

Qualitative comparison of explanations on the CheXpert dataset, demonstrating Attri-Net's distinct, class-specific attribution maps compared to baseline methods.
Attri-Net attribution maps compared against ground-truth pathology bounding boxes (red) from ChestX-ray8 and VinDr-CXR.

Limitations and Future Work

While Attri-Net demonstrates excellent localization, the authors note that some attributions appear outside the strict clinical ground-truth bounding boxes. Determining whether these out-of-bounds highlights represent true secondary disease features or optimization artifacts remains an open question.

Additionally, while the framework introduces global interpretability features (such as visualizing prototypical "class centers"), a deeper exploration of global model behavior is left to future work. Finally, the authors emphasize that the ultimate test for Attri-Net will be evaluating it within real-world human-ML clinical trials to measure its actual impact on radiologist workflows.

Summary updated

BibTeX
@misc{sun2023inherently,
  author = {Susu Sun and Stefano Woerner and Andreas Maier and Lisa M. Koch and Christian F. Baumgartner},
  title = {{Inherently Interpretable Multi-Label Classification Using Class-Specific Counterfactuals}},
  year = {2023},
  eprint = {2303.00500},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2303.00500},
}
Figure