How You See Me

Rohit Gandikota, Deepak MishraarXiv 2018

Abstract

Convolutional Neural Networks (CNNs) are the workhorses of modern computer vision, yet they remain notoriously opaque. Understanding why a specific network makes a classification decision is critical for high-stakes applications. This paper proposes a straightforward, training-free backtracking algorithm that identifies the specific pixels triggering a network's output. By mapping activations from the final classification layer back to the input image, the authors generate saliency maps that visualize the model's focus, providing a generic tool for unmasking the "black box" of standard pre-trained architectures.

Introduction

Despite their success, CNNs are often treated as "black boxes." This lack of interpretability is a major hurdle in high-stakes fields like autonomous driving or medical imaging, where it is vital to know if a model is making a decision based on the actual object or irrelevant background noise. Existing methods to visualize CNN attention often rely on complex gradient calculations or require modifying the network architecture. The authors sought a more intuitive, generic approach that works with standard, pre-trained models (like VGG19) without needing additional training or architectural changes.

Methodology

The core idea is a backtracking algorithm inspired by the Viterbi algorithm used in hidden Markov models. Instead of a forward pass (image to label), the authors perform a "reverse pass" to find the most influential nodes at each stage:

  1. Fully Connected (FC) Layers: Starting with the node representing the predicted label, the algorithm identifies the nodes in the previous layer that contributed most to that activation.
  2. Convolutional & Pooling Layers: Once the algorithm reaches the spatial layers, it utilizes the receptive field. For an "important" node in layer $L$, it searches the corresponding receptive field in layer $L-1$ to find the node with the maximum activation.
  3. Pixel Mapping: This process continues until it reaches the input layer, resulting in a set of coordinates in the original image.
  4. Saliency Generation: To create a human-readable map, Gaussian distributions are placed over these "important pixels," and a threshold is applied to create a binary saliency mask.
The visualization pipeline showing identified important pixels, generated heatmaps, and final binary saliency masks for a caterpillar (top) and a doll (bottom).

Experimental Setup

The researchers used a VGG19 model pre-trained on ImageNet for their experiments. To evaluate how well their backtracking method identifies salient objects, they tested it against the MSRA-B dataset, a standard benchmark for saliency detection containing thousands of images with human-annotated ground truth masks.

Results and Discussion

The authors evaluated their method as a saliency detector on the MSRA-B dataset, achieving an accuracy of 0.98 and a recall of 0.8. The precision was lower at 0.5, with an Intersection over Union (IOU) of 0.6.

The lower precision score suggests that the CNN's "attention" is often broader than human-defined ground truth. The network frequently looks at the immediate background context surrounding an object to help confirm its identity, whereas a human-drawn mask only covers the object itself.

Key insights from the visualizations include:

  • Discriminative Features: The network focuses on specific parts of an object, such as the head and tail of a dragonfly, rather than the entire shape.
  • Contextual Awareness: The algorithm identifies meaningful regions even if the specific object class isn't in the training vocabulary, suggesting the network "sees" the object as a distinct entity.
  • Robustness: The method proved effective even on blurred images, successfully identifying the core structure of objects despite the loss of fine detail.

Conclusion

The proposed backtracking algorithm offers a simple, logical "unrolling" of a network's internal logic. While currently limited to sequential architectures like VGG, it provides a foundation for more complex interpretability tools. Future work will focus on extending the algorithm to handle modern architectures with skip connections, such as ResNet and DenseNet, and optimizing the process for better memory efficiency.

Summary updated

BibTeX
@misc{gandikota2018how,
  author = {Rohit Gandikota and Deepak Mishra},
  title = {{How You See Me}},
  year = {2018},
  eprint = {1811.08152},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1811.08152},
}
Figure