Discretely Coding Semantic Rank Orders for Supervised Image Hashing

Li Liu, Ling Shao, Fumin Shen, Mengyang YuCVPR 2017

Abstract

Supervised image hashing typically relies on binary labels, ignoring the nuanced semantic relationships between different categories. Furthermore, the discrete nature of binary codes often leads to significant quantization errors when continuous relaxations are used during optimization. This paper presents Discrete Semantic Ranking Hashing (DSeRH), which leverages semantic word embeddings to capture rank-order relationships and introduces an Adaptive Discrete Minimization (ADM) algorithm for direct binary optimization. Experimental results across multiple benchmarks demonstrate that DSeRH significantly outperforms state-of-the-art ranking-based hashing methods by effectively bridging the gap between semantic understanding and discrete coding.

Introduction

In the era of big data, efficient image retrieval is paramount. Hashing methods map high-dimensional image features into short binary strings, enabling fast similarity searches in Hamming space. However, traditional supervised hashing often suffers from two main limitations. First, the "all-or-nothing" nature of categorical labels ignores the intrinsic hierarchy of the real world—for instance, a "cat" is semantically closer to a "cheetah" than to a "dolphin." Second, the discrete nature of binary optimization is NP-hard, leading researchers to use continuous relaxations that introduce significant quantization errors during the final rounding stage. DSeRH addresses these challenges by incorporating semantic hierarchies from natural language processing and optimizing hash codes directly in the discrete domain.

Methodology

Semantic Word Embeddings and Rank Ordering

Standard hashing methods treat all non-identical classes as equally dissimilar. DSeRH moves beyond this by utilizing word embeddings (e.g., word2vec) to represent categories as vectors in a high-dimensional semantic space. By calculating the cosine similarity between these vectors, the model can determine a "rank order" of relevance for any given anchor image. This allows the hashing model to learn that some "different" categories are actually quite related, providing a much richer supervisory signal than simple 0/1 labels.

Transformation from one-hot labels to semantic word embeddings.

Adaptive Discrete Minimization (ADM)

The core technical contribution of this work is the ADM algorithm, designed to solve the binary optimization problem without relying on continuous relaxation. ADM iteratively updates binary codes by selecting a subset of bits to flip in each iteration. This selection is governed by an adaptive "selection ratio" that ensures the objective function consistently improves. The loss function itself is designed to penalize ranking errors more heavily at the top of the retrieval list, reflecting the practical reality that top-ranked results are the most critical for user satisfaction.

Convergence of the ADM algorithm.

Experimental Evaluation

The authors evaluated DSeRH on three major benchmarks: CIFAR-10, SUN397, and ImageNet100. The framework was tested using both linear hash functions (DSeRH-L) and deep convolutional neural networks (DSeRH-D, based on VGG-19).

DSeRH consistently achieved superior Mean Average Precision (MAP) across all datasets and code lengths (ranging from 16 to 128 bits). Notably, on the SUN397 dataset—a large-scale scene recognition task with 397 categories—the deep version (DSeRH-D) reached a MAP of 0.4511 with 128-bit codes, significantly outperforming other deep methods such as DRH (0.4008). Furthermore, head-to-head comparisons between the discrete ADM approach and traditional relaxed versions confirmed that direct discrete optimization is critical for high-quality hashing, as it eliminates the performance gap caused by quantization.

Conclusion

DSeRH effectively bridges the gap between semantic understanding and efficient binary coding. By integrating NLP-derived word embeddings and a novel discrete optimization strategy, it provides a robust framework for large-scale image retrieval. While the ADM algorithm is computationally efficient for the tested benchmarks, future work may focus on scaling it for billions of images and extending the semantic ranking approach to multi-label scenarios where images contain multiple objects from different categories.

Summary updated

BibTeX
@inproceedings{liu2017discretely,
  author = {Li Liu and Ling Shao and Fumin Shen and Mengyang Yu},
  title = {{Discretely Coding Semantic Rank Orders for Supervised Image Hashing}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2017},
  doi = {10.1109/cvpr.2017.546},
}
Figure