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

Tobias Weyand, André Araujo, Bingyi Cao, Jack Sim

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 in the domain of human-made and natural landmarks. 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. The dataset features an extremely long-tailed class distribution, a large fraction of out-of-domain test photos, and large intra-class variability.

Introduction

General image classification has seen significant progress, but instance-level recognition—identifying a specific object like the "Mona Lisa" rather than just a "painting"—remains a major challenge. Previous landmark datasets were often limited in scale, restricted to specific cities, or lacked "negative" examples. In real-world applications, systems must handle "out-of-domain" queries (e.g., photos of food or pets) without producing false positives. Furthermore, many existing benchmarks suffer from "link rot" due to reliance on external URLs. GLDv2 addresses these issues by providing a massive, stable dataset sourced from Wikimedia Commons.

Methods

The construction of GLDv2 involved a multi-stage pipeline:

  1. Entity Mining: Landmark-related entities were identified using the Google Knowledge Graph.
  2. Wikimedia Mapping: These entities were linked to Wikimedia categories to retrieve associated images.
  3. Visual Coherence Filtering: To ensure data quality, a pipeline using global (ResNet-101) and local (DELF) descriptors was employed to remove outliers and ensure images within a class represent the same landmark.
  4. Human Annotation: Over 800 hours were dedicated to human verification of the test set. Annotators performed binary verification ("is this the same landmark?") to efficiently validate the 200k classes.

Dataset Characteristics

GLDv2 is comprised of several subsets, including a full training set of 4.1M images across 203k landmarks and a curated "GLDv2-clean" subset of 1.6M images. A defining characteristic of the dataset is its extreme long-tail distribution.

The long-tail distribution of GLDv2, showing the number of images per class across 200k categories.

As shown in the figure above, approximately 57% of classes contain 10 or fewer images. This distribution forces models to move beyond data-hungry deep learning paradigms toward effective few-shot learning. Additionally, the test set is designed for robustness: 99% of the 118k query images are "non-landmarks," requiring models to maintain a low false-positive rate.

Experimental Results

The authors established baselines using state-of-the-art methods like DELG (DEep Local and Global features).

  • Recognition: The best baseline achieved a 56.35% μAP.
  • Retrieval: The baseline reached 22.30% mAP@100.
  • Transfer Learning: GLDv2 proves to be a superior pre-training source. Models trained on GLDv2-clean outperformed those trained on GLDv1, showing a 5% mAP improvement on the Revisited Oxford "Hard" benchmark.

Discussion and Limitations

While GLDv2 is the most comprehensive landmark dataset available, it possesses certain limitations. Currently, retrieval ground truth is class-level rather than image-level, meaning any image of a specific landmark is a valid match for a query of that same landmark, regardless of the specific viewpoint or detail.

Distribution of images and population across continents, highlighting the geographic bias toward Europe.

Furthermore, there is a notable geographic bias. As illustrated in the figure above, the dataset is heavily weighted toward regions with active Wikimedia communities, particularly Europe and North America. Future iterations aim to increase geographic diversity and provide more granular image-level matching annotations.

The dataset and code are available at https://github.com/cvdfoundation/google-landmark

Summary updated

BibTeX
@inproceedings{weyand2020google,
  author = {Tobias Weyand and André Araujo and Bingyi Cao and Jack Sim},
  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