SADIH: Semantic-Aware DIscrete Hashing

Zheng Zhang, Guo-Sen Xie, Yang Li, Sheng Li, Zi Huang

Introduction

In the era of "Big Data," efficient image retrieval is paramount. High-dimensional visual data must be compressed into compact binary hash codes to enable rapid similarity searches. Supervised hashing leverages semantic labels to ensure that visually similar items are mapped to nearby points in the Hamming space. However, traditional supervised hashing methods face three significant hurdles: the scalability trap of $n \times n$ similarity matrices, the underutilization of category labels beyond matrix construction, and the "relaxation gap" caused by rounding continuous approximations to binary values.

SADIH (Semantic-Aware DIscrete Hashing) addresses these challenges through an asymmetric similarity approximation and a semantic-aware autoencoder, providing a scalable and highly discriminative hashing framework.

Methodology

SADIH integrates three core components to optimize hash code learning:

Asymmetric Similarity Approximation

To avoid the $O(n^2)$ complexity of full similarity matrices, SADIH employs an asymmetric approach. Instead of comparing binary codes directly ($B^T B$), it compares binary codes ($B$) to a real-valued latent semantic embedding ($V$). This decomposition allows the model to capture full pairwise relationships with linear computational complexity ($O(n)$), making it suitable for million-scale datasets.

Semantic-Aware Autoencoder

The framework utilizes an encoder-decoder architecture. The encoder maps visual features into a latent space aligned with semantic labels, ensuring discriminative power. Simultaneously, the decoder reconstructs the original features from this latent space, preserving the underlying data structure. This dual objective ensures that the resulting hash codes are both representative and category-aware.

Discrete Optimization

SADIH avoids the errors introduced by continuous relaxation. By using Discrete Cyclic Coordinate Descent (DCC), the algorithm optimizes hash codes bit-by-bit directly in the discrete space. This approach minimizes the quantization error and leads to more accurate retrieval.

Experimental Evaluation

The performance of SADIH was benchmarked against state-of-the-art methods on three datasets:

  • CIFAR-10: 60,000 images, 10 classes, using 512-dim GIST features.
  • SUN397: ~108,000 images, 397 scene categories, using 4,096-dim VGG19 features.
  • ImageNet: 128,000 images, 100 classes, using 4,096-dim VGG19 features.

Key Results

SADIH and its variant, SADIH-L1 (which uses the $l_{21}$-norm for robustness), consistently outperform existing supervised hashing methods like SDH, COSDISH, and FastH.

Table 1: Performance comparison of SADIH against state-of-the-art methods across CIFAR-10, SUN397, and ImageNet datasets.

Accuracy and Efficiency

As shown in the results table, SADIH-L1 achieves superior Mean Average Precision (MAP). For instance, on CIFAR-10 with 128-bit codes, it reaches a MAP of 0.7348. Beyond accuracy, the efficiency gains are substantial. On ImageNet, SADIH-L1 completes training in approximately 6-8 seconds, whereas competing methods like KSH or SDH can take over a thousand seconds.

Retrieval Stability

The precision-recall curves further demonstrate SADIH's effectiveness. The model maintains high precision across varying recall levels, indicating a well-structured Hamming space where similar items are clustered effectively.

Figure 1: Precision-Recall curves for different bit lengths on CIFAR-10, SUN397, and ImageNet.

Conclusion

SADIH provides a robust solution to the scalability and discriminative limitations of supervised hashing. By leveraging asymmetric similarity and discrete optimization, it achieves state-of-the-art performance with remarkable computational efficiency. Future work may involve integrating this framework into end-to-end deep learning architectures to further enhance feature representation and retrieval accuracy.

Summary updated

BibTeX
@inproceedings{zhang2019sadih,
  author = {Zheng Zhang and Guo-Sen Xie and Yang Li and Sheng Li and Zi Huang},
  title = {{SADIH: Semantic-Aware DIscrete Hashing}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2019},
  doi = {10.1609/aaai.v33i01.33015853},
}
Figure