VisualBackProp: efficient visualization of CNNs

Mariusz Bojarski, Anna Choromanska, Krzysztof Choromański, Bernhard Firner, Larry Jackel, Urs Müller, Karol Zieba

Abstract

This paper proposes a new method, VisualBackProp, for visualizing which sets of pixels in an input image contribute most to the predictions of a Convolutional Neural Network (CNN). The method exploits the intuition that feature maps contain progressively less irrelevant information as they move deeper into the network. Designed as a debugging tool for real-time systems like self-driving cars, VisualBackProp is computationally efficient—requiring fewer operations than a standard forward propagation. Theoretical analysis confirms that the method identifies collaborative sets of pixels rather than isolated noise, and empirical results demonstrate its effectiveness across road video data and general image classification tasks, achieving significant speedups over existing methods like Layer-wise Relevance Propagation (LRP).

Introduction: Opening the Black Box

Deep learning models, particularly CNNs, are often criticized for being "black boxes." While they excel at complex tasks like autonomous steering or object recognition, understanding the rationale behind a specific decision is difficult. In safety-critical applications like self-driving cars, this interpretability is not just a convenience but a requirement.

NVIDIA researchers introduced VisualBackProp to address this need. It is a high-speed, "value-based" visualization tool designed to reveal the specific regions of an input image that drive a network's predictions in real-time.

The Interpretability Gap

Engineers debugging end-to-end systems need to know if a model is focusing on relevant cues (e.g., lane markings) or irrelevant distractions (e.g., shadows). Existing techniques often fail due to high computational costs or the production of noisy, pixel-level saliency maps that lack semantic coherence. VisualBackProp aims to be faster than a forward pass while identifying "sets of pixels" that correspond to recognizable features.

The VisualBackProp Method

The core intuition behind VisualBackProp is that deeper layers in a CNN capture high-level relevance but lose spatial resolution, while shallower layers maintain resolution but contain more noise. To create a clear mask, the algorithm combines these properties through a coarse-to-fine upscaling process:

  1. Averaging: Feature maps from each ReLU layer are averaged into a single 2D map.
  2. Upscaling: Starting from the deepest layer, the averaged map is upscaled to the size of the preceding layer using deconvolution (with weights set to 1).
  3. Multiplication: The upscaled map is multiplied pixel-wise with the averaged feature map of the shallower layer.
  4. Iteration: This process repeats until the mask matches the original input dimensions.
A detailed view of the snake image and its corresponding VisualBackProp heatmap, illustrating how the method identifies coherent sets of pixels.

Unlike gradient-based methods, VisualBackProp is value-based, utilizing actual neuron activations to determine relevance.

Experimental Validation and Results

The authors validated the method across diverse domains, including the Udacity Self-Driving Car Dataset, the German Traffic Sign Detection Benchmark (GTSDB), and large-scale ImageNet classification using ResNet-200.

VisualBackProp masks for a snake, a truck, and a monkey, highlighting the regions most relevant to the network's classification.

Key Findings:

  • Efficiency: On a GeForce GTX 970M, VisualBackProp computed masks in just 2.0 ms, compared to 24.6 ms for LRP—a 12x speedup that enables real-time visualization during inference.
  • Clarity: The resulting masks are qualitatively cleaner than those produced by LRP, effectively highlighting lane boundaries and object features with high contrast.
  • Debugging Utility: The tool successfully identified failure modes, such as a steering model "losing" a lane marking during sharp turns.
  • Theoretical Grounding: Using multipartite graph theory, the authors proved that VisualBackProp approximates the total "flow" of contribution from input pixels to the final output.

Conclusion

By making visualization computationally inexpensive, VisualBackProp transitions interpretability from a post-hoc research exercise to a standard component of the real-time engineering pipeline. It provides a theoretically sound and practically viable way to verify that deep learning models are attending to the correct features in complex, real-world environments.

Summary updated

Abstract

This paper proposes a new method, that we call VisualBackProp, for visualizing which sets of pixels of the input image contribute most to the predictions made by the convolutional neural network (CNN). The method heavily hinges on exploring the intuition that the feature maps contain less and less irrelevant information to the prediction decision when moving deeper into the network. The technique we propose was developed as a debugging tool for CNN-based systems for steering self-driving cars and is therefore required to run in real-time, i.e. it was designed to require less computations than a forward propagation. This makes the presented visualization method a valuable debugging tool which can be easily used during both training and inference. We furthermore justify our approach with theoretical arguments and theoretically confirm that the proposed method identifies sets of input pixels, rather than individual pixels, that collaboratively contribute to the prediction. Our theoretical findings stand in agreement with the experimental results. The empirical evaluation shows the plausibility of the proposed approach on the road video data as well as in other applications and reveals that it compares favorably to the layer-wise relevance propagation approach, i.e. it obtains similar visualization results and simultaneously achieves order of magnitude speed-ups.
BibTeX
@misc{bojarski2016visualbackprop,
  author = {Mariusz Bojarski and Anna Choromanska and Krzysztof Choromański and Bernhard Firner and Larry Jackel and Urs Müller and Karol Zieba},
  title = {{VisualBackProp: efficient visualization of CNNs}},
  year = {2016},
  eprint = {1611.05418},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1611.05418},
}
Figure