arXiv(opens in a new tab)cs.CVDec 2013Cited by 32 papers on PaperVantageClassic Paper

Manuscript Offprint

arXiv:1312.6034

Deep Inside Convolutional Networks: Visualising Image Classification Models and Saliency Maps

Karen Simonyan, Andrea Vedaldi, Andrew Zisserman

Abstract

This paper addresses the visualisation of image classification models, learnt using deep Convolutional Networks (ConvNets). We consider two visualisation techniques, based on computing the gradient of the class score with respect to the input image. The first one generates an image, which maximises the class score [5], thus visualising the notion of the class, captured by a ConvNet. The second technique computes a class saliency map, specific to a given image and class. We show that such maps can be employed for weakly supervised object segmentation using classification ConvNets. Finally, we establish the connection between the gradient-based ConvNet visualisation methods and deconvolutional networks [13].

Visual Geometry Group, University of Oxford

{karen,vedaldi,az}@robots.ox.ac.uk

1 Introduction

With the deep Convolutional Networks (ConvNets) [10] now being the architecture of choice for large-scale image recognition [8, 4], the problem of understanding the aspects of visual appearance, captured inside a deep model, has become particularly relevant and is the subject of this paper.

In previous work, Erhan et al.​ [5] visualised deep models by finding an input image which maximises the neuron activity of interest by carrying out an optimisation using gradient ascent in the image space. The method was used to visualise the hidden feature layers of unsupervised deep architectures, such as the Deep Belief Network (DBN) [7], and it was later employed by Le et al.​ [9] to visualise the class models, captured by a deep unsupervised auto-encoder. Recently, the problem of ConvNet visualisation was addressed by Zeiler et al.​ [13]. For convolutional layer visualisation, they proposed the Deconvolutional Network (DeconvNet) architecture, which aims to approximately reconstruct the input of each layer from its output.

In this paper, we address the visualisation of deep image classification ConvNets, trained on the large-scale ImageNet challenge dataset [2]. To this end, we make the following three contributions. First, we demonstrate that understandable visualisations of ConvNet classification models can be obtained using the numerical optimisation of the input image [5] (Sect. 2). Note, in our case, unlike [5], the net is trained in a supervised manner, so we know which neuron in the final fully-connected classification layer should be maximised to visualise the class of interest (in the unsupervised case, [9] had to use a separate annotated image set to find out the neuron responsible for a particular class). To the best of our knowledge, we are the first to apply the method of [5] to the visualisation of ImageNet classification ConvNets [8]. Second, we propose a method for computing the spatial support of a given class in a given image (image-specific class saliency map) using a single back-propagation pass through a classification ConvNet (Sect. 3). As discussed in Sect. 3.2, such saliency maps can be used for weakly supervised object localisation. Finally, we show in Sect. 4 that the gradient-based visualisation methods generalise the deconvolutional network reconstruction procedure [13].

References (12)

  • Large scale visual recognition challenge (ILSVRC), 2010
  • Interactive graph cuts for optimal boundary and region segmentation of objects in N-D images
  • Multi-column deep neural networks for image classification
  • Visualizing higher-layer features of a deep network
  • A discriminatively trained, multiscale, deformable part model
  • A fast learning algorithm for deep belief nets
  • ImageNet classification with deep convolutional neural networks
  • Building high-level features using large scale unsupervised learning
  • Gradient-based learning applied to document recognition
  • Improving the Fisher kernel for large-scale image classification
  • Deep Fisher networks and class saliency maps for object classification and localisation
  • Visualizing and Understanding Convolutional Networks

Cited by (32)