CNN Fixations: An Unraveling Approach to Visualize the Discriminative Image Regions

Konda Reddy Mopuri, Utsav Garg, R. Venkatesh BabuIEEE TIP 2017

Abstract

Deep convolutional neural networks (CNN) have revolutionized various fields of vision research and have seen unprecedented adoption for multiple tasks such as classification, detection, captioning, etc. However, they offer little transparency into their inner workings and are often treated as black boxes that deliver excellent performance. In this work, we aim at alleviating this opaqueness of CNNs by providing visual explanations for the network's predictions. Our approach can analyze variety of CNN based models trained for vision applications such as object recognition and caption generation. Unlike existing methods, we achieve this via unraveling the forward pass operation. Proposed method exploits feature dependencies across the layer hierarchy and uncovers the discriminative image locations that guide the network's predictions. We name these locations CNN-Fixations, loosely analogous to human eye fixations. Our approach is a generic method that requires no architectural changes, additional training or gradient computation and computes the important image locations (CNN Fixations). We demonstrate through a variety of applications that our approach is able to localize the discriminative image locations across different network architectures, diverse vision tasks and data modalities.

Introduction

Deep Convolutional Neural Networks (CNNs) are state-of-the-art in computer vision but remain notoriously opaque. Understanding why a model makes a specific prediction—such as identifying a "dog" in a complex scene—is critical for trust and debugging. Existing visualization tools like Class Activation Mapping (CAM) or gradient-based saliency maps often suffer from architectural constraints (requiring Global Average Pooling) or produce noisy, low-resolution results. This paper introduces CNN Fixations, a method that provides high-resolution, task-agnostic visual explanations by "unraveling" the forward pass.

Methodology: Unraveling the Forward Pass

The core innovation is a process called unraveling. Instead of calculating gradients, which measure sensitivity to input changes, the method traces the actual excitatory signals that occurred during the forward pass.

  1. Top-Down Tracing: The process begins at the winning neuron of the final layer (e.g., the predicted class).
  2. Evidence Tracking: It iteratively backtracks through the network, identifying which neurons in the preceding layer contributed most to the current activation. This is achieved by analyzing positive correlations (excitatory signals) using weights and activations.
  3. Layer-Specific Logic: The method handles various layer types, including Fully Connected, Convolutional, and Pooling layers, as well as complex blocks like ResNet skip connections.
  4. Fixation Generation: The result is a set of 2D coordinates on the input image, termed "CNN Fixations." These points represent the most discriminative regions.
Visualization of CNN Fixations and resulting heatmaps for object recognition.

As shown in the figure above, these discrete fixations are cleaned via outlier removal and then blurred with a Gaussian kernel to produce a final, high-resolution heatmap that highlights the object of interest.

Key Insights and Results

CNN Fixations offer several advantages over traditional methods:

  • High Resolution: By tracking spatial locations through the hierarchy rather than upsampling low-res maps, the localizations are significantly sharper.
  • Robustness to Noise: The method is more resilient to adversarial perturbations than gradient-based approaches. Even if noise changes the final label, the fixations often still point to the correct object.
  • Task Versatility: The approach works across diverse tasks, including object recognition, image captioning, and even sparse data like sketches.

Quantitative Performance

On the ImageNet validation set using VGG-16, CNN Fixations achieved a 55.22% localization error rate, outperforming standard Backprop (61.12%) and Grad-CAM (56.51%). In saliency detection on the Graz-2 dataset, it reached a mean precision of 64.88%, compared to Grad-CAM's 60.09%.

Conclusion

CNN Fixations provide a generic, gradient-free way to peer into the "black box" of deep networks. By focusing on the forward pass's excitatory signals, the method yields precise and robust visual explanations. This tool can be used to debug models, analyze misclassifications, and improve the transparency of AI systems across various vision modalities.

Summary updated

BibTeX
@article{mopuri2017cnn,
  author = {Konda Reddy Mopuri and Utsav Garg and R. Venkatesh Babu},
  title = {{CNN Fixations: An Unraveling Approach to Visualize the Discriminative Image Regions}},
  journal = {IEEE Trans. Image Process.},
  year = {2017},
  url = {https://openreview.net/forum?id=MddVCUwMXZm},
}
Figure