TL;DR
This paper introduces a novel framework to explain deep two-sample statistical tests, which are powerful but opaque tools for comparing groups. By providing both sample-level and feature-level insights, it reveals which individuals and which image regions are driving observed differences, making these tests interpretable and actionable, especially in biomedical imaging.
What Problem Does This Paper Address?
Statistical tests are fundamental for determining if observed differences between groups are significant or due to chance. Deep learning has enabled more powerful "deep two-sample tests" that can detect subtle differences in complex, high-dimensional data like medical images. However, these deep tests are "black boxes" – they tell us that there's a difference, but not why. This lack of interpretability is a major hurdle for their adoption in scientific and medical fields, where understanding the underlying causes of differences is crucial. Existing explainability methods (XAI) are typically designed for classification tasks and rely on class labels, making them unsuitable for label-free statistical testing. This paper bridges this gap by developing an explainability framework specifically for deep two-sample tests.
Methods
The authors propose a two-pronged approach to explain deep two-sample tests:
- Sample-Level Explainability: They introduce an "influence score" for each individual sample. This score quantifies how much removing a specific sample would change the test statistic (i.e., how much it contributes to or suppresses the observed group difference). A high positive score means the sample amplifies the difference, making it a "distinctive" sample. A negative score suggests the sample contributes to similarity between groups.
- Feature-Level Explainability: This method aims to pinpoint where in the input data (e.g., which regions in an image) the group differences are most pronounced. It works by backpropagating the test statistic's gradient through the deep neural network's feature maps. This process identifies spatial regions whose representations are most sensitive to the group discrepancy, effectively creating an "attribution heatmap" that highlights important areas.
Crucially, these methods operate directly on the statistical test's output and do not require class labels, making them suitable for label-free hypothesis testing.
Datasets
The framework is evaluated on three datasets:
- dSprites: A synthetic dataset used for controlled experiments to validate the sample-level explainability by leveraging known ground-truth factors of variation (shapes).
- T1-weighted structural MRI data (ADNI): Used to demonstrate feature-level explanations on real neuroimaging data, focusing on identifying regions associated with Alzheimer's disease.
- Diabetic Retinopathy Fundus Images (EyePACS): Used to showcase both sample-level and feature-level explainability on medical images, linking findings to disease severity.
Key Insights and Ideas
- Statistical Significance is Explainable: The core idea is that the statistical significance of a group difference itself can be decomposed into contributions from individual samples and specific features.
- Beyond Classification: This work extends XAI from explaining predictions of classifiers to explaining the outcomes of statistical inference tests, a critical distinction for scientific applications.
- Actionable Insights: The framework doesn't just provide explanations; it aims to make them actionable for tasks like patient stratification, trial enrichment, and biomarker discovery.
- Label-Free Power: The ability to perform these explanations without relying on class labels is a significant advantage for many real-world scenarios, especially in unsupervised or semi-supervised settings.
Key Results
- dSprites: Removing high-influence samples led to an increase in the p-value, confirming they amplify group differences. Ellipse-shaped samples had positive influence scores, while square samples (which promoted similarity) had negative scores.
- Diabetic Retinopathy: Excluding high-influence samples also increased the p-value. Influence scores generally increased with disease severity, indicating that more severe cases contribute more to group differences. The method also identified potential outliers and borderline cases.
- ADNI (MRI): Feature-level explanations consistently highlighted the hippocampus and medial temporal lobe regions, aligning with known areas affected by Alzheimer's disease-related atrophy. Different aggregation strategies for gradients yielded consistent results.
Limitations and Future Work
- Computational Cost: While the paper mentions efficiency, calculating influence scores by removing samples can be computationally intensive for very large datasets.
- Choice of Representation: The quality of explanations is dependent on the quality of the learned representations from the deep neural network.
- Future Work: The authors suggest applying the framework to other domains and exploring more sophisticated methods for feature-level explanations, potentially incorporating causal reasoning. The code is provided, encouraging further research and application.
Summary updated