Deep Asymmetric Hashing with Dual Semantic Regression and Class Structure Quantization

Jianglin Lu, Hailing Wang, Jie Zhou, Mengfan Yan, Jiajun Wen

Introduction

Large-scale image retrieval relies on transforming high-dimensional image data into compact binary hash codes to enable efficient search and storage. However, conventional deep hashing methods often struggle with a "semantic gap"—the discrepancy between low-level visual features and high-level semantic meanings. This gap typically stems from two primary issues: class-unrelated quantization, where individual samples are quantized in isolation, and limited semantic supervision, which fails to adequately separate different categories in the feature space.

The DSAH Framework

To address these challenges, the authors propose Deep Semantic Asymmetric Hashing (DSAH). This framework utilizes an asymmetric architecture consisting of two deep neural networks that can either share weights or operate independently. The core of DSAH lies in its novel objective functions designed to preserve semantic relationships more effectively than standard log-likelihood or one-to-one quantization losses.

The overall architecture of the DSAH framework, highlighting the dual networks and the integration of various loss functions.

Key Innovations

Class Structure Quantization (CSQ)

A primary contribution of this work is Class Structure Quantization. Traditional methods focus on minimizing the distance between a single image's continuous embedding and its corresponding binary code. In contrast, CSQ minimizes the distance between a hash code and the embeddings of all samples belonging to the same class. This approach ensures that the quantization process is informed by the broader class structure, leading to more robust and discriminative binary representations.

Comparison between standard one-to-one quantization (left) and the proposed class-structured quantization (right), where embeddings are aligned with class-level binary codes.

Dual Semantic Regression (DSR)

DSAH introduces Dual Semantic Regression to provide finer control over the latent space. By employing two distinct regression matrices, the model explicitly optimizes for:

  1. Intra-class compactness: Ensuring images within the same category are mapped close together.
  2. Inter-class separability: Pushing embeddings of different categories further apart.

This dual-label mechanism, combined with a pairwise similarity-preserving loss based on an affinity graph, allows the network to learn a feature space that is highly optimized for retrieval tasks.

Experimental Evaluation

The researchers evaluated DSAH on three standard benchmarks: CIFAR-10, Fashion-MNIST, and the multi-label NUS-WIDE dataset. The results demonstrate a significant performance leap over existing state-of-the-art (SOTA) methods such as DPSH, ADSH, and DAGH.

For instance, on the CIFAR-10 dataset using 12-bit hash codes, DSAH achieved a Mean Average Precision (MAP) of 94.6%, representing a substantial improvement over the previous SOTA of approximately 87.5%. Visualizations using t-SNE further confirmed that DSAH produces tighter and more distinct clusters for different image categories, facilitating more accurate retrieval.

Conclusion

DSAH represents a significant advancement in deep hashing by shifting the focus from individual sample quantization to class-aware structural optimization. By integrating Dual Semantic Regression and Class Structure Quantization, the framework effectively bridges the semantic gap, providing a powerful tool for high-speed, large-scale image search. Future work may explore replacing linear projections with non-linear layers to further enhance the model's ability to capture complex semantic hierarchies.

Summary updated

BibTeX
@article{lu2022deep,
  author = {Jianglin Lu and Hailing Wang and Jie Zhou and Mengfan Yan and Jiajun Wen},
  title = {{Deep Asymmetric Hashing with Dual Semantic Regression and Class Structure Quantization}},
  journal = {Information Sciences},
  year = {2022},
  doi = {10.1016/j.ins.2021.12.112},
}
Figure