Skip to main content
QUICK REVIEW

[Paper Review] A New Method to Visualize Deep Neural Networks

Luisa Zintgraf, Taco Cohen|arXiv (Cornell University)|Mar 8, 2016
Explainable Artificial Intelligence (XAI)Computer Science8 references25 citations
TL;DR

This paper introduces a novel method to visualize deep neural networks by computing the relevance of input pixels to specific nodes in the network, using a conditional multivariate model to highlight evidence for or against class predictions. The approach improves upon sensitivity maps by providing signed, instance-specific explanations that reveal both positive and negative contributions of image regions, offering deeper insight into decision-making in convolutional networks.

ABSTRACT

We present a method for visualising the response of a deep neural network to a specific input. For image data for instance our method will highlight areas that provide evidence in favor of, and against choosing a certain class. The method overcomes several shortcomings of previous methods and provides great additional insight into the decision making process of convolutional networks, which is important both to improve models and to accelerate the adoption of such methods in e.g. medicine. In experiments on ImageNet data, we illustrate how the method works and can be applied in different ways to understand deep neural nets.

Motivation & Objective

  • To address the lack of interpretability in deep neural networks, especially in high-stakes domains like medicine where model decisions must be explainable.
  • To overcome limitations of existing visualization techniques such as saliency maps and deconvolutional networks, which often fail to distinguish between evidence for and against a class.
  • To provide a more rigorous, instance-specific explanation of how a deep neural network arrives at its predictions by quantifying the contribution of each input pixel.
  • To enable researchers and practitioners to better diagnose model behavior, detect biases, and improve network performance through visual inspection of feature relevance.

Proposed method

  • The method computes the relevance of each input pixel to a specific node (hidden or output layer) in the network using a conditional multivariate model.
  • It employs a perturbation-based approach inspired by Robnik-Šikonja and Kononenko (2008), measuring the change in node activation when each pixel is removed or masked.
  • For each pixel, the relevance is calculated as the difference between the activation with and without the pixel, under a multivariate normal approximation of the remaining input.
  • The method uses patch-based masking with varying sizes (k and l) to compute local relevance, allowing for fine-grained spatial understanding of feature contributions.
  • Relevance scores are visualized as signed maps: red indicates pixels that increase activation (evidence for the class), blue indicates pixels that decrease activation (evidence against the class).
  • The approach is applied across multiple layers, including early convolutional layers and deeper feature maps, to analyze hierarchical feature learning.

Experimental results

Research questions

  • RQ1How can we visualize which input pixels provide evidence for or against a specific class prediction in a deep neural network?
  • RQ2In what ways does the proposed method improve upon existing saliency-based and deconvolutional visualization techniques in terms of interpretability and accuracy?
  • RQ3How do the visualizations of hidden layer units differ from those of the final output layer, and what does this reveal about the network’s decision process?
  • RQ4Can the method detect and highlight both positive and negative evidence in image regions, such as object outlines or background features, to improve model understanding?
  • RQ5How does the use of a conditional multivariate model enhance the reliability and interpretability of feature relevance maps compared to simple gradient-based methods?

Key findings

  • The proposed method produces signed relevance maps that clearly distinguish between evidence for and against a class, unlike saliency maps which only show positive contributions.
  • The method reveals that object outlines and contextual background features often carry negative evidence, which is missed by traditional gradient-based approaches.
  • Visualizations of the penultimate (pre-softmax) layer show similar patterns for similar classes (e.g., different dog breeds), while output layer visualizations reveal distinct discriminative features such as ear shape in elephants.
  • Hidden layer visualizations show that early layers detect simple features like edges and textures, while deeper layers respond to complex, semantically meaningful patterns such as eyes or facial structures.
  • The method identifies highly specialized units in deeper layers, with sparse activations indicating that individual feature maps are tuned to specific, localized patterns.
  • The use of conditional sampling with patch sizes k=10 and l=14 enables robust and detailed visualization of feature map behavior across different network depths.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.