arXiv(opens in a new tab)Computer ScienceMar 2014Cited by 10 papers on PaperVantage

Manuscript Offprint

arXiv:1403.6382

CNN Features Off-the-Shelf: An Astounding Baseline for Recognition

A. Razavian, Hossein Azizpour, Josephine Sullivan, S. Carlsson

Abstract

Recent results indicate that the generic descriptors extracted from the convolutional neural networks are very powerful. This paper adds to the mounting evidence that this is indeed the case. We report on a series of experiments conducted for different recognition tasks using the publicly available code and model of the OverFeat network which was trained to perform object classification on ILSVRC13. We use features extracted from the OverFeat network as a generic image representation to tackle the diverse range of recognition tasks of object image classification, scene recognition, fine grained recognition, attribute detection and image retrieval applied to a diverse set of datasets. We selected these tasks and datasets as they gradually move further away from the original task and data the OverFeat network was trained to solve. Astonishingly, we report consistent superior results compared to the highly tuned state-of-the-art systems in all the visual classification tasks on various datasets. For instance retrieval it consistently outperforms low memory footprint methods except for sculptures dataset. The results are achieved using a linear SVM classifier (or L2L2 distance in case of retrieval) applied to a feature representation of size 4096 extracted from a layer in the net. The representations are further modified using simple augmentation techniques e.g. jittering. The results strongly suggest that features obtained from deep learning with convolutional nets should be the primary candidate in most visual recognition tasks.

1 Introduction

Figure 1: top) CNN representation replaces pipelines of s.o.a methods and achieve better results. e.g. DPD [50]. bottom) Augmented CNN representation with linear SVM consistently outperforms s.o.a. on multiple tasks. Specialized CNN refers to other works which specifically designed the CNN for their task

“Deep learning. How well do you think it would work for your computer vision problem?” Most likely this question has been posed in your group’s coffee room. And in response someone has quoted recent success stories [29, 15, 10] and someone else professed skepticism. You may have left the coffee room slightly dejected thinking “Pity I have neither the time, GPU programming skills nor large amount of labelled data to train my own network to quickly find out the answer”. But when the convolutional neural network OverFeat [38] was recently made publicly available it allowed for some experimentation. In particular we wondered now, not whether one could train a deep network specifically for a given task, but if the features extracted by a deep network - one carefully trained on the diverse ImageNet database to perform the specific task of image classification - could be exploited for a wide variety of vision tasks. We now relate our discussions and general findings because as a computer vision researcher you’ve probably had the same questions:

Prof: First off has anybody else investigated this issue?

Student: Well it turns out Donahue et al. [10], Zeiler and Fergus [48] and Oquab et al. [29] have suggested that generic features can be extracted from large CNNs and provided some initial evidence to support this claim. But they have only considered a small number of visual recognition tasks. It would be fun to more thoroughly investigate how powerful these CNN features are. How should we start?

Prof: The simplest thing we could try is to extract an image feature vector from the OverFeat network and combine this with a simple linear classifier. The feature vector could just be the responses, with the image as input, from one of the network’s final layers. For which vision tasks do you think this approach would be effective?

Student: Definitely image classification. Several vision groups have already produced a big jump in performance from the previous sate-of-the-art methods on Pascal VOC. But maybe fine-tuning the network was necessary for the jump? I’m going to try it on Pascal VOC and just to make it a little bit trickier the MIT scene dataset.

Answer: OverFeat does a very good job even without fine-tuning (section 3.2 for details).

Prof: Okay so that result confirmed previous findings and is perhaps not so surprising. We asked the OverFeat features to solve a problem that they were trained to solve. And ImageNet is more-or-less a superset of Pascal VOC. Though I’m quite impressed by the indoor scene dataset result. What about a less amenable problem?

Student: I know fine-grained classification. Here we want to distinguish between sub-categories of a category such as the different species of flowers. Do you think the more generic OverFeat features have sufficient representational power to pick up the potentially subtle differences between very similar classes?

Answer: It worked great on a standard bird and flower database. In its most simplistic form it didn’t beat the latest best performing methods but it is a much cleaner solution with ample scope for improvement. Actually, adopting a set of simple data augmentation techniques (still with linear SVM) beats the best performing methods. Impressive! (Section 3.4 for details.)

Prof: Next challenge attribute detection? Let’s see if the OverFeat features have encoded something about the semantic properties of people and objects.

Student: Do you think the global CNN features extracted from the person’s bounding box can cope with the articulations and occlusions present in the H3D dataset. All the best methods do some sort of part alignment before classification and during training.

Answer: Surprisingly the CNN features on average beat poselets and a deformable part model for the person attributes labelled in the H3D dataset. Wow, how did they do that?! They also work extremely well on the object attribute dataset. Maybe these OverFeat features do indeed encode attribute information? (Details in section 3.5.)

Prof: Can we push things even further? Is there a task OverFeat features should struggle with compared to more established computer vision systems? Maybe instance retrieval. This task drove the development of the SIFT and VLAD descriptors and the bag-of-visual-words approach followed swiftly afterwards. Surely these highly optimized engineered vectors and mid-level features should win hands down over the generic features?

Student: I don’t think CNN features have a chance if we start comparing to methods that also incorporate 3D geometric constraints. Let’s focus on descriptor performance. Do new school descriptors beat old school descriptors in the old school descriptors’ backyard?

Answer: Very convincing. Ignoring systems that impose 3D geometry constraints the CNN features are very competitive on building and holiday datasets (section 4). Furthermore, doing standard instance retrieval feature processing (i.e. PCA, whitening, renormalization) it shows superior performance compared to low memory footprint methods on all retrieval benchmarks except for the sculptures dataset.

Student: The take home message from all these results?

Prof: It’s all about the features! SIFT and HOG descriptors produced big performance gains a decade ago and now deep convolutional features are providing a similar breakthrough for recognition. Thus, applying the well-established computer vision procedures on CNN representations should potentially push the reported results even further. In any case, if you develop any new algorithm for a recognition task then it must be compared against the strong baseline of generic deep features + simple classifier.

References (47)

  • Efficient object detection and segmentation for fine-grained recognition
  • Smooth object retrieval using a bag of boundaries
  • All about VLAD. In CVPR, 2013
  • Poof: Part-based one-vs.-one features for fine-grained categorization, face verification, and attribute estimation
  • Describing people: A poselet-based approach to attribute classification
  • Bicos: A bi-level co-segmentation method for image classification
  • Hierarchical matching with side information for image classification
  • Mid-level visual element discovery as discriminative mode seeking
  • Decaf: A deep convolutional activation feature for generic visual recognition
  • Subcategory-aware object classification
  • The PASCAL Visual Object Classes Challenge 2012 (VOC2012) Results
  • Describing objects by their attributes
  • Mining mid-level features for image classification
  • Rich Feature Hierarchies for Accurate Object Detection and Semantic Segmentation
  • Multi-scale orderless pooling of deep convolutional activation features
  • Asymmetric hamming embedding: taking the best of our bits for large scale image search
  • Negative evidences and co-occurences in image retrieval: The benefit of pca and whitening
  • Hamming embedding and weak geometric consistency for large scale image search
  • Aggregating local image descriptors into compact codes
  • Blocks that shout: Distinctive parts for scene classification
  • Imagenet classification with deep convolutional neural networks
  • Attribute-based classification for zero-shot visual object categorization
  • Harvesting mid-level visual concepts from large-scale internet images
  • Learning a fine vocabulary
  • Scalable recognition with a vocabulary tree
  • Learning and transferring mid-level image representations using convolutional neural networks
  • Scene recognition and weakly supervised object localization with deformable part-based models
  • Reconfigurable models for scene recognition
  • Cats and dogs
  • Large-scale image retrieval with compressed fisher vectors
  • Object retrieval with large vocabularies and fast spatial matching
  • Lost in quantization: Improving particular object retrieval in large scale image databases
  • Recognizing indoor scenes
  • A database for fine grained activity detection of cooking activities
  • Overfeat: Integrated recognition, localization and detection using convolutional networks
  • Contextualizing object detection and classification
  • Learning discriminative part detectors for image classification and cosegmentation
  • Deepface: Closing the gap to human-level performance in face verification
  • To aggregate or not to aggregate: Selective match kernels for image search
  • Deeppose: Human pose estimation via deep neural networks
  • Sparse representations and distance learning for attribute based category recognition
  • The Caltech-UCSD Birds-200-2011 Dataset
  • A discriminative latent model of object classes and attributes
  • Visualizing and Understanding Convolutional Networks
  • Pose pooling kernels for sub-category recognition
  • Deformable part descriptors for fine-grained recognition and attribute prediction
  • Panda: Pose aligned networks for deep attribute modeling