Abstract
Understanding and interpreting the decisions made by deep learning models is valuable in many domains. In computer vision, computing heatmaps from a deep network is a popular approach for visualizing and understanding deep networks. However, heatmaps that do not correlate with the network may mislead human, hence the performance of heatmaps in providing a faithful explanation to the underlying deep network is crucial. In this paper, we propose I-GOS, which optimizes for a heatmap so that the classification scores on the masked image would maximally decrease. The main novelty of the approach is to compute descent directions based on the integrated gradients instead of the normal gradient, which avoids local optima and speeds up convergence. Compared with previous approaches, our method can flexibly compute heatmaps at any resolution for different user needs. Extensive experiments on several benchmark datasets show that the heatmaps produced by our approach are more correlated with the decision of the underlying deep network, in comparison with other state-of-the-art approaches.
Introduction
Deep learning models are often criticized as "black boxes." In high-stakes domains like medical diagnosis or autonomous driving, understanding the rationale behind a model's classification is essential for trust and safety. Saliency maps, or heatmaps, are the primary tool for providing these explanations. However, existing methods often struggle with two main issues:
- Functional Infidelity: Some popular visualization techniques produce visually appealing images that highlight object edges but do not actually reflect the model's internal decision logic.
- The Optimization Trap: Methods that attempt to find a "faithful" mask—the minimal set of pixels required for a prediction—often get trapped in local minima due to the highly non-linear nature of deep networks, resulting in noisy or incomplete explanations.
Methodology: The I-GOS Approach
The proposed method, I-GOS (Integrated-Gradients Optimized Saliency), frames heatmap generation as an optimization problem. The goal is to find a mask that, when applied to the input image, causes the model's classification score to drop as much as possible.
Integrated Gradients as Descent Steps
The core innovation of I-GOS is the use of Integrated Gradients (IG) as the descent direction. Unlike standard gradients, which only provide local information and can be highly "shattered" in deep networks, IG calculates the average gradient along a path from a baseline (e.g., a blurred image) to the input. This provides a more global perspective of the loss landscape.
Optimization Refinements
To ensure efficiency and robustness, I-GOS incorporates several key features:
- Backtracking Line Search: A modified Armijo condition is used to find optimal step sizes quickly, significantly reducing the number of iterations required.
- Adversarial Mitigation: To prevent the optimizer from finding "adversarial noise" rather than meaningful features, the authors use Total Variation (TV) regularization and introduce random noise during optimization.
- Multi-Resolution Support: I-GOS can generate heatmaps at various resolutions, allowing for either coarse, smooth explanations or fine-grained details.
The method was evaluated using 5,000 images from the ImageNet validation set across pre-trained VGG19 and ResNet50 architectures.
Experimental Results
The effectiveness of I-GOS is measured using Deletion and Insertion metrics. Deletion tracks the drop in model confidence as important pixels are removed, while Insertion tracks the rise in confidence as they are added back.
Key Findings
- Superior Faithfulness: I-GOS consistently outperformed state-of-the-art methods like RISE and Grad-CAM. It achieved the lowest Deletion scores and highest Insertion scores across all tested resolutions.
- Efficiency: By using IG and efficient line search, I-GOS reaches optimal results in just 10–20 iterations. On a ResNet50, it takes roughly 6 seconds per image, outperforming the standard Mask approach (17s) and RISE (61s).
- Visual Clarity: Qualitatively, I-GOS is better at capturing complex, thin structures (like spider legs) that other methods often miss or blur.
Discussion and Limitations
While I-GOS represents a significant step forward in faithful model visualization, some limitations remain. The optimization may fail if the model's initial confidence is extremely low or if the prediction is incorrect. Furthermore, like all optimization-based methods, there is an inherent risk of finding "shortcuts" in the network's logic that do not align with human semantic understanding. Future work may involve automated baseline selection to further refine the generated heatmaps.
Summary updated