arXiv(opens in a new tab)Computer ScienceNov 2015Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:1511.07247

NetVLAD: CNN Architecture for Weakly Supervised Place Recognition

Relja Arandjelović, Petr Gronát, A. Torii, T. Pajdla, Josef Sivic

Abstract

We tackle the problem of large scale visual place recognition, where the task is to quickly and accurately recognize the location of a given query photograph. We present the following three principal contributions. First, we develop a convolutional neural network (CNN) architecture that is trainable in an end-to-end manner directly for the place recognition task. The main component of this architecture, NetVLAD, is a new generalized VLAD layer, inspired by the “Vector of Locally Aggregated Descriptors” image representation commonly used in image retrieval. The layer is readily pluggable into any CNN architecture and amenable to training via backpropagation. Second, we develop a training procedure, based on a new weakly supervised ranking loss, to learn parameters of the architecture in an end-to-end manner from images depicting the same places over time downloaded from Google Street View Time Machine. Finally, we show that the proposed architecture significantly outperforms non-learnt image representations and off-the-shelf CNN descriptors on two challenging place recognition benchmarks, and improves over current state-of-the-art compact image representations on standard image retrieval benchmarks.

1 Introduction

Visual place recognition has received a significant amount of attention in the past years both in computer vision [66, 35, 10, 64, 65, 24, 9, 81, 4, 80, 63] and robotics communities [15, 16, 46, 44, 75] motivated by, e.g., applications in autonomous driving [46], augmented reality [47] or geo-localizing archival imagery [5].

The place recognition problem, however, still remains extremely challenging. How can we recognize the same street-corner in the entire city or on the scale of the entire country despite the fact it can be captured in different illuminations or change its appearance over time? The fundamental scientific question is what is the appropriate representation of a place that is rich enough to distinguish similarly looking places yet compact to represent entire cities or countries.

The place recognition problem has been traditionally cast as an instance retrieval task, where the query image location is estimated using the locations of the most visually similar images obtained by querying a large geotagged database [66, 10, 35, 81, 80, 4]. Each database image is represented using local invariant features [83] such as SIFT [43] that are aggregated into a single vector representation for the entire image such as bag-of-visual-words [74, 53], VLAD [3, 29] or Fisher vector [52, 31]. The resulting representation is then usually compressed and efficiently indexed [74, 28]. The image database can be further augmented by 3D structure that enables recovery of accurate camera pose [40, 63, 64].

Figure

(a) Mobile phone query

Figure

(b) Retrieved image of same place

Figure 1: Our trained NetVLAD descriptor correctly recognizes the location (b) of the query photograph (a) despite the large amount of clutter (people, cars), changes in viewpoint and completely different illumination (night vs daytime). Please see appendix C for more examples.

In the last few years convolutional neural networks (CNNs) [38, 39] have emerged as powerful image representations for various category-level recognition tasks such as object classification [37, 49, 73, 77], scene recognition [91] or object detection [21]. The basic principles of CNNs are known from 80’s [38, 39] and the recent successes are a combination of advances in GPU-based computation power together with large labelled image datasets [37]. While it has been shown that the trained representations are, to some extent, transferable between recognition tasks [19, 21, 49, 69, 89], a direct application of CNN representations trained for object classification [37] as black-box descriptor extractors has so far yielded limited improvements in performance on instance-level recognition tasks [6, 7, 22, 60, 62]. In this work we investigate whether this gap in performance can be bridged by CNN representations developed and trained directly for place recognition. This requires addressing the following three main challenges. First, what is a good CNN architecture for place recognition? Second, how to gather sufficient amount of annotated data for the training? Third, how can we train the developed architecture in an end-to-end manner tailored for the place recognition task? To address these challenges we bring the following three innovations.

First, building on the lessons learnt from the current well performing hand-engineered object retrieval and place recognition pipelines [2, 3, 25, 80] we develop a convolutional neural network architecture for place recognition that aggregates mid-level (conv5) convolutional features extracted from the entire image into a compact single vector representation amenable to efficient indexing. To achieve this, we design a new trainable generalized VLAD layer, NetVLAD, inspired by the Vector of Locally Aggregated Descriptors (VLAD) representation [29] that has shown excellent performance in image retrieval and place recognition. The layer is readily pluggable into any CNN architecture and amenable to training via backpropagation. The resulting aggregated representation is then compressed using Principal Component Analysis (PCA) to obtain the final compact descriptor of the image.

Second, to train the architecture for place recognition, we gather a large dataset of multiple panoramic images depicting the same place from different viewpoints over time from the Google Street View Time Machine. Such data is available for vast areas of the world, but provides only weak form of supervision: we know the two panoramas are captured at approximately similar positions based on their (noisy) GPS but we don’t know which parts of the panoramas depict the same parts of the scene.

Third, we develop a learning procedure for place recognition that learns parameters of the architecture in an end-to-end manner tailored for the place recognition task from the weakly labelled Time Machine imagery. The resulting representation is robust to changes in viewpoint and lighting conditions, while simultaneously learns to focus on the relevant parts of the image such as the building façades and the skyline, while ignoring confusing elements such as cars and people that may occur at many different places.

