Detect-To-Retrieve: Efficient Regional Aggregation for Image Search

Marvin Teichmann, Andre Araujo, Menglong Zhu, Jack Sim

Abstract

Retrieving object instances among cluttered scenes efficiently requires compact yet comprehensive regional image representations. Intuitively, object semantics can help build the index that focuses on the most relevant regions. However, due to the lack of bounding-box datasets for objects of interest among retrieval benchmarks, most recent work on regional representations has focused on either uniform or class-agnostic region selection. In this paper, we first fill the void by providing a new dataset of landmark bounding boxes, based on the Google Landmarks dataset, that includes 94k images with manually curated boxes from 15k unique landmarks. Then, we demonstrate how a trained landmark detector, using our new dataset, can be leveraged to index image regions and improve retrieval accuracy while being much more efficient than existing regional methods. In addition, we introduce a novel regional aggregated selective match kernel (R-ASMK) to effectively combine information from detected regions into an improved holistic image representation. R-ASMK boosts image retrieval accuracy substantially with no dimensionality increase, while even outperforming systems that index image regions independently. Our complete image retrieval system improves upon the previous state-of-the-art by significant margins on the Revisited Oxford and Paris datasets. Code and data will be released.

Introduction

Image retrieval—identifying specific objects or buildings in massive databases—is notoriously difficult when the target is small or surrounded by "clutter" such as pedestrians, vehicles, or foliage. Standard systems often rely on a single global representation for an entire image, which can be easily "polluted" by background noise, reducing retrieval precision.

To address this, researchers have previously explored regional search: dividing an image into many overlapping boxes and indexing each one separately. While this improves accuracy, it creates a significant memory burden, often requiring 20-30 descriptors per image. Furthermore, most regional methods rely on "blind" grids or generic object proposals that lack semantic knowledge of landmarks. This paper introduces the "Detect-to-Retrieve" (D2R) framework, which utilizes a trained landmark detector to focus on the most relevant regions and a novel aggregation method to maintain efficiency.

The Detect-to-Retrieve Framework

Landmark-Specific Detection

Instead of using a generic grid, the D2R framework employs a dedicated landmark detector (trained using Faster R-CNN and SSD architectures) to identify the most promising regions in an image. This ensures the system only indexes areas likely to contain the object of interest, typically reducing the number of regions to just 3-4 per image.

Figure 1: Landmark-specific detection identifies relevant regions (R1, R2, R3) within a cluttered scene, focusing the search on the object of interest.

Regional Aggregated Selective Match Kernel (R-ASMK)

The core innovation of the D2R system is the Regional Aggregated Selective Match Kernel (R-ASMK). Instead of storing every detected region independently in the database, R-ASMK aggregates the local features from all detected regions into a single, compact holistic representation.

Figure 5: The R-ASMK pipeline aggregates local features from detected regions (R1, R2, R3) through a VLAD-like structure into a single, efficient holistic descriptor.

Standard aggregation methods (like VLAD) can fail when multiple regions are present because they dilute the signal. R-ASMK overcomes this by performing per-visual-word normalization and sum-pooling, which effectively re-weights local features. This emphasizes visual patterns appearing in the detected landmark regions while suppressing background noise—all without increasing the final descriptor's size. Furthermore, by aggregating residuals before applying selectivity, R-ASMK avoids the "zero residual" problem where visual words are downweighted if they don't appear in every region, preserving the discriminative power of the local features.

Experimental Results

The D2R system was evaluated on the Revisited Oxford (ROxf) and Revisited Paris (RPar) datasets, as well as the R1M distractor set containing 1 million images.

  • Accuracy: On the challenging ROxf-Hard dataset, the system improved mean Average Precision (mAP) by 9.3% over previous state-of-the-art methods.
  • Efficiency: R-ASMK achieved these gains with 4x to 8x less memory than regional search methods that index boxes independently.
  • Scalability: The performance gains remained robust even when searching through the 1-million-image distractor set.
  • Dataset Contribution: The authors introduced the Google Landmark Boxes (GLB) dataset, containing 94,000 images with manually curated bounding boxes for 15,000 unique landmarks, filling a major gap in retrieval research.

Conclusion

The Detect-to-Retrieve framework demonstrates that semantic landmark detection combined with efficient regional aggregation significantly outperforms traditional global and regional retrieval methods. By using R-ASMK, the system achieves state-of-the-art accuracy while maintaining the storage efficiency of a single-descriptor-per-image system. Future work may focus on optimizing regional handling for query images and integrating these techniques with query expansion to further push the boundaries of large-scale retrieval.

Summary updated

BibTeX
@inproceedings{teichmann2019detect,
  author = {Marvin Teichmann and Andre Araujo and Menglong Zhu and Jack Sim},
  title = {{Detect-To-Retrieve: Efficient Regional Aggregation for Image Search}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2019},
  url = {https://openreview.net/forum?id=hzrAxhoJ0L6},
}
Figure