Google Landmarks Dataset v2 -- A Large-Scale Benchmark for Instance-Level Recognition and Retrieval

Tobias Weyand, Andre Araujo, Jack Sim, Bingyi Cao

Abstract

While image retrieval and instance recognition techniques are progressing rapidly, there is a need for challenging datasets to accurately measure their performance while posing novel challenges relevant for practical applications. We introduce the Google Landmarks Dataset v2 (GLDv2), a new benchmark for large-scale, fine-grained instance recognition and image retrieval. GLDv2 is the largest such dataset to date, including over 5M images and 200k distinct instance labels. Its test set consists of 118k images with ground truth annotations for both retrieval and recognition tasks, involving over 800 hours of human annotation. The dataset features an extremely long-tailed class distribution, a large fraction of out-of-domain test photos, and large intra-class variability. We provide baseline results and demonstrate the dataset's suitability for transfer learning.

Introduction

General image classification has seen massive progress, but instance-level recognition—identifying specific entities like the Eiffel Tower—remains a significant challenge. Existing benchmarks like Oxford5k or Paris6k are over a decade old and limited to single cities, failing to reflect the "messiness" of real-world applications. These older datasets do not account for out-of-domain queries (e.g., a user photographing a pet) or the "long-tail" distribution where most landmarks have very few available photos. GLDv2 addresses these gaps by providing a massive, diverse, and stable benchmark.

Methods

GLDv2 was constructed by mining Wikimedia Commons and using the Google Knowledge Graph to create a fine-grained taxonomy of landmarks. To ensure rigorous evaluation, the authors performed over 800 hours of human re-annotation on the test set to correct errors inherent in crowdsourced data.

The GLDv2 data collection pipeline and human annotation interface.

Evaluation metrics include Micro Average Precision (GAP) for recognition, which penalizes models for hallucinating landmarks on out-of-domain noise, and mAP@100 for retrieval. Baselines were established using ResNet-101 backbones with ArcFace loss and DELG (Deep Local and Global features).

The GLDv2 Dataset and the Long Tail

GLDv2 contains over 5 million images across 200,000 classes, including a "clean" subset of 1.6 million images for efficient training. A defining characteristic is its extreme long-tail distribution: 57% of classes have 10 or fewer images.

The extreme long-tail distribution of images per class in GLDv2.

This distribution forces researchers to move beyond "big data" brute force toward few-shot learning and robust representation. Furthermore, the test set mimics real-world search engines: only 1% of images are landmarks, while 99% are out-of-domain distractors.

Key Insights

  • Stability: Unlike web-scraped datasets that shrink over time due to broken links, GLDv2 uses Creative Commons and Public Domain images from Wikimedia, ensuring a stable benchmark.
  • Transferability: Training on GLDv2 provides a significant boost (up to 10% mAP) when evaluating on independent landmark datasets, proving its value for pre-training general instance recognition models.
  • Handling Noise: The high volume of out-of-domain query images requires models to be "confident enough to say nothing" when a landmark is not present.

Results

A ResNet-101 model trained on the "clean" subset achieved 28.56% GAP on recognition and 25.57% mAP on retrieval. In an associated Kaggle competition, top-performing teams reached 69.39% GAP using complex ensembles and local feature re-ranking. Human re-annotation increased the number of ground-truth recognition labels by 72%, highlighting the depth of information recovered from raw crowdsourced data.

Limitations and Future Work

The dataset exhibits geographic bias due to its reliance on Wikimedia Commons, with Europe and North America being significantly better represented. Future work includes developing image-level ground truth for retrieval to account for specific overlapping views and exploring unsupervised or semi-supervised learning on the vast amount of weakly-labeled data.

Summary updated

BibTeX
@inproceedings{weyand2020google,
  author = {Tobias Weyand and Andre Araujo and Jack Sim and Bingyi Cao},
  title = {{Google Landmarks Dataset v2 -- A Large-Scale Benchmark for Instance-Level Recognition and Retrieval}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2020},
  url = {https://openreview.net/forum?id=bJJ1EsdgxEy},
}
Figure