arXiv(opens in a new tab)Computer ScienceMay 2014Cited by 4 papers on PaperVantage

Manuscript Offprint

arXiv:1405.3531

Return of the Devil in the Details: Delving Deep into Convolutional Nets

Ken Chatfield, K. Simonyan, A. Vedaldi, Andrew Zisserman

Abstract

The latest generation of Convolutional Neural Networks (CNN) have achieved impressive results in challenging benchmarks on image recognition and object detection, significantly raising the interest of the community in these methods. Nevertheless, it is still unclear how different CNN methods compare with each other and with previous state-of-the-art shallow representations such as the Bag-of-Visual-Words and the Improved Fisher Vector. This paper conducts a rigorous evaluation of these new techniques, exploring different deep architectures and comparing them on a common ground, identifying and disclosing important implementation details. We identify several useful properties of CNN-based representations, including the fact that the dimensionality of the CNN output layer can be reduced significantly without having an adverse effect on performance. We also identify aspects of deep and shallow methods that can be successfully shared. In particular, we show that the data augmentation techniques commonly applied to CNN-based methods can also be applied to shallow methods, and result in an analogous performance boost. Source code and models to reproduce the experiments in the paper is made publicly available.

I Introduction

Perhaps the single most important design choice in current state-of-the-art image classification and object recognition systems is the choice of visual features, or image representation. In fact, most of the quantitative improvements to image understanding obtained in the past dozen years can be ascribed to the introduction of improved representations, from the Bag-of-Visual-Words (BoVW) [1, 2] to the (Improved) Fisher Vector (IFV) [3]. A common characteristic of these methods is that they are largely handcrafted. They are also relatively simple, comprising dense sampling of local image patches, describing them by means of visual descriptors such as SIFT, encoding them into a high-dimensional representation, and then pooling over the image. Recently, these handcrafted approaches have been substantially outperformed by the introduction of the latest generation of Convolutional Neural Networks (CNNs) [4] to the computer vision field. These networks have a substantially more sophisticated structure than standard representations, comprising several layers of non-linear feature extractors, and are therefore said to be deep (in contrast, classical representation will be referred to as shallow). Furthermore, while their structure is handcrafted, they contain a very large number of parameters learnt from data. When applied to standard image classification and object detection benchmark datasets such as ImageNet ILSVRC [5] and PASCAL VOC [6] such networks have demonstrated excellent performance [7, 8, 9, 10, 11], significantly better than standard image encodings [12].

Despite these impressive results, it remains unclear how different deep architectures compare to each other and to shallow computer vision methods such as IFV. Most papers did not test these representations extensively on a common ground, so a systematic evaluation of the effect of different design and implementation choices remains largely missing. As noted in our previous work [12], which compared the performance of various shallow visual encodings, the performance of computer vision systems depends significantly on implementation details. For example, state-of-the-art methods such as [13] not only involve the use of a CNN, but also include other improvements such as the use of very large scale datasets, GPU computation, and data augmentation (also known as data jittering or virtual sampling). These improvements could also transfer to shallow representations such as the IFV, potentially explaining a part of the performance gap [14].

In this study we analyse and empirically clarify these issues, conducting a large set of rigorous experiments (Sect. IV), in many ways picking up the story where it last ended in [12] with the comparison of shallow encoders. We focus on methods to construct image representations, i.e. encoding functions ϕ\phi mapping an image II to a vector ϕ(I)∈Rd\phi(I)\in\mathbb{R}^{d} suitable for analysis with a linear classifier, such as an SVM. We consider three scenarios (Sect. II, Sect. III): shallow image representations, deep representations pre-trained on outside data, and deep representation pre-trained and then fine-tuned on the target dataset. As part of our tests, we explore generally-applicable best practices that are nevertheless more often found in combination with CNNs [13] or, alternatively, with shallow encoders [12], porting them with mutual benefit. These are (Sect. II): the use of colour information, feature normalisation, and, most importantly, the use of substantial data augmentation. We also determine scenario-specific best-practices, improving the ones in [12, 15] and others, including dimensionality reduction for deep features. Finally, we achieve performance competitive with the state of the art [16, 17] on PASCAL VOC classification using less additional training data and significantly simpler techniques. As in [12], the source code and models to reproduce all experiments in this paper is available on the project website.

References (32)

  • Visual categorization with bags of keypoints
  • Video Google: A text retrieval approach to object matching in videos
  • Improving the Fisher kernel for large-scale image classification
  • Backpropagation applied to handwritten zip code recognition
  • Imagenet: A large-scale hierarchical image database
  • The PASCAL Visual Object Classes (VOC) challenge
  • Decaf: A deep convolutional activation feature for generic visual recognition
  • Learning and Transferring Mid-Level Image Representations using Convolutional Neural Networks
  • CNN Features off-the-shelf: an Astounding Baseline for Recognition
  • OverFeat: Integrated Recognition, Localization and Detection using Convolutional Networks
  • Rich feature hierarchies for accurate object detection and semantic segmentation
  • The devil is in the details: an evaluation of recent feature encoding methods
  • ImageNet classification with deep convolutional neural networks
  • Transformation Pursuit for Image Classification
  • Towards good practice in large-scale learning for image classification
  • Weakly supervised object recognition with convolutional neural networks
  • CNN: Single-label to multi-label
  • Aggregating local images descriptors into compact codes
  • Visualizing and understanding convolutional networks
  • Caffe: An open source convolutional architecture for fast feature embedding
  • Learning generative visual models from few training examples: An incremental bayesian approach tested on 101 object categories
  • Caltech-256 object category dataset
  • Modeling the spatial layout of images beyond spatial pyramids
  • Three things everyone should know to improve object retrieval
  • Efficient additive kernels via explicit feature maps
  • Beyond Bags of Features: Spatial Pyramid Matching for Recognizing Natural Scene Categories
  • All about VLAD
  • On the burstiness of visual elements
  • Spatial pyramid pooling in deep convolutional networks for visual recognition
  • BING: Binarized normed gradients for objectness estimation at 300fps
  • Generalized hierarchical matching for subcategory aware object classification
  • Return of the devil in the details: delving deep into convolutional nets webpage