Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

NetVLAD: CNN architecture for weakly supervised place recognition

NetVLAD trains a CNN end to end for place recognition

  • Problem Place recognition with CNN features borrowed from object classification struggles to separate similar-looking places. Those networks were never trained for Euclidean comparison on this task.
  • Method NetVLAD is a trainable pooling layer that replaces hard VLAD assignment with soft assignment, so gradients can flow. It is trained end to end with a weakly supervised ranking loss on Street View Time Machine panoramas.
  • Results Trained AlexNet with NetVLAD reached 81.0% recall@1 on Pitts250k-test, against 55.0% for off-the-shelf AlexNet with standard VLAD.

Why place recognition needs learnt descriptors

Place recognition is treated here as image retrieval: a query photograph is matched against a large geotagged database, and the locations of the closest database images serve as the estimate for the query. Database descriptors have usually been built from local features such as SIFT, pooled into one vector per image with bag-of-visual-words or VLAD, and then compressed for efficient indexing.

CNN features taken from object classification have helped instance retrieval only to a limited extent, and in that work the networks were used as fixed black-box extractors rather than trained on the retrieval target.

The study therefore asks whether a CNN trained directly for place recognition can close that gap, which raises three questions: which architecture to use, how to gather enough labelled data, and how to train the whole model end to end for the task. The answer has three parts that follow these questions: a pooling layer that aggregates convolutional features, a source of weak supervision, and a ranking loss that uses that supervision.

Retrieval framework and the Euclidean setting

The representation is a function fθ that maps an image to a fixed-size vector. Database vectors are computed offline and the query vector is computed at query time. Search ranks database images by the Euclidean distance between the query vector and each database vector. Because these vectors come from fθ, the learnt parameters θ also shape that distance.

The authors keep the distance fixed as Euclidean and learn the feature map itself, instead of learning a distance function.

NetVLAD: a differentiable VLAD pooling

VLAD keeps, for each cluster, the sum of residuals between the assigned descriptors and the cluster centre, instead of keeping counts as bag-of-visual-words does. The hard assignment makes the output discontinuous in the cluster centres, which blocks gradients, so replacing it is the central technical change.

Each descriptor is spread over all K clusters with weights that come from a softmax over negative scaled squared distances, so nearby clusters receive more weight than distant ones. \[ \bar a_k(x_i)=\frac{e^{-\alpha\|x_i-c_k\|^2}}{\sum_{k'}e^{-\alpha\|x_i-c_{k'}\|^2}} \] As α grows, the weights approach the hard VLAD assignment, and the authors note that the original VLAD is recovered in the limit α→+∞.

