Object Detection based Deep Unsupervised Hashing

Rong-Cheng Tu, Xianling Mao, Bo-Si Feng, Bing-Bing Bian, Yu-shu Ying · OpenReview

TL;DR

The Object Detection based Deep Unsupervised Hashing (ODDUH) framework bridges the performance gap between supervised and unsupervised image retrieval. By using a pre-trained object detector to "mine" semantic pseudo-labels from unlabeled data, it allows a deep hashing network to learn high-quality, similarity-preserving binary codes that significantly outperform existing unsupervised methods.

What Problem Does This Paper Address?

In large-scale image retrieval, we need to represent images as compact binary "hash codes" to make searching efficient and low-cost.

The field is generally split into two camps: supervised hashing, which uses human-provided labels to learn semantic similarities, and unsupervised hashing, which relies on raw visual features (like pixel intensity or textures). While supervised methods are much more accurate, manual labeling is expensive and often unavailable for massive datasets. Conversely, traditional unsupervised methods often fail to recognize that two images are "similar" if they look visually different but contain the same objects (e.g., a blue car and a red car interior).

The authors aim to get the best of both worlds: the semantic richness of supervised learning without the need for manual labels.

Methods

The core innovation of ODDUH is a three-part pipeline that turns an unsupervised problem into a "pseudo-supervised" one:

  1. Mining Latent Semantic Information: The authors use a pre-trained object detection model (specifically YOLOv2) to scan the unlabeled dataset. The detector identifies objects and assigns them classes, which serve as pseudo-labels.
  2. Pair-wise Percentage Similarity: Since images often contain multiple objects, the authors define a novel similarity metric. Instead of a simple "similar/dissimilar" binary, they calculate the percentage of overlapping pseudo-labels between two images. This allows the model to understand that two images sharing three objects are "more similar" than two images sharing only one.
  3. Deep Hashing Network: A shared Convolutional Neural Network (CNN) based on the AlexNet architecture extracts features from the images. These features are fed into a hashing layer that learns to produce $k$-bit binary codes. The training process minimizes a loss function that aligns the Hamming distance of the hash codes with the mined "percentage similarity."
Figure 2: The ODDUH learning framework. The Mining Latent Semantic ’Label Information’ is a pre-trained object detection model. It is used to get the pseudo- labels. A shared CNN is implemented for learning image fearture representations in the Feature Learning part. In Hash Function Learning part, a pair-wise loss function with Percentage Similarity Matrix is minimized to get the optimal hash function

Datasets

The model was evaluated on two widely used public benchmarks:

  • Pascal VOC 2007: 9,963 multi-label images across 20 object classes.
  • BMVC 2009: 96,378 images from Flickr, associated with 20 semantic concepts.

For the object detection component, the authors used a YOLOv2 model pre-trained on the COCO 2014 dataset (81 classes). Crucially, the classes in the target datasets were subsets of these 81 classes, ensuring the detector could provide meaningful labels.

Key Insights and Ideas

  • Semantic vs. Visual Similarity: The paper highlights that visual features alone are often insufficient for retrieval. As shown in Figure 1, a classical unsupervised method might see a blue car and a car interior as "dissimilar" because their pixels are different. By detecting the "car" object in both, ODDUH correctly identifies them as semantically similar.
Figure 1: High-quality similarity-preserving hashing code can be produced by utilizing the pseudo-labels mined from images. The block (a) is the workflow of the existing unsupervised hashing methods which do not mine the pseudo- labels from images, it is hard for them to judge that the two images Ia and Ib are similar. However, in block (b), we use pseudo-labels mined from images to train hashing models which can easily judge the two image are similar.
  • Knowledge Transfer: The method effectively "transfers" the semantic knowledge embedded in a general-purpose object detector (trained on COCO) to guide the learning of a specific hashing task on a different dataset.
  • Robustness to Hyperparameters: The experiments showed that the model is not overly sensitive to its internal weighting parameters ($\alpha$ and $\beta$), making it easier to deploy in real-world scenarios without exhaustive tuning.

Key Results

ODDUH consistently outperformed both traditional and deep unsupervised hashing methods (such as ITQ, HashGAN, and UH_BDNN) across all metrics:

  • Pascal VOC 2007: At 48-bit code length, ODDUH achieved a 25.9% relative increase in Mean Average Precision (MAP) compared to the best deep unsupervised competitor (UH_BDNN).
  • BMVC 2009: The model showed an 8.9% relative increase in MAP over UH_BDNN.
  • Stability: Unlike many unsupervised methods where precision drops as the hash code length increases, ODDUH’s performance remained stable or even improved, indicating higher quality and more reliable binary representations.

Limitations and Future Work

  • Detector Dependency: The method's success relies heavily on the pre-trained object detector. If the target dataset contains objects the detector wasn't trained to recognize, the "mined" information will be poor.
  • Computational Cost: Running a full object detection pass on a massive dataset during the pre-processing stage adds significant computational overhead compared to simpler unsupervised methods.
  • Future Directions: The authors suggest that exploring different object detection architectures or more sophisticated ways to aggregate pseudo-labels could further improve performance.

Overall, ODDUH presents a clever way to leverage existing "AI knowledge" (pre-trained detectors) to solve the long-standing challenge of semantic gap in unsupervised image retrieval.

Summary updated

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