Source-linked AI summary

Revisiting IM2GPS in the Deep Learning Era

Nam Vo, Nathan Jacobs, James Hays

arXiv:1705.04838v1cs.CV

TL;DR

Global image geolocalization must infer GPS coordinates from visual content across the entire Earth, where classification can lose real-valued spatial detail and memorization is difficult. The paper combines deep feature learning with Im2GPS-style retrieval and kernel density estimation, achieving 47.7% versus 37.6% for PlaNet at a 200km threshold. Classification-trained intermediate activations provide the strongest retrieval features, with state-of-the-art accuracy using substantially less data.

  • Problem

    Global geolocalization is difficult because a discrete classification grid is lossy and a single network may struggle to memorize visual appearances across the entire Earth.

  • Method

    The paper retrieves nearest neighbors using deep CNN features and estimates the query location from their GPS coordinates with weighted kernel density estimation.

  • Results

    47.7% accuracy versus 37.6% for PlaNet at a 200km threshold is reported on the Im2GPS test set.

  • Takeaways & Limitations

    Classification-trained intermediate activations are the best retrieval features, and the approach reaches state-of-the-art accuracy with as little as 5% of PlaNet’s training data.

  • Takeaways & Limitations

    Retrieval requires all reference features at test time, and indexing plus nearest-neighbor search adds non-negligible space and computation costs.

Abstract

from arXiv · show

Image geolocalization, inferring the geographic location of an image, is a challenging computer vision problem with many potential applications. The recent state-of-the-art approach to this problem is a deep image classification approach in which the world is spatially divided into cells and a deep network is trained to predict the correct cell for a given image. We propose to combine this approach with the original Im2GPS approach in which a query image is matched against a database of geotagged images and the location is inferred from the retrieved set. We estimate the geographic location of a query image by applying kernel density estimation to the locations of its nearest neighbors in the reference database. Interestingly, we find that the best features for our retrieval task are derived from networks trained with classification loss even though we do not use a classification approach at test time. Training with classification loss outperforms several deep feature learning methods (e.g. Siamese networks with contrastive of triplet loss) more typical for retrieval applications. Our simple approach achieves state-of-the-art geolocalization accuracy while also requiring significantly less training data.

1. Introduction

Image geolocalization seeks GPS coordinates for globally distributed query images without metadata, but direct matching and classification each face important limitations. The paper combines Im2GPS-style retrieval with deep features and reports a substantial accuracy improvement over PlaNet.

  • Problem: Image geolocalization predicts a query photo’s GPS coordinates from image content alone, with success defined by an application-specific distance threshold.Thresholds can range from street level to continent level.
  • Problem: Direct local-feature matching works when reference images overlap the query view and contain distinctive features, but often fails for ordinary images outside tourist destinations and dense urban areas.Such cases require higher-level scene and attribute understanding.
  • Prior approaches: Im2GPS retrieved nearest neighbors from 6 million geotagged images, with successful matches split roughly between instance-level and qualitative scene-attribute matches.Qualitative matches use shared geology, architecture, land cover, or related attributes.
  • Prior approaches: PlaNet reframed geolocalization as classification over discrete geographic regions and improved accuracy and speed over Im2GPS.Its forward-pass inference avoids nearest-neighbor search through millions of image features.
  • Research question: The paper questions whether classification is ideal because geographic discretization is lossy and a single network may struggle to memorize visual appearances across the entire Earth.The motivating question is whether deep networks can implicitly memorize the photographic features needed for instance matching.
  • Contribution: The proposed system combines Im2GPS retrieval with PlaNet-style deep feature learning and achieves 47.7% accuracy versus PlaNet’s 37.6% at a 200km threshold.Its best features come from intermediate activations of a classification-trained network rather than typical retrieval embeddings.

2. Related Work

Prior work spans deep scene understanding, learned image retrieval, and geographically constrained localization. At planet scale, Im2GPS and PlaNet are the closest precedents, while this paper combines their retrieval and deep-learning perspectives.

  • Deep learning context: Deep learning has been applied to location prediction and related scene-understanding tasks, including scene type, perceptual attributes, and geo-informative attributes.Examples include safety, liveliness, GDP, and elevation prediction.
  • Image retrieval: Learned deep representations support retrieval tasks such as product ranking, sketch retrieval, face recognition, cross-view localization, and scene retrieval.Distance metric learning commonly uses contrastive or triplet losses.
  • Study design: The paper examines six geographic discretizations ranging from 10 to 7011 regions and uses a VGG-16-based CNN with task-specific output and loss layers.Classification uses Softmax-CrossEntropy, while retrieval uses DML loss.
  • Image retrieval: This paper studies retrieval geolocalization beyond instance-level landmark benchmarks, where matched images are usually visually recognizable or geometrically verifiable.Those benchmarks often emphasize popular scenes or landmarks.
  • Localization scope: Many localization systems operate at limited spatial scales or on specialized imagery, including urban, landmark, street-view, or aerial-image settings.Cross-view methods embed ground and overhead images into a shared feature space for retrieval.
  • Global geolocalization: Global image geolocalization is less studied, with Im2GPS and PlaNet identified as the principal prior works targeting worldwide coverage.The paper builds on both approaches.

3. Image Geolocalization using Deep Learning

