Object Detection based Deep Unsupervised Hashing

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

Abstract

Unsupervised image hashing often struggles with the "semantic gap," where visually distinct but semantically related images are assigned distant hash codes. This paper introduces ODDUH (Object Detection based Deep Unsupervised Hashing), a framework that bridges this gap by using pre-trained object detectors to automatically generate pseudo-labels for unlabeled datasets. By employing a robust percentage similarity metric to handle detector noise, ODDUH transforms unsupervised hashing into a pseudo-supervised task. Experimental results on Pascal VOC 2007 and BMVC 2009 demonstrate that ODDUH significantly outperforms existing unsupervised methods, achieving state-of-the-art retrieval accuracy.

Introduction: The Semantic Gap in Image Retrieval

Large-scale image retrieval relies on hashing to map high-dimensional data into compact binary codes. While supervised methods excel by using human-annotated labels to preserve semantic relationships, they are difficult to scale. Conversely, unsupervised methods typically rely on low-level visual features (e.g., color, texture), which often fail to capture high-level concepts. For instance, two images of cars—one a close-up of an interior and one a wide shot of the exterior—might be visually dissimilar but semantically identical. ODDUH addresses this by asking: Can we use existing AI models to automatically label data, effectively turning an unsupervised problem into a supervised one?

Methodology

The ODDUH framework consists of three integrated components:

1. Semantic Label Mining

The process begins by running a pre-trained object detector (e.g., YOLOv2) over the unlabeled training set. The detector identifies various objects within each image, assigning "pseudo-labels" that represent the semantic content.

2. Pair-wise Percentage Similarity

Recognizing that object detectors are not 100% accurate, the authors avoid treating pseudo-labels as absolute ground truth. Instead, they introduce a percentage similarity metric. This metric calculates the degree of overlap between the sets of objects detected in two images. This soft-labeling approach allows the model to learn that images sharing multiple objects are "more similar" than those sharing only one, providing a noise-tolerant training signal.

3. Deep Hashing Network

The core of the system is a shared Convolutional Neural Network (CNN) that extracts features from input images. These features are processed through a hashing layer to generate $k$-bit binary codes. The network is optimized using a loss function that aligns the Hamming distance of the generated codes with the mined percentage similarity.

The ODDUH architecture, illustrating the flow from object detection to hash function learning.

Experimental Results

ODDUH was evaluated against several baselines, including ITQ, UH-BDNN, and HashGAN, on the Pascal VOC 2007 and BMVC 2009 datasets.

Precision curves comparing ODDUH against various unsupervised hashing baselines on Pascal VOC 2007 and BMVC 2009.

As shown in the performance curves, ODDUH consistently outperforms both traditional and deep unsupervised hashing methods across all bit lengths. On the Pascal VOC 2007 dataset, ODDUH achieved a 26.8% relative increase in Mean Average Precision (MAP) compared to the best traditional competitor (ITQ+CNN) at 48 bits. On the larger BMVC 2009 dataset, it showed an 8.3% relative increase in MAP over the deep unsupervised method UH-BDNN.

Key Insights

  • Knowledge Transfer: The success of ODDUH highlights the potential of using "off-the-shelf" knowledge from general-purpose models (like COCO-trained detectors) to guide specialized tasks.
  • Robustness to Noise: The transition from binary similarity to percentage similarity is critical for handling the inherent uncertainty of pseudo-labels.
  • Feature Power: Deep features learned directly from pixels remain significantly more effective than hand-crafted descriptors, even in unsupervised settings.

Limitations and Future Directions

While effective, ODDUH is dependent on the domain coverage of the pre-trained detector. If the target images contain objects outside the detector's training set, performance may degrade. Additionally, the pre-processing step of running a detector on massive datasets introduces computational overhead. Future research could explore iterative "self-training" loops where the hashing model and the detector are jointly refined.

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