Abstract
To better understand the behavior of image classifiers, it is useful to visualize the contribution of individual pixels to the model prediction. In this study, we propose a method, MoXI (Model eXplanation by Interactions), that efficiently and accurately identifies a group of pixels with high prediction confidence. The proposed method employs game-theoretic concepts, Shapley values and interactions, taking into account the effects of individual pixels and the cooperative influence of pixels on model confidence. Theoretical analysis and experiments demonstrate that our method better identifies the pixels that are highly contributing to the model outputs than widely-used visualization by Grad-CAM, Attention rollout, and Shapley value. While prior studies have suffered from the exponential computational cost in the computation of Shapley value and interactions, we show that this can be reduced to quadratic cost for our task.
Introduction
Deep learning models, particularly Vision Transformers (ViTs), are frequently criticized for being "black boxes." While eXplainable AI (XAI) tools like Grad-CAM are used to highlight influential pixels, they often treat pixels as independent actors. This approach fails to capture the synergy between features—for instance, a model might recognize a "duck" based on the interaction between the bird and its watery environment. Traditional game-theoretic approaches like Shapley values offer a "gold standard" for fair contribution but are computationally prohibitive, requiring an exponential number of model passes.
MoXI: Model eXplanation by Interactions
MoXI addresses these limitations by shifting focus from individual pixel importance to "Interactions." This game-theoretic concept measures the average effect of cooperation between pixels.
Greedy Selection Strategy
To overcome the NP-hard nature of testing every pixel combination, MoXI employs a greedy strategy for:
- Pixel Insertion: Starting from a blank image and adding pixels that most increase confidence.
- Pixel Deletion: Starting from a full image and removing pixels that least decrease confidence.
By utilizing "self-context" and "full-context" variants of Shapley values, the algorithm reduces computational complexity from $O(2^{|N|})$ to $O(|N|^2)$, where $N$ is the number of image patches. This makes game-theoretic explanations practical for real-world use.
Experimental Results
MoXI was evaluated on ImageNet and a synthetic MNIST task (Visual SET-SUM).
Qualitative and Quantitative Performance
In insertion tests, MoXI achieved 90% classification accuracy with only 4% of the image unmasked, significantly outperforming Grad-CAM and Attention Rollout, which remained near 0-5% accuracy at the same threshold. Qualitatively, MoXI's heatmaps reveal that models often rely on specific background patches to reach high confidence levels early, a detail often missed by object-centric methods.
Synergy in Synthetic Tasks
On the Visual SET-SUM task, where a model must sum digits in a 2x2 grid, MoXI successfully identified the necessary group of interacting digits required for the correct output.
Efficiency and Robustness
MoXI is approximately 30 times faster than standard Shapley value estimation methods. It also demonstrates robustness across various architectures (ViT, DeiT, ResNet) and effectively identifies patches vulnerable to corruptions like noise or fog.
Conclusion
MoXI demonstrates that synergy is essential for accurate model explanation. By reducing the computational cost of interaction-based metrics, it provides a state-of-the-art visualization tool that accounts for the cooperative influence of pixels. While it still requires $O(|N|^2)$ forward passes, it represents a significant step toward making rigorous game-theoretic XAI practical for high-resolution image analysis.
Summary updated