[Paper Review] Removing input features via a generative model to explain their attributions to a classifier's decisions
This paper proposes integrating a generative inpainter into attribution methods to realistically remove input features, replacing heuristic removal techniques like blurring or noise. The approach produces more plausible counterfactual samples, improves robustness to hyperparameters, and enhances accuracy across object localization, deletion, and saliency metrics on ImageNet and Places365.
Interpretability methods often measure the contribution of an input feature to an image classifier's decisions by heuristically removing it via e.g. blurring, adding noise, or graying out, which often produce unrealistic, out-of-samples. Instead, we propose to integrate a generative inpainter into three representative attribution methods to remove an input feature. Compared to the original counterparts, our methods (1) generate more plausible counterfactual samples under the true data generating process; (2) are more robust to hyperparameter changes; and (3) are more accurate according to three metrics: object localization, deletion and saliency metrics. Our findings were consistent across both ImageNet and Places365 datasets and two different pairs of classifiers and inpainters.
Motivation & Objective
- Address the limitation of heuristic feature removal methods (e.g., blurring, noise) that generate unrealistic, out-of-distribution samples.
- Improve the fidelity of counterfactual samples by modeling feature removal under the true data-generating process.
- Enhance the robustness of attribution methods to hyperparameter variations.
- Increase the accuracy of feature attribution using standard metrics such as object localization, deletion, and saliency scores.
- Demonstrate consistent performance gains across diverse datasets (ImageNet, Places365) and model combinations.
Proposed method
- Replace heuristic feature removal with a deep generative inpainter that reconstructs masked input regions using context.
- Integrate the inpainter into three established attribution methods: Grad-CAM, GradCAM++, and Score-CAM.
- Apply the inpainter during the forward pass to generate realistic counterfactual inputs when a feature is removed.
- Use the model’s predictions on these inpainted inputs to compute feature attributions, ensuring consistency with the data manifold.
- Train the inpainter on the same distribution as the classifier to preserve realistic feature distributions.
- Maintain end-to-end differentiability to allow gradient-based attribution computation on the inpainted inputs.
Experimental results
Research questions
- RQ1Can a generative inpainter produce more realistic counterfactual samples than heuristic removal methods?
- RQ2Does using a generative model for feature removal improve the robustness of attribution methods to hyperparameter choices?
- RQ3To what extent does the proposed method improve attribution accuracy across standard evaluation metrics?
- RQ4How does the method perform across different datasets and classifier-inpainter combinations?
- RQ5Does the use of generative inpainting lead to more faithful localization of salient regions in image classification decisions?
Key findings
- The proposed method generates counterfactual samples that are more realistic and consistent with the true data distribution compared to heuristic removal.
- Attribution methods using the generative inpainter show improved robustness to hyperparameter changes across all tested configurations.
- The method achieves higher accuracy on object localization, deletion, and saliency metrics compared to baseline methods.
- Performance gains are consistent across both ImageNet and Places365 datasets.
- The method maintains strong performance across two different classifier-inpainter pairs, indicating generalization across architectures.
- The integration of generative inpainting leads to more reliable and interpretable feature attributions without requiring model retraining.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.