Interpretable and Fine-Grained Visual Explanations for Convolutional Neural Networks

Jörg Wagner, Jan Mathias Köhler, Tobias Gindele, Leon Hetzel, Jakob Thaddäus Wiedemer, Sven Behnke · DOI

Abstract

To verify and validate networks, it is essential to gain insight into their decisions, limitations as well as possible shortcomings of training data. In this work, we propose a post-hoc, optimization based visual explanation method, which highlights the evidence in the input image for a specific prediction. Our approach is based on a novel technique to defend against adversarial evidence (i.e. faulty evidence due to artefacts) by filtering gradients during optimization. The defense does not depend on human-tuned parameters. It enables explanations which are both fine-grained and preserve the characteristics of images, such as edges and colors. The explanations are interpretable, suited for visualizing detailed evidence and can be tested as they are valid model inputs. We qualitatively and quantitatively evaluate our approach on a multitude of models and datasets.

Introduction

Convolutional Neural Networks (CNNs) have become the standard for high-performance tasks in computer vision, yet they remain largely "black boxes." As these models are increasingly deployed in safety-critical domains like autonomous driving and medical diagnostics, understanding the rationale behind their predictions is paramount.

Existing visual explanation techniques generally fall into two categories. Backpropagation-based methods, such as Grad-CAM, are computationally efficient but often produce coarse, low-resolution heatmaps. Conversely, perturbation-based methods attempt to find an optimal mask to explain a prediction but are highly susceptible to "adversarial evidence"—noise introduced during optimization that tricks the model into seeing features that do not exist in the original image. This paper introduces FGVis, a framework that generates fine-grained, pixel-level explanations while specifically defending against such artifacts.

FGVis provides fine-grained visual explanations that preserve image characteristics like edges and colors, as seen in these peacock and spaniel examples.

Methodology: The FGVis Framework

FGVis treats the generation of an explanation as an optimization problem. It seeks a minimal mask ($m$) that, when applied to the input image, either preserves the model's original prediction (the Preservation Game) or destroys it (the Deletion Game). The researchers observed that the Deletion Game typically results in sparser, more interpretable masks that highlight the most critical features.

Adversarial Defense via Gradient Filtering

The core innovation of FGVis is its Adversarial Defense mechanism. To prevent the optimizer from "hallucinating" evidence, the method applies a gradient-clipping constraint during the backward pass: a neuron in the network is only permitted to be activated by the explanation if that same neuron was activated by the original input image. This ensures that the resulting mask only highlights features (like specific edges or textures) that were actually present in the source data. This defense requires no manual hyperparameter tuning and allows optimization to occur at full image resolution.

The adversarial defense prevents the model from "hallucinating" evidence. Without defense, an optimizer can find a mask for a "limousine" in an image of an agama lizard; with defense, the explanation remains faithful to the actual content.

Key Insights and Results

The authors validated FGVis across diverse datasets, including ImageNet and medical fundus image sets (DiaretDB1 and EyePACS).

  • Faithfulness and Robustness: Using the "deletion metric," FGVis demonstrated superior faithfulness compared to Grad-CAM, LIME, and RISE. The adversarial defense proved highly effective; while an undefended optimizer could hallucinate a "limousine" into a black image 100% of the time, the defended version reduced this to near zero.
  • Architectural Fingerprints: The method revealed that different CNN architectures possess unique "explanation styles." For instance, ResNet explanations often show grid-like patterns—an artifact of skip-connections—while VGG16 focuses on sharp structural edges.
  • Diagnosing Dataset Bias: FGVis serves as a diagnostic tool for uncovering spurious correlations. It revealed that a model trained to identify school buses relied heavily on the yellow color, whereas minivan detection was more reliant on structural geometry.
  • Medical Precision: In clinical applications, FGVis successfully localized tiny hemorrhages and microaneurysms in eye scans, achieving high sensitivity in weakly-supervised lesion localization.

Conclusion

FGVis provides a robust framework for generating interpretable, fine-grained visual explanations. By defending against adversarial artifacts without requiring human-tuned hyperparameters, it offers a faithful lens into the decision-making processes of deep CNNs. Future work will address the computational overhead of the optimization process and explore more sophisticated reference images for information removal. Future research may also investigate the specific causes of architectural artifacts, such as the grid patterns observed in ResNet models.

Summary updated

BibTeX
@inproceedings{wagner2019interpretable,
  author = {Jörg Wagner and Jan Mathias Köhler and Tobias Gindele and Leon Hetzel and Jakob Thaddäus Wiedemer and Sven Behnke},
  title = {{Interpretable and Fine-Grained Visual Explanations for Convolutional Neural Networks}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2019},
  doi = {10.1109/cvpr.2019.00931},
}
Figure