We show that the proposed architecture significantly outperforms non-learnt image representations and off-the-shelf CNN descriptors on two challenging place recognition benchmarks, and improves over current state-of-the-art compact image representations on standard image retrieval benchmarks.

References (86)

  • Three things everyone should know to improve object retrieval
  • All about VLAD. In Proc
  • DisLocation: Scalable descriptor distinctiveness for location recognition
  • Painting-to-3D model alignment via discriminative visual elements
  • Factors of transferability from a generic ConvNet representation (opens arXiv in a new tab)
  • Aggregating local deep features for image retrieval
  • Neural codes for image retrieval
  • Graph-based discriminative learning for location recognition
  • City-scale landmark identification on mobile devices
  • Total recall II: Query expansion revisited
  • Total recall: Automatic query expansion with a generative feature model for object retrieval
  • Deep filter banks for texture recognition and segmentation
  • Visual categorization with bags of keypoints
  • FAB-MAP: Probabilistic localization and mapping in the space of appearance
  • Highly scalable appearance-only SLAM - FAB-MAP 2.0
  • Gosselin, H. Jégou, and P. Pérez
  • Li, K. Li, and L. Fei-Fei
  • DeCAF: A Deep Convolutional Activation Feature for Generic Visual Recognition
  • A review of multi-instance learning assumptions
  • Rich feature hierarchies for accurate object detection and semantic segmentation
  • Multi-scale orderless pooling of deep convolutional activation features
  • Leveraging category-level labels for instance-level image retrieval
  • Learning and calibrating per-location classifiers for visual place recognition
  • Negative evidences and co-occurrences in image retrieval: the benefit of PCA and whitening
  • Hamming embedding and weak geometric consistency for large scale image search
  • On the burstiness of visual elements
  • Product quantization for nearest neighbor search
  • Aggregating local descriptors into a compact image representation
  • A contextual dissimilarity measure for accurate and efficient image search
  • Aggregating local images descriptors into compact codes
  • Triangulation embedding and democratic aggregation for image search
  • Deep visual-semantic alignments for generating image descriptions
  • PoseNet: A convolutional network for real-time 6-DOF camera relocalization
  • Avoiding confusing features in place recognition
  • Deep multi-instance transfer learning (opens arXiv in a new tab)
  • ImageNet classification with deep convolutional neural networks
  • Backpropagation applied to handwritten zip code recognition
  • Gradient-based learning applied to document recognition
  • Worldwide pose estimation using 3D point clouds
  • Towards robust night and day place recognition using visible and thermal imaging
  • Shady dealings: Robust, long-term visual localisation using illumination invariance
  • Scalable 6-DOF localization on mobile devices
  • Learning a fine vocabulary
  • Learning and transferring mid-level image representations using convolutional neural networks
  • Local convolutional features with unsupervised training for image retrieval
  • Fisher kernels on visual vocabularies for image categorization
  • 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
  • Descriptor learning for efficient retrieval
  • Quantized kernel learning for feature matching
  • Learning to rank bag-of-word histograms for large-scale object retrieval
  • Hello neighbor: accurate object retrieval with k-reciprocal nearest neighbors
  • Query adaptive similarity for large scale object retrieval
  • CNN Features Off-the-Shelf: An Astounding Baseline for Recognition
  • A baseline for visual instance retrieval with deep convolutional networks (opens arXiv in a new tab)
  • A baseline for visual instance retrieval with deep convolutional networks
  • Hyperpoints and fine vocabularies for large-scale location recognition
  • Fast image-based localization using direct 2D–to–3D matching
  • Image retrieval for image-based localization revisited
  • City-scale location recognition
  • FaceNet: A unified embedding for face recognition and clustering
  • Learning a distance metric from relative comparisons
  • OverFeat: Integrated Recognition, Localization and Detection using Convolutional Networks
  • Fracking deep convolutional image descriptors (opens arXiv in a new tab)
  • Descriptor learning using convex optimisation
  • Deep Fisher networks for large-scale image classification
  • Very deep convolutional networks for large-scale image recognition
  • Video Google: A text retrieval approach to object matching in videos
  • Place recognition with ConvNet landmarks: Viewpoint-robust, condition-robust, training-free
  • Deep fisher kernels – end to end learning of the fisher kernel GMM parameters
  • Going deeper with convolutions
  • To aggregate or not to aggregate: Selective match kernels for image search
  • Visual query expansion with or without geometry: refining local descriptors by feature aggregation
  • 24/7 place recognition by view synthesis
  • Visual place recognition with repetitive structures
  • Better matching with fewer features: The selection of useful features in large database recognition problems
  • Local invariant feature detectors: A survey
  • Matconvnet – convolutional neural networks for matlab
  • Multiple instance boosting for object detection
  • Learning fine-grained image similarity with deep ranking
  • Distance metric learning for large margin nearest neighbor classification
  • Picking the best DAISY
  • Visualizing and understanding convolutional networks
  • Exemplar SVMs as visual feature encoders
  • Learning deep features for scene recognition using places database