Expanding the squared norms makes the shared term e^{-α‖x_i‖²} cancel, so the weight becomes a softmax of a linear function of x_i, with w_k = 2αc_k and b_k = -α‖c_k‖². \[ V(j,k)=\sum_{i=1}^{N}\frac{e^{w_k^{T}x_i+b_k}}{\sum_{k'}e^{w_{k'}^{T}x_i+b_{k'}}}\,(x_i(j)-c_k(j)) \]

Because w_k, b_k and c_k are three separate parameter sets, the layer can move the soft assignment and the residual anchor independently, whereas VLAD has only the centres. In practice the soft assignment is a 1×1 convolution followed by a softmax, and the residual aggregation is a separate step, so the layer can be built from standard CNN operations, with the output a (K×D)×1 descriptor after normalization.

As a baseline, Max pooling takes the maximum of each D-dimensional feature over the H×W spatial locations and L2-normalizes the result.

Learning from Time Machine panoramas

Time Machine panoramas give many captures of the same places at different times and seasons, but each carries only a noisy GPS tag. A GPS tag does not say which parts of two scenes correspond. Two nearby perspective images may face different directions or be blocked by a corner, so GPS can only mark potential positives and definite negatives.

For each query, the best-matching potential positive is the one with the smallest distance, which resolves the ambiguity among the candidate positives. \[ p_{q i^*}=\arg\min_{p_{qi}} d_\theta(q,p_{qi}) \]

The loss is related to the usual triplet loss but adapted to the weak setting, with a formulation similar to multiple instance learning. Training uses Stochastic Gradient Descent. Hard negatives are mined from a pool of 1000 randomly sampled negatives together with the 10 hardest negatives from the previous epoch, and the cached representations are recomputed every 500 to 1000 training queries.

Datasets and evaluation protocol

Pitts250k contains 250k database images and 24k test queries, divided geographically into three parts of around 83k database images and 8k queries each. Pitts30k is a smaller geographically disjoint subset with 10k database images in each of its train, validation and test sets, used to speed up training. Tokyo 24/7 contains 76k database images and 315 query images taken with mobile phones at daytime, sunset and night, and its training and validation data come from a separately collected TokyoTM set.

Both base architectures, AlexNet and VGG-16, are cropped at conv5 before ReLU. NetVLAD uses K = 64 clusters, giving 16k and 32k-D representations for the two bases.

Place recognition results

On Pitts250k-test, AlexNet with trained NetVLAD reaches 81.0% recall@1, while off-the-shelf AlexNet with standard VLAD reaches 55.0%, which the authors report as a relative improvement of 47%. Trained representations outperform off-the-shelf networks by a large margin on both benchmarks, which the authors read as evidence that networks trained for object or scene classification are not necessarily suited to place recognition.

The authors attribute this to off-the-shelf conv5 activations not being trained to be comparable under Euclidean distance.

The trained VGG-16 NetVLAD representation with whitening is reported to outperform RootSIFT+VLAD+whitening and the method of Torii et al. on the benchmarks evaluated. Torii et al. was evaluated only on Tokyo 24/7, because the method relies on depth data that the other datasets lack. The lower-dimensional whitened version performs similarly to the full-size vector, with the reduction to 4096-D done by PCA with whitening and L2-normalization.

On Tokyo 24/7, 128-D NetVLAD reaches 42.9% recall@1, against 38.4% for 512-D Max pooling, which the authors describe as similar performance at four times fewer dimensions. Figure 8 in the appendix gives the same comparison across dimensions, with the 128-D NetVLAD performing comparably to the 4× larger 512-D Max pooling on Tokyo 24/7.

Ablations: Time Machine data and trained layers

To test the role of Time Machine data, the authors sampled the training queries from the same time as the database images, so no cross-time pairs are used. On Pitts30k-val with AlexNet fmax, recall@1 is 33.5% for the off-the-shelf network, 38.7% when trained without Time Machine data, and 68.5% when trained with it. Without the cross-time data the network does not generalize well, and the authors note that it learns to treat cars as important cues because the same parked cars recur across images of a place.

In the partial training study on AlexNet, training only the NetVLAD layer reaches 80.5 recall@1 on Pitts30k-val, against 54.5 for off-the-shelf fVLAD. Backpropagating further down to conv5, conv4, conv3 or conv2 gives recall@1 between 84.1 and 85.5 for fVLAD, and full training down to conv1 gives 84.2. The largest improvements come from training the NetVLAD layer, and the authors report some overfitting when training below conv2.

The authors use an occlusion-based heatmap, adapted from Zeiler and Fergus, to inspect what each network responds to. Off-the-shelf AlexNet focuses on categories it was trained to recognize, such as cars, and on shapes like circular blobs, while the Places205 network responds little to occlusion. The authors describe the trained network as ignoring cars and people and focusing on building facades and skylines.

Image retrieval results

The best trained network, VGG-16 with NetVLAD and whitening down to 256-D, was trained on Pittsburgh and then applied to these benchmarks without further training. It reaches mAP of 63.5% on Oxford 5k, 73.5% on Paris 6k and 79.9% on Holidays. On Oxford 5k (crop) the 256-D representation reaches 63.5 mAP against 53.1 reported for Babenko and Lempitsky, which the authors describe as a relative improvement of 20% on Oxford 5k (crop).

On Holidays (orig) at 256-D, the trained representation scores 79.9 while the off-the-shelf network scores 82.1. The authors attribute this to the dataset being less building-oriented than the training data, which comes only from urban areas.

Limitations

The VGG-16 network was only trained down to the conv5 layer, because its depth and GPU memory use made full training impossible. Training on more diverse data than Pittsburgh streets may improve results on Holidays, which the authors leave untested. Additional tuning and jittering could further improve performance, since the authors still observed some overfitting.

Weak supervision is ambiguous: the potential positives may not contain a true match, and the authors count far-away images showing the same object as negatives. The Tokyo 24/7 benchmark has only 315 query images, which limits how finely its scores can be compared. The authors state that NetVLAD and the weakly supervised ranking loss are generic building blocks applicable beyond place recognition.

The experiments reported here cover place recognition and image retrieval only.

Paper info

Authors
Relja Arandjelović, Petr Gronat, Akihiko Torii, Tomas Pajdla, Josef Sivic
Venue
arXiv · Preprint
First published
2015-11-23
Added
2026-11-12
Updated
2016-5-2
Version
v3
arXiv
1511.07247
Category
cs.CV · cs.LG
Original paper terms
arXiv non-exclusive 1.0
What we show
Paper info and commentary

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

Quote from the paper

Relja Arandjelović, Petr Gronat, Akihiko Torii, Tomas Pajdla, Josef Sivic (2015). NetVLAD: CNN architecture for weakly supervised place recognition. arXiv:1511.07247v3. https://arxiv.org/abs/1511.07247v3

BibTeX
@misc{arandjelovi2015netvlad,
  title = {{NetVLAD: CNN architecture for weakly supervised place recognition}},
  author = {Relja Arandjelović and Petr Gronat and Akihiko Torii and Tomas Pajdla and Josef Sivic},
  year = {2015},
  eprint = {1511.07247},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1511.07247v3}
}

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up