Where to Focus: Query Adaptive Matching for Instance Retrieval Using Convolutional Feature Maps

Jiewei Cao, Lingqiao Liu, Peng Wang, Zi Huang, Chunhua Shen, Heng Tao ShenarXiv 2016

Abstract

Instance retrieval—the task of finding a specific object within a large-scale database—is often hindered by background clutter. Standard global pooling methods aggregate entire image information into a single vector, causing the target object's signal to be drowned out by irrelevant noise. This paper introduces Query Adaptive Matching (QAM), a reranking algorithm that teaches retrieval systems "where to focus." By representing images as collections of flexible regions derived from convolutional feature maps and formulating the matching process as a constrained optimization problem, QAM adaptively identifies and merges relevant regions to maximize similarity with the query object.

Introduction

The "needle in a haystack" challenge of instance retrieval requires distinguishing specific objects (e.g., a particular landmark or product) from millions of candidates. While Convolutional Neural Networks (CNNs) have significantly advanced the field, traditional global descriptors are sensitive to "clutter" like trees, cars, or pedestrians. To address this, we propose a method to mathematically "crop" candidate images during the matching phase, focusing exclusively on the relevant object parts.

Methodology: Query Adaptive Matching

The QAM framework operates as a reranking pipeline following an initial coarse search. It leverages the internal representations of CNNs to build a flexible, part-based matching system.

Base Region Representation

Instead of a single global feature, each image is represented by a set of "base regions." A key insight is treating individual convolutional filters in late layers (e.g., VGG19's conv5_4) as object-part detectors. As shown in Figure 3, deeper layers capture increasingly semantic concepts, such as the circular structure of a thermometer, compared to the low-level textures captured by earlier layers.

Figure 3: Visualization of feature maps across different convolutional layers. Deeper layers (conv5_4) capture more semantic, object-specific parts compared to earlier layers.

The authors propose two primary methods for generating these regions:

  1. Feature Map Pooling (FMP): Utilizing the CNN's internal logic where feature maps act as natural masks for specific patterns.
  2. Overlapped Spatial Pyramid Pooling (OSPP): A geometric approach sampling regions at multiple scales.

Adaptive Merging via Optimization

The core innovation of QAM is the ability to dynamically merge these base regions to find the optimal match for a specific query. Rather than checking every possible combination, the search is formulated as a Quadratic Programming (QP) problem.

Figure 4: Illustration of adaptive merging. Base regions are weighted and summed to create a focused representation that maximizes similarity to the query.

By solving this constrained optimization, the system effectively "ignores" background clutter and "highlights" the object of interest. This "soft cropping" allows for irregular shapes, providing more precision than standard rectangular bounding boxes.

Experimental Evaluation

The proposed method was evaluated on several challenging benchmarks, including Oxford5k, Paris6k, Sculptures6k, and INSTRE. The latter is particularly difficult due to diverse objects in highly cluttered real-world environments.

Key Results

  • Performance: QAM consistently outperformed state-of-the-art methods like SPoC and R-MAC. On the difficult INSTRE dataset, it achieved a mean Average Precision (mAP) of 0.592.
  • Network Scalability: Integrating deeper architectures like ResNet152 further boosted performance, reaching 0.828 mAP on Oxford5k.
  • Efficiency: Despite the optimization step, reranking is efficient, taking approximately 14–16 ms per image. Reranking the top 100 results adds only about 1.6 seconds to the total query time.

Discussion and Conclusion

While QAM provides a significant boost in retrieval accuracy, it introduces a larger memory footprint (approx. 53GB for 1 million images) due to the need to store pre-computed base region features. Additionally, its effectiveness is bounded by the quality of the initial retrieval stage.

In conclusion, Query Adaptive Matching shifts the focus from global image signatures to flexible, query-specific region matching. By leveraging the semantic power of deep convolutional layers and efficient optimization, it provides a robust solution for instance retrieval in cluttered environments.

Summary updated

BibTeX
@misc{cao2016where,
  author = {Jiewei Cao and Lingqiao Liu and Peng Wang and Zi Huang and Chunhua Shen and Heng Tao Shen},
  title = {{Where to Focus: Query Adaptive Matching for Instance Retrieval Using Convolutional Feature Maps}},
  year = {2016},
  eprint = {1606.06811},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1606.06811},
}
Figure