Towards Visually Explaining Statistical Tests with Applications in Biomedical Imaging
Masoumeh Javanbakhat, Piotr Komorowski, Dilyara Bareeva, Wei-Chang Lai, Wojciech Samek, Christoph Lippert
TL;DR
The work tackles the interpretability gap in deep two-sample tests by introducing an explainable framework that provides sample-level influence and feature-level gradient-based attributions for population differences in biomedical imaging. It formalizes explanations for statistical decisions, defines a sample-level influence score, and derives a gradient-based attribution method that yields spatial maps reflecting region- and sample-specific contributions to significance. The authors validate the approach on synthetic data and real imaging datasets (dSprites, ADNI MRI, EyePACS diabetic retinopathy), showing biologically meaningful and clinically plausible explanations that align with known disease patterns and biomarkers. This framework enables actionable, label-free population analysis in medical imaging, supporting tasks such as patient stratification, trial enrichment, quality control, and biomarker discovery, with code and supplementary materials provided.
Abstract
Deep neural two-sample tests have recently shown strong power for detecting distributional differences between groups, yet their black-box nature limits interpretability and practical adoption in biomedical analysis. Moreover, most existing post-hoc explainability methods rely on class labels, making them unsuitable for label-free statistical testing settings. We propose an explainable deep statistical testing framework that augments deep two-sample tests with sample-level and feature-level explanations, revealing which individual samples and which input features drive statistically significant group differences. Our method highlights which image regions and which individual samples contribute most to the detected group difference, providing spatial and instance-wise insight into the test's decision. Applied to biomedical imaging data, the proposed framework identifies influential samples and highlights anatomically meaningful regions associated with disease-related variation. This work bridges statistical inference and explainable AI, enabling interpretable, label-free population analysis in medical imaging.
