Abstract
This paper presents the 3rd place solution for the Google Landmark Recognition 2021 Competition. The proposed approach utilizes a diverse ensemble of backbones—including EfficientNet, Swin Transformer, and CvT—to extract robust 512-dimensional embeddings. To handle the high volume of non-landmark "distractor" images and class imbalance, the team implemented a novel re-ranking pipeline. This pipeline adjusts raw retrieval scores by incorporating classification logits and subtracting a distractor score derived from known non-landmark images. The final system achieved a Global Average Precision (GAP) of 0.48962 on the private leaderboard.
Introduction
The Google Landmark Recognition challenge involves identifying specific landmarks in images "in the wild." This task is complicated by several factors:
- Intra-class heterogeneity: Landmarks look different based on angle, lighting, and weather.
- Massive class imbalance: Training data ranges from thousands of images for popular landmarks to just a few for obscure ones.
- Distractors: Real-world datasets contain many non-landmark images (e.g., selfies, pets) that models must not misclassify.
- Fairness: The 2021 competition emphasized fair worldwide representation, requiring models to generalize beyond Western-centric data.
Methodology
The solution consists of two primary components: diverse feature extraction and a specialized re-ranking pipeline.
1. Diverse Feature Extraction
The team employed an ensemble of various architectures to capture complementary features. The authors found that combining fundamentally different architectures yielded much better results than ensembling similar models. The backbones used included:
- CNN-based: EfficientNet (B5, B6, B7, V2)
- Transformer-based: Swin-L-384
- Hybrid: CvT-W24-384
These models were trained using ArcFace loss to generate discriminative 512-dimensional embeddings. Training was conducted in three progressive stages, gradually increasing image resolution and dataset size.
2. Re-ranking Pipeline
The core innovation lies in the scoring mechanism. Instead of relying solely on cosine similarity (the "raw retrieval score"), the team adjusted the scores for the top 7 retrieved images using a multi-step formula.
As shown in Figure 1, the final retrieval score is calculated as:
Final Score = Raw retrieval score + Classification logit - Distractor score
- Classification Logit Adjustment: Averaged classification logits from the best models are added to the retrieval score. This acts as a secondary verification step, helping when retrieval alone fails due to class imbalance.
- Distractor Score Penalization: The team used 11k non-landmark images from the 2019 competition test set to calculate "distractor scores." If a test image matches a training image with a high distractor score, its final confidence is penalized.
- Top 1 Classification Aggregation: The raw Top-1 classification prediction is injected directly into the candidate pool, serving as a natural penalty against non-landmarks.
Datasets
- GLDv2 (Google Landmarks Dataset v2): The primary training corpus (4.1M images, ~203k landmarks).
- GLDv2c & GLDv2x: Cleaned and intermediate subsets used for progressive training stages.
- 2019 Competition Test Set: Used to identify non-landmark images for distractor score calculation.
- 2021 Competition Test Set: The hidden evaluation set curated for fair worldwide representation.
Results and Discussion
The team achieved 3rd place in the competition with a final ensembled model score of 0.51829 (public) and 0.48962 (private) GAP.
Key insights from the competition include:
- Architectural Diversity: The self-attention mechanisms in Swin-L and CvT provided significant complementary benefits to the local feature extraction of EfficientNets. The Transformer-based Swin-L-384 achieved the best standalone retrieval performance (0.375 private GAP).
- Modeling the "Negative" Space: In open-world recognition, identifying what is not a landmark is as critical as identifying what is. Explicitly penalizing distractors effectively filtered out false positives.
Limitations
A primary limitation is computational overhead. The final solution requires inference through six heavy backbone models and a multi-step re-ranking pipeline. While effective for competition rankings, this complexity poses challenges for real-time, on-device production environments.
Summary updated