Abstract
Much effort has been devoted to understanding the decisions of deep neural networks in recent years. A number of model-aware saliency methods were proposed to explain individual classification decisions by creating saliency maps. However, they are not applicable when the parameters and the gradients of the underlying models are unavailable. Recently, model-agnostic methods have also received attention. As one of them, Prediction Difference Analysis (PDA), a probabilistic sound methodology, was proposed. In this work, we first show that PDA can suffer from saturated classifiers. The saturation phenomenon of classifiers exists widely in current neural network-based classifiers. To explain the decisions of saturated classifiers better, we further propose Contextual PDA, which runs hundreds of times faster than PDA. The experiments show the superiority of our method by explaining image classifications of the state-of-the-art deep convolutional neural networks.
Introduction
As deep neural networks (DNNs) are increasingly deployed in high-stakes domains, explaining their individual predictions has become crucial. Model-agnostic methods are particularly desirable because they treat the model as a black box, requiring no access to internal gradients or weights. One popular probabilistic method is Prediction Difference Analysis (PDA), which measures a feature's importance by removing it and observing the resulting drop in prediction confidence.
However, PDA suffers from the "classifier saturation" phenomenon. If an image contains multiple redundant features for a class (e.g., two zebras in one image), removing just one feature may not significantly lower the model's confidence. Consequently, PDA incorrectly assigns near-zero relevance to both features. Furthermore, simulating the removal of a feature in PDA requires computationally expensive marginalization and sampling, making it slow for high-resolution images.
Methodology: Contextual PDA
To overcome saturation, Contextual PDA (CPDA) flips the PDA paradigm. Instead of measuring the drop in confidence when a feature $x_i$ is removed ($f(x) - f(x_{\setminus i})$), CPDA measures the relevance of the context (everything except $x_i$).
CPDA isolates a feature $x_i$ (e.g., a small image patch) and passes only that feature through the classifier to obtain $f(x_i)$. The relevance of the contextual features is then defined as the difference between the full image prediction and the isolated patch prediction: $R_{\setminus i} = f(x) - f(x_i)$. This contextual relevance is then distributed among the other features. Practically, for image classification, CPDA slides a $k \times k$ patch across the image with a fixed stride, resizes these patches to the network's required input size, and aggregates the differences to build a complete saliency map. By directly classifying patches rather than sampling from conditional distributions, CPDA avoids the massive computational overhead of standard PDA.
Experimental Results
The method was evaluated using standard pre-trained ImageNet convolutional neural networks (AlexNet, VGG16, Inception_V3, ResNet, DenseNet). CPDA demonstrated several key advantages:
- Bypassing Saturation: By evaluating a feature's contribution based on the inference of all contextual features, CPDA correctly identifies redundant supporting features that standard PDA misses.
- Class-Discriminativity: In images with multiple different objects, CPDA is highly class-discriminative, strictly highlighting the relevant object for a given class prediction.
- Massive Speedups: CPDA is orders of magnitude faster than PDA. For example, generating an explanation using AlexNet on a CPU took PDA ~380 minutes, while CPDA took just 1.8 minutes.
Quantitatively, CPDA significantly outperformed both LIME and standard PDA in Log Odds Ratio scores, achieving performance competitive with model-aware methods despite being strictly model-agnostic.
Conclusion and Limitations
CPDA provides a robust and efficient model-agnostic explanation method that effectively handles classifier saturation. Its primary limitation is the assumption that the underlying classifier can make meaningful predictions on isolated, resized parts of features. This makes it most suitable for models robust to scale and translation, such as deep CNNs trained on ImageNet, and less suitable for networks trained on highly structured, centered data like MNIST. Future work will explore extending this approach to a broader range of classifier architectures.
Summary updated