Deep Joint Semantic-Embedding Hashing

Ning Li, Chao Li, Cheng Deng, Xianglong Liu, Xinbo Gao

Abstract

Deep hashing is essential for large-scale image retrieval, yet many current methods underutilize the rich semantic information present in dataset labels. We present Deep Joint Semantic-Embedding Hashing (DSEH), a novel framework that addresses data imbalance in single-label datasets and oversimplification in multi-label contexts. DSEH employs a dual-network architecture—LabNet for labels and ImgNet for images—to learn a shared semantic and Hamming space. Through an alternating training strategy, the model aligns visual features with complex semantic embeddings, resulting in significantly more discriminative hash codes. Experimental results on ImageNet, NUS-WIDE, and MS-COCO demonstrate that DSEH consistently outperforms existing state-of-the-art hashing techniques.

Introduction

In the era of big data, hashing has emerged as the gold standard for image retrieval, compressing high-dimensional visual data into compact binary strings. This allows for rapid search and reduced memory overhead. However, two primary challenges persist in deep hashing:

  1. Data Imbalance: In single-label datasets like ImageNet, the scarcity of similar pairs relative to dissimilar ones hinders effective similarity learning.
  2. Semantic Oversimplification: Multi-label datasets (e.g., MS-COCO) contain nuanced relationships where images may share partial labels. Most methods reduce this to a binary "similar/dissimilar" state, losing valuable semantic depth.

DSEH addresses these by treating labels as high-dimensional data rather than simple binary indicators, extracting rich features through a dedicated label network.

The DSEH Framework

The core of DSEH is a joint architecture consisting of two end-to-end deep networks that map inputs into a common space.

The DSEH architecture featuring LabNet and ImgNet.

Dual-Network Architecture

  • LabNet (Label Network): This network processes label vectors, projecting them into a Common Semantic Space (continuous) and a Common Hamming Space (binary-like). It utilizes pairwise loss, cross-entropy loss, and quantization error to maintain a similarity-preserving structure.
  • ImgNet (Image Network): A standard CNN (e.g., CNN-F) that maps raw images into the same semantic and Hamming spaces defined by LabNet.

Alternating Training Strategy

To ensure perfect alignment between visual features and semantic labels, DSEH uses an iterative "handshake" training process:

  1. Train LabNet until convergence.
  2. Use LabNet’s output to supervise the training of ImgNet.
  3. Use ImgNet’s learned features to refine LabNet. This cycle repeats, grounding the final binary codes in a continuous, meaningful semantic space.

Experimental Evaluation

The model was rigorously tested on three benchmarks:

  • NUS-WIDE: 270,000 images with 81 concepts (multi-label).
  • ImageNet (ILSVRC 2015): A 100-category subset to test performance on imbalanced single-label data.
  • MS-COCO: 80 categories with complex multi-label relationships.

Key Results

DSEH consistently surpassed state-of-the-art methods like HashNet, DPSH, and DHN across various bit lengths.

Precision curves on the ImageNet dataset demonstrating DSEH's superior performance.

The most notable improvement occurred on the ImageNet dataset, where DSEH achieved a 34.50% increase in Mean Average Precision (MAP) over HashNet. On multi-label datasets like MS-COCO, the framework's ability to capture complex similarity relationships proved superior to traditional binary similarity approaches. Ablation studies further confirmed that both the dual-level supervision (semantic and Hamming) and the alternating training strategy are critical to these performance gains.

Conclusion and Future Work

DSEH demonstrates that treating labels as rich high-dimensional data significantly enhances the discriminative power of learned hash codes. By bridging visual and semantic spaces, it effectively handles both data imbalance and multi-label complexity.

Future research may focus on reducing the computational overhead of the dual-network training and optimizing hyperparameter selection. Additionally, exploring compressed label representations could improve scalability for datasets with extremely large label sets.

Summary updated

BibTeX
@inproceedings{li2018deep,
  author = {Ning Li and Chao Li and Cheng Deng and Xianglong Liu and Xinbo Gao},
  title = {{Deep Joint Semantic-Embedding Hashing}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2018},
  doi = {10.24963/ijcai.2018/332},
}
Figure