TL;DR
This paper introduces VOICE, a novel framework to quantify the uncertainty inherent in gradient-based visual explanations for neural networks. By analyzing the variance across "contrastive explanations" (which highlight differences between predicted and alternative classes), VOICE reveals when explanations themselves are unreliable, particularly when the network makes incorrect predictions. This work is crucial for building more trustworthy AI systems by providing a deeper understanding of explanation reliability.
What Problem Does This Paper Address?
Neural networks are increasingly used in critical applications, making their decisions understandable (explainable) essential. Visual explanations, like heatmaps highlighting important image regions, are a popular way to achieve this. However, these explanations themselves can be uncertain. Existing methods for evaluating explanations often focus on whether the explanation helps predict correctly, implicitly reducing the network's predictive uncertainty. This paper argues that this approach overlooks a crucial aspect: the uncertainty within the explanation itself. The authors aim to visualize and quantify this "explanation uncertainty," which reflects how confident the explanation is about the features it highlights, especially when the network's prediction might be wrong.
Methods
The core of the proposed method, VOICE (Variance Of Induced Contrastive Explanations), involves a three-step process:
- Forward Pass: The input image is passed through the neural network to obtain a prediction.
- Induce Contrastive Explanations: Instead of just explaining why a network predicted class P, VOICE generates explanations for why it predicted P rather than other classes (Q). This is achieved by backpropagating a loss function between the predicted class P and several contrast classes Q. This creates "contrastive explanations."
- Variance Across Explanations: The generated contrastive explanations are then stacked and their pixel-wise variance is calculated. This variance map, normalized, becomes the VOICE uncertainty map.
The authors also propose two metrics to quantify this uncertainty:
- Intersection over Union (IoU): Measures the overlap between the explanation map and the uncertainty map. Higher IoU suggests the explanation is uncertain about the regions it highlights. This is a "full-reference" metric as it requires both the explanation and uncertainty maps.
- Signal-to-Noise Ratio (SNR): Measures the dispersion of uncertainty across the uncertainty map. Lower SNR indicates more confidence in the explanation. This is a "no-reference" metric as it only requires the uncertainty map.
Datasets
The paper evaluates VOICE on the following datasets:
- ImageNet: Used for training and evaluating explanations on a large-scale image recognition task.
- CIFAR-10C: A challenging dataset with various corruptions (e.g., Gaussian blur, contrast, JPEG compression) used to test the robustness of VOICE.
Key Insights and Ideas
- Explanations Have Their Own Uncertainty: The paper demonstrates that visual explanations are not always definitive and possess their own inherent uncertainty, independent of the network's prediction uncertainty.
- Contrastive Explanations Reveal Deeper Uncertainty: By forcing the explanation to differentiate between the predicted class and alternative classes, VOICE uncovers uncertainty that standard explanations might mask.
- Uncertainty in Explanations Correlates with Incorrect Predictions: When a network makes an incorrect prediction, the corresponding explanation is often more dispersed and has a larger overlap with its uncertainty map. This suggests the explanation is unsure about the very features it's using to justify a wrong decision.
- VOICE Metrics Mimic Epistemic Uncertainty: The proposed IoU and SNR metrics for explanation uncertainty behave similarly to epistemic uncertainty (uncertainty due to lack of knowledge), providing a quantifiable measure of explanation reliability.
- Existing Evaluation Methods Are Incomplete: The authors argue that current methods that evaluate explanations by masking parts of the image and checking for prediction changes only address a portion of the predictive uncertainty, neglecting the residual uncertainty.
Key Results
- Qualitative: Visualizations consistently show that when networks make incorrect predictions, the VOICE uncertainty maps exhibit greater dispersion and overlap with the original explanations compared to correct predictions. This is observed across various architectures (VGG-16, Swin Transformer, AlexNet, etc.) and explanation methods (GradCAM, GradCAM++, Guided Backpropagation, SmoothGrad).
- Quantitative:
- Table I shows that for most architectures, the IoU metric is significantly higher for incorrect predictions than for correct ones, indicating greater explanation uncertainty. For example, on VGG-16, IoU for incorrect predictions is 32.89% higher than for correct ones with GradCAM.
- SNR also generally increases for incorrect predictions, signifying more dispersed uncertainty.
- On CIFAR-10C, the proposed metrics (IoU and SNR) show similar trends to log-likelihood (a measure of epistemic uncertainty) across various noise levels and corruption types, validating their effectiveness.
- Table III suggests that GradCAM and GradCAM++ generally have lower AUC scores for IoU and SNR on CIFAR-10C challenges, indicating better explanation robustness compared to Guided Backpropagation and SmoothGrad.
Limitations and Future Work
- Gradient-Based Focus: The current VOICE methodology is limited to gradient-based explanation techniques. Future work should extend this to non-gradient-based methods like LIME or TCAV.
- Masking Limitations: The paper acknowledges that existing evaluation techniques relying on masking can be problematic. Future research should explore new VOICE measures that are less susceptible to these limitations, especially for adversarial and out-of-distribution detection.
- OOD Detection: While VOICE shows promise for detecting adversarial examples, further work is needed to develop specific VOICE measures for Out-of-Distribution (OOD) image detection.
- Metric Range Variability: The authors note that uncertainty quantification metrics can have a wide range, making direct comparison challenging. They propose using Area Under the Curve (AUC) for IoU and SNR across increasing challenge levels as a more robust evaluation method.
Summary updated