Introduction
In the field of image retrieval, research often prioritizes "metric learning"—the development of sophisticated loss functions or complex neural architectures to refine image representations. While effective on small, curated datasets like Oxford5k, these methods frequently encounter challenges in real-world, large-scale environments characterized by millions of images and significant data noise.
This paper addresses the gap between academic metric learning and practical competition-winning strategies. The authors argue that "tricks" applied during pre- and post-processing are as critical as the core model itself. By systematically benchmarking these techniques, they achieved an 8th-place finish in the 2019 Google Landmark Retrieval Challenge, demonstrating a performance boost of up to 10.24 mAP over their baseline.
Methodology: A Three-Phase Pipeline
The authors decompose the image retrieval process into three distinct stages: pre-processing, representation learning, and post-processing.
1. Pre-processing: Automated Data Cleaning
Large-scale datasets like the Google Landmark Dataset (GLD) are notoriously noisy, containing non-landmark images such as documents or portraits. To combat this without manual intervention, the authors employed DBSCAN (Density-Based Spatial Clustering of Applications with Noise). This algorithm automatically identifies and removes outliers, ensuring the model trains on high-quality, relevant data.
2. Learning Representations
Rather than inventing new architectures, the study utilizes robust baselines like SE-ResNet and SE-ResNeXt. The focus is on optimizing pooling layers (SPoC, MAC, GeM) and loss functions (combinations of Cross-entropy, Triplet, N-pair, and Angular loss).
3. Post-processing: The "Winning" Tricks
Post-processing is where the most significant performance gains are often found. The authors evaluated several key techniques including feature ensembling, Database Augmentation (DBA), Query Expansion (QE), and PCA Whitening ($PCA_w$). For the final retrieval, they implemented graph-based search via Diffusion (DFS) and spatial verification using local matching (DELF + RANSAC).
Key Insights
- Data Quality Over Model Complexity: A primary finding was that cleaning training data with DBSCAN provided a more substantial baseline improvement than simply increasing model complexity. A simple model on clean data often outperforms a complex one on noisy data.
- The Impact of DBA and QE: These post-processing steps were the most influential, making features more robust and helping to "fill in" the search space manifold.
- Resolution Plateaus: While increasing input resolution (e.g., to 640px) improves mAP, the benefits eventually plateau and can even decrease if the resolution exceeds what the pre-trained weights can handle.
- Ensemble Diversity: The most effective ensembles weren't necessarily composed of the "best" individual models, but rather a diverse set of models using different pooling methods or loss objectives to capture varied feature characteristics.
Conclusion
The systematic application of these "tricks" resulted in a cumulative gain of 10.24 mAP@100 over the baseline. While highly effective, the authors note that some techniques, such as Diffusion and RANSAC-based reranking, are computationally intensive, presenting a trade-off between accuracy and real-time latency. Future work remains in optimizing these methods for production environments and exploring more robust loss functions that are less sensitive to remaining data noise.
Summary updated