Abstract
Traditional Explainable AI (XAI) for computer vision often relies on instance-specific pixel heatmaps, which fail to provide global insights into model behavior. We present DEPICT (Diffusion-Enabled Permutation Importance), a method that brings the rigor of tabular permutation importance to image classification. By leveraging text-conditioned diffusion models to re-render datasets with permuted high-level concepts, DEPICT generates a global ranking of feature importance. Our results demonstrate that DEPICT significantly outperforms existing methods like Grad-CAM and LIME in identifying ground-truth concept reliance and auditing models for demographic bias.
Introduction
In tabular data analysis, "permutation importance" is a gold-standard technique for model interpretability. By shuffling a specific feature (e.g., "Age") and observing the resulting drop in accuracy, researchers can quantify that feature's global importance. However, this approach has historically been inapplicable to computer vision. Shuffling raw pixels destroys image structure, and current XAI methods like Grad-CAM or LIME are primarily local and pixel-based. They show where a model looks in a single image but struggle to explain what high-level concepts drive decisions across a whole dataset.
The DEPICT Framework
DEPICT bridges this gap by using text-conditioned diffusion models as a rendering engine for concept-level permutations. Instead of manipulating pixels directly, DEPICT manipulates the text descriptions (concepts) associated with the data.
The process involves four key steps:
- Concept Permutation: High-level concepts (e.g., "person," "couch") are shuffled within the text captions of the dataset while keeping other features constant.
- Image Generation: A diffusion model (e.g., Stable Diffusion) generates a new "permuted" dataset based on these modified captions.
- Performance Measurement: The target black-box classifier is evaluated on the generated images. The delta in performance (e.g., AUROC drop) indicates the importance of the permuted concept.
- Validation: The framework includes checks for "Effective Generation" to ensure the classifier treats synthetic images similarly to real ones, and "Independent Permutation" to ensure concepts are isolated.
Experimental Validation
The authors evaluated DEPICT across three diverse domains:
- Synthetic Shapes: A controlled environment with six geometric shapes to establish ground-truth feature importance.
- COCO Scene Classification: Identifying objects (e.g., "bed," "table") that drive scene labels like "home" or "hotel."
- MIMIC-CXR Medical Imaging: Auditing pneumonia classifiers to determine if they rely on non-clinical demographics like age, sex, or BMI.
Results and Discussion
DEPICT demonstrates a marked improvement over traditional local explanation methods. On synthetic data, DEPICT achieved a 0.92 Pearson correlation with ground-truth importance, compared to 0.73 for LIME and a mere 0.08 for Grad-CAM.
In real-world applications, DEPICT proved highly effective for bias auditing. In the MIMIC-CXR study, the tool revealed that classifiers were heavily reliant on demographic shortcuts; permuting BMI alone caused the AUROC to drop from 0.97 to 0.70. This highlights DEPICT's utility in identifying "clever Hans" effects where models learn spurious correlations rather than actual pathology.
Conclusion
DEPICT successfully translates global permutation importance to the image domain by leveraging the generative power of diffusion models. While the method is constrained by the quality of the underlying generator and the computational cost of image synthesis, it provides a powerful new tool for auditing black-box models. As generative models become more precise and efficient, DEPICT offers a scalable path toward truly interpretable and safe computer vision systems.
Summary updated