Object Detection based Deep Unsupervised Hashing

Rong-Cheng Tu, Xianling Mao, Bo-Si Feng, Shu-ying Yu · OpenReview

Abstract

ODDUH (Object Detection based Deep Unsupervised Hashing) bridges the gap between unsupervised and supervised image retrieval by leveraging pre-trained object detectors to "mine" semantic labels from unlabeled datasets. By treating detected objects as pseudo-labels, the model learns high-quality, similarity-preserving binary codes that significantly outperform existing unsupervised methods. Experimental results on Pascal VOC 2007 and BMVC 2009 benchmarks demonstrate substantial improvements in retrieval precision and semantic consistency.

Introduction

In the domain of large-scale image retrieval, hashing is the standard solution for transforming complex images into compact binary codes. This enables rapid comparison and significant storage savings. However, a fundamental challenge remains: supervised hashing requires expensive manual labeling, while unsupervised hashing often fails to capture semantic relationships (e.g., recognizing that a blue sedan and a red SUV are both "cars") because it relies on low-level visual features.

Comparison between classical unsupervised hashing and the proposed pseudo-labeling approach.

The authors propose ODDUH to address this gap, utilizing object detectors as a source of latent semantic information to guide the learning process without manual intervention.

Methods

The ODDUH framework integrates object detection with deep hashing through three main components:

  1. Semantic Mining: The model uses a pre-trained object detector (YOLOv2) to scan unlabeled images. The detected object classes serve as pseudo-labels, effectively transferring knowledge from a supervised source to the target dataset.
  2. Pair-wise Percentage Similarity: To handle multi-label images, the authors define a similarity metric based on the overlap of detected object classes. This "percentage similarity" provides a more nuanced training signal than binary (yes/no) similarity.
  3. Deep Feature Learning and Hashing: A Convolutional Neural Network (CNN-F) extracts image features, which are then mapped to binary codes via a hashing layer. The system is optimized using a loss function that aligns hash code distances with the mined semantic similarities while minimizing quantization errors.
The ODDUH framework architecture, illustrating the pipeline from semantic mining to hash function learning.

Key Results and Discussion

ODDUH was evaluated against both traditional and deep unsupervised hashing methods on two major benchmarks:

  • Pascal VOC 2007: ODDUH demonstrated a 25.3% relative increase in Mean Average Precision (MAP) over the strongest traditional competitor (ITQ+CNN).
  • BMVC 2009: The model achieved an 8.9% relative increase in MAP and a 15.0% increase in Average Cumulative Gains (ACG) compared to state-of-the-art deep unsupervised methods like UH-BDNN.

A key insight is that ODDUH's performance remains stable or improves as code length increases (from 12 to 48 bits), indicating that the model learns robust semantic representations rather than just memorizing low-level patterns.

Conclusion

ODDUH successfully demonstrates that pre-trained object detectors can act as effective "teachers" for unsupervised hashing tasks. While the method's performance is tied to the detector's vocabulary and involves higher training-time computational costs, the resulting retrieval efficiency and accuracy represent a significant step forward for label-free image search. Future research may explore more advanced detectors or different backbone architectures to further refine the pseudo-labeling process.

Summary updated

BibTeX
@inproceedings{tu2019object,
  author = {Rong-Cheng Tu and Xianling Mao and Bo-Si Feng and Shu-ying Yu},
  title = {{Object Detection based Deep Unsupervised Hashing}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2019},
  doi = {10.24963/ijcai.2019/500},
}
Figure