The paper evaluates classification and retrieval formulations using a shared deep architecture. Classification quantizes GPS coordinates into geographic cells, while retrieval indexes learned features and estimates locations from nearby reference images.

  • Architecture: Both geolocalization approaches use the same CNN architecture, based on a design previously used for landmark recognition.The study compares classification and retrieval settings with this shared backbone.
  • Geolocalization by classification: Classification converts GPS labels into discrete classes representing physical regions, then maps the predicted class back to a GPS coordinate.The geographic partition determines the prediction granularity.
  • Geolocalization by classification: An adaptive partitioning repeatedly splits cells along their larger geographic dimension until image-count or physical-area thresholds are reached.The resulting parameters control partition granularity.
  • Geolocalization by classification: The study tests six partitionings because finer cells improve spatial precision but must be balanced against training-data size, model capacity, and error tolerance.The partition choices are described as somewhat arbitrary rather than optimized directly.
  • Geolocalization by classification: Multiple classification losses preserve proximity information at different granularities and can combine coarse predictions into finer estimates.The corresponding tasks are correlated and may benefit one another.
  • Geolocalization by image retrieval: Retrieval extracts CNN features, indexes reference images, finds nearby feature-space neighbors, and predicts location from the top neighbor or a density estimate.The method assumes feature-space proximity corresponds to GPS-space proximity.
  • Geolocalization by image retrieval: Distance metric learning uses similarity supervision from class labels or GPS distance, but images sharing a location or region may depict dissimilar scenes or objects.This makes the available supervision weak for learning retrieval features.
  • Geolocalization by image retrieval: Weighted kernel density estimation combines the locations of the top k neighbors, weighting each by similarity, and selects the point with highest density.The method can approach nearest-neighbor prediction as k decreases, m increases, or σ decreases; validation selects m = 10 and k = 100.

4. Experiments

Experiments compare classification and retrieval-based geolocalization across partitionings, learned features, test sets, and reference databases. Retrieval with deep features performs strongly at fine scales, while classification and density estimation retain advantages at coarser scales.

  • Experimental setup: The evaluation uses Im2GPS3k and the more challenging YFCC4k test sets, with no photographer overlap between training and testing images.The reference databases include Im2GPS, YFCC, and their combined collection, while London-only output provides a simple baseline.
  • Experimental setup: The study trains single-loss and multi-loss classification networks, plus a triplet-ranking network, using a shared architecture and several learned feature extractors for retrieval.Classification models use either one partitioning or six simultaneous partitioning losses; retrieval experiments compare classification-derived and ranking-derived features, alongside NetVLAD and Siamac.
  • Comparing classification performance: Finer classification partitionings improve lower-threshold localization, with 7011C outperforming other classification outputs at street and city level.The 10-way partition is poor because the Earth is under-divided, whereas the finest partition gives better fine-grained localization.
  • Comparing classification performance: Coarse-scale accuracy favors coarser partitionings: 80C and 359C lead at continent level, while 359C and 1060C lead at country level.This indicates a trade-off between coarse- and fine-level accuracy when choosing the spatial partitioning.
  • Comparing retrieval performance: Nearest-neighbor retrieval with all five evaluated models outperforms classification at street and city level, while coarse partitioning classification retains an advantage at country and continent scale.Siamac is strongest at street level but weaker at coarse levels; L and M remain competitive despite classification training.

5. Conclusion

The study finds that simple combinations of classification and retrieval approaches can achieve state-of-the-art image geolocalization accuracy. It also identifies partitioning and supervision as important directions for future work.

  • The best-performing models efficiently localize images at coarse levels with classification and can use retrieval for instance matches when needed.
  • The study investigates deep learning methods for geolocalization across classification and retrieval settings without claiming technical novelty for individual components.
  • Future work should examine how to optimize geographic partitioning for particular error thresholds.
  • Future work should investigate whether better weakly supervised deep distance metric learning can improve geolocalization when GPS labels provide weak supervision.

1. Implementation

The implementation uses Caffe, ImageNet initialization, staged training, and standard optimization settings. A 1060-way classification model initializes subsequent networks to accelerate experimentation.

  • The models are trained in Caffe with learning rate 0.01, reductions to 0.00001, minibatches of 32, momentum 0.9, and weight decay 0.0005.
  • A VGG network pretrained on ImageNet initializes a 1060-way classifier trained for 500k iterations.
  • The trained 1060-way network initializes other models, which typically receive another 100k–200k iterations to speed experimentation.
  • The [M] model combines six losses with equal weight 1 for each loss.

2. Feature visualization

Feature visualizations show that GPS-supervised representations organize images by broad visual and location-related themes while retaining substantial appearance diversity. Additional figures illustrate activations and nearest-neighbor examples.

  • t-SNE visualization shows regions with consistent themes such as sports, people, beaches, animals, and landmark architecture.The feature learned from GPS supervision appears high-level and groups varied image appearances within regions.
  • The GPS-supervised feature contains substantial visual variation within each t-SNE region.
  • Some feature dimensions respond to popular landmarks or architecture, while others respond to scene types, visual features, or higher-level location semantics.
  • Table 3 reports performance on the Im2GPS3k test set.
  • Figure 11 presents qualitative nearest-neighbor examples with each query image in the left column and its nearest neighbors on the same row.
Loading 1705.04838v1…