arXiv(opens in a new tab)Computer ScienceMay 2015Cited by 3 papers on PaperVantage

Manuscript Offprint

arXiv:1505.05192

Unsupervised Visual Representation Learning by Context Prediction

Carl Doersch, A. Gupta, Alexei A. Efros

Abstract

This work explores the use of spatial context as a source of free and plentiful supervisory signal for training a rich visual representation. Given only a large, unlabeled image collection, we extract random pairs of patches from each image and train a convolutional neural net to predict the position of the second patch relative to the first. We argue that doing well on this task requires the model to learn to recognize objects and their parts. We demonstrate that the feature representation learned using this within-image context indeed captures visual similarity across images. For example, this representation allows us to perform unsupervised visual discovery of objects like cats, people, and even birds from the Pascal VOC 2011 detection dataset. Furthermore, we show that the learned ConvNet can be used in the R-CNN framework [21] and provides a significant boost over a randomly-initialized ConvNet, resulting in state-of-the-art performance among algorithms which use only Pascal-provided training set annotations.

1 Introduction

Recently, new computer vision methods have leveraged large datasets of millions of labeled examples to learn rich, high-performance visual representations [32]. Yet efforts to scale these methods to truly Internet-scale datasets (i.e. hundreds of billions of images) are hampered by the sheer expense of the human annotation required. A natural way to address this difficulty would be to employ unsupervised learning, which aims to use data without any annotation. Unfortunately, despite several decades of sustained effort, unsupervised methods have not yet been shown to extract useful information from large collections of full-sized, real images. After all, without labels, it is not even clear what should be represented. How can one write an objective function to encourage a representation to capture, for example, objects, if none of the objects are labeled?

Figure

Figure 1: Our task for learning patch representations involves randomly sampling a patch (blue) and then one of eight possible neighbors (red). Can you guess the spatial configuration for the two pairs of patches? Note that the task is much easier once you have recognized the object!

Answer key: Q1: Bottom right Q2: Top center

Interestingly, in the text domain, context has proven to be a powerful source of automatic supervisory signal for learning representations [3, 41, 9, 40]. Given a large text corpus, the idea is to train a model that maps each word to a feature vector, such that it is easy to predict the words in the context (i.e., a few words before and/or after) given the vector. This converts an apparently unsupervised problem (finding a good similarity metric between words) into a “self-supervised” one: learning a function from a given word to the words surrounding it. Here the context prediction task is just a “pretext” to force the model to learn a good word embedding, which, in turn, has been shown to be useful in a number of real tasks, such as semantic word similarity [40].

Our paper aims to provide a similar “self-supervised” formulation for image data: a supervised task involving predicting the context for a patch. Our task is illustrated in Figures 1 and 2. We sample random pairs of patches in one of eight spatial configurations, and present each pair to a machine learner, providing no information about the patches’ original position within the image. The algorithm must then guess the position of one patch relative to the other. Our underlying hypothesis is that doing well on this task requires understanding scenes and objects, i.e. a good visual representation for this task will need to extract objects and their parts in order to reason about their relative spatial location. “Objects,” after all, consist of multiple parts that can be detected independently of one another, and which occur in a specific spatial configuration (if there is no specific configuration of the parts, then it is “stuff” [1]). We present a ConvNet-based approach to learn a visual representation from this task. We demonstrate that the resulting visual representation is good for both object detection, providing a significant boost on PASCAL VOC 2007 compared to learning from scratch, as well as for unsupervised object discovery / visual data mining. This means, surprisingly, that our representation generalizes across images, despite being trained using an objective function that operates on a single image at a time. That is, instance-level supervision appears to improve performance on category-level tasks.

References (53)

  • Analyzing the performance of multilayer neural networks for object recognition
  • A framework for learning predictive structures from multiple tasks and unlabeled data
  • Deep generative stochastic networks trainable by backprop
  • Treatise on optics
  • Geometric min-hashing: Finding a (thick) needle in a haystack
  • Total recall: Automatic query expansion with a generative feature model for object retrieval
  • Segmentation driven object detection with Fisher vectors
  • A unified architecture for natural language processing: Deep neural networks with multitask learning
  • Li, K. Li, and L. Fei-Fei
  • Mid-level visual element discovery as discriminative mode seeking
  • Context as supervisory signal: Discovering objects with predictable context
  • What makes Paris look like Paris? SIGGRAPH, 2012
  • Who killed the directed model? In CVPR, 2008
  • The pascal visual object classes (voc) challenge
  • clustering by composition
  • Object detection with discriminatively trained part-based models
  • Data-driven 3D primitives for single image understanding
  • Rich feature hierarchies for accurate object detection and semantic segmentation
  • Unsupervised learning of categories from sets of partially matching image features
  • Image webs: Computing and exploiting connectivity in image collections
  • wake-sleep
  • Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shift
  • Caffe: Convolutional architecture for fast feature embedding
  • Blocks that shout: Distinctive parts for scene classification
  • Unsupervised modeling of object categories using link analysis techniques
  • Auto-encoding variational bayes
  • Data-dependent initializations of convolutional neural networks (opens arXiv in a new tab)
  • Imagenet classification with deep convolutional neural networks
  • The neural autoregressive distribution estimator
  • Efficient sparse coding algorithms
  • Foreground focus: Unsupervised learning from partially matching images
  • Harvesting mid-level visual concepts from large-scale internet images
  • Fully Convolutional Networks for Semantic Segmentation
  • Beyond categories: The visual memex model for reasoning about object relationships
  • Distributed representations of words and phrases and their compositionality
  • A discriminative language model with pseudo-negative samples
  • Emergence of simple-cell receptive field properties by learning a sparse code for natural images
  • From a set of shapes to object discovery
  • World-scale mining of objects and events from community photo collections
  • Dataset fingerprints: Exploring image collections through data mining
  • Stochastic backpropagation and approximate inference in deep generative models
  • Using multiple segmentations to discover objects and their extent in image collections
  • Deep boltzmann machines
  • Very deep convolutional networks for large-scale image recognition
  • Unsupervised discovery of mid-level discriminative patches
  • Discovering objects and their location in images
  • Learning discriminative part detectors for image classification and cosegmentation
  • Generative image modeling using spatial lstms
  • B. Thomee, D. A. Shamma, G. Friedland, B. Elizalde, K. Ni, D. Poland, D. Borth, and L.-J. Li. The new data and new challenges in multimedia research. arXiv preprint arXiv:1503.01817, 2015. (opens arXiv in a new tab)
  • Unbiased look at dataset bias
  • Unsupervised learning of visual representations using videos
  • Regionlets for generic object detection
  • Slow feature analysis:unsupervised learning of invariances