Deep Region Hashing for Generic Instance Search from Images

Jingkuan Song, Tao He, Lianli Gao, Xing Xu, Heng Tao Shen

Introduction

Instance Search (INS) is a fundamental task in computer vision that involves identifying specific objects or image patches within large-scale databases. Unlike general image retrieval, which focuses on global scene similarity, INS requires pinpointing target objects that may only occupy a small fraction of a database image. Traditional approaches often rely on a multi-stage pipeline: generating hundreds of object proposals per image, extracting high-dimensional Convolutional Neural Network (CNN) features for each, and performing exhaustive matching.

However, these methods face significant scalability challenges. Storing and comparing thousands of high-dimensional float vectors per image is computationally expensive and memory-intensive. Furthermore, the disjointed nature of region proposal and feature extraction often leads to suboptimal performance. To address these issues, this paper introduces Deep Region Hashing (DRH), an end-to-end framework designed for efficient and accurate instance search.

The Deep Region Hashing (DRH) Framework

The core innovation of DRH is the unification of feature extraction, region proposal, and hash code generation into a single neural network. This integration allows for shared computation and the generation of compact binary representations for both global images and local regions.

The architecture of the Deep Region Hashing Network and the associated search pipeline.

As illustrated in the architecture above, the DRH pipeline consists of several key components:

  1. Shared Convolutional Features: The entire image is passed through a CNN once to generate a shared feature map, avoiding the redundant processing of multiple image crops.
  2. Region Proposals: Regions of interest are identified directly from the shared feature map. The authors evaluated both a Region Proposal Network (RPN) and a sliding window approach, finding that the latter often performed better in specialized architectural domains.
  3. Region Hashing Layer: For every proposed region, a Region of Interest (RoI) pooling layer extracts a feature vector (e.g., 512 dimensions). A dedicated hashing layer then compresses this vector into a compact binary code (typically 1024 bits). The network is trained using an unsupervised loss function that minimizes quantization error while maximizing bit variance.

Coarse-to-Fine Search Strategy

To balance speed and accuracy, DRH employs a two-stage search pipeline. During inference, the system first utilizes the global image hash (gDRH) to rapidly filter the database, eliminating obvious mismatches in milliseconds. Subsequently, the top-ranked results are re-evaluated using local region hashes (lDRH). This fine-grained matching compares the query's hash to the stored hashes of local patches within the filtered images. The process is further enhanced by Query Expansion (QE) to improve retrieval recall.

Experimental Evaluation

The authors evaluated DRH on standard architectural landmark benchmarks, including Oxford 5k, Paris 6k, and their 100k-distractor counterparts (Oxford 105k and Paris 106k) to test scalability.

Key Results

  • State-of-the-Art Accuracy: DRH achieved a mean Average Precision (mAP) of 0.851 on Oxford 5k and 0.825 on Oxford 105k, significantly outperforming prior deep feature aggregation methods.
  • Efficiency Gains: The use of binary hash codes enabled a massive speedup. Filtering the Oxford 105k dataset took only 3 milliseconds, compared to 1078 milliseconds for a standard linear scan using continuous CNN features—a ~100x improvement in search efficiency.
  • Qualitative Performance: The system demonstrates high precision in identifying specific architectural features across varying viewpoints and lighting conditions.
Qualitative search results showing query instances (left) and the top retrieved regions (right) with red bounding boxes.

Discussion and Conclusion

Deep Region Hashing demonstrates that binary representations for local regions are highly effective for instance search. By compressing 512-dimensional float vectors into 1024-bit binary codes, the system retains sufficient semantic information for accurate matching while drastically reducing the computational footprint.

One notable finding was that simple sliding window strategies can outperform sophisticated RPNs when the RPN is pre-trained on generic datasets (like Pascal VOC) that differ significantly from the target domain (like architecture). This suggests that future work should focus on domain-specific region proposal training or fully unsupervised region learning. Overall, DRH provides a scalable and efficient solution for real-world, large-scale instance search applications.

Summary updated

BibTeX
@inproceedings{song2018deep,
  author = {Jingkuan Song and Tao He and Lianli Gao and Xing Xu and Heng Tao Shen},
  title = {{Deep Region Hashing for Generic Instance Search from Images}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2018},
  doi = {10.1609/aaai.v32i1.11277},
}
Figure