NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Discriminative Supervised Hashing for Cross-Modal Similarity Search

Jun Yu, Xiao-Jun Wu, Josef Kittler

TL;DR

Discriminative Supervised Hashing (DSH) is a new framework designed to make cross-modal retrieval (like searching for images using text) faster and more accurate. By jointly optimizing for classification, subspace learning, and matrix factorization, DSH learns unified binary codes that are both highly discriminative and semantically consistent across different types of data.

What Problem Does This Paper Address?

In our multi-modal world, we often want to find information in one format (e.g., text) using a query from another (e.g., an image). This is known as cross-modal retrieval. The primary challenge is the "heterogeneity gap": images and text live in entirely different mathematical spaces, making direct comparison impossible.

Hashing is a popular solution because it maps high-dimensional data into compact binary codes, enabling lightning-fast searches with minimal storage. However, existing cross-modal hashing methods often fall short in two ways:

  1. Weak Discrimination: They might map semantically different items to similar codes, leading to poor retrieval accuracy.
  2. Linearity Constraints: Many methods rely on linear projections, which fail to capture the complex, non-linear structures inherent in real-world data like natural images.

Methods

The authors propose Discriminative Supervised Hashing (DSH), which tackles these issues through a multi-pronged joint optimization strategy.

The DSH framework: (a) Non-linear mapping to a common space, (b) Semantic preservation in Hamming space, (c) Category prediction.

Key technical components include:

  • Non-linear Kernel Mapping: Instead of simple linear projections, DSH uses RBF kernels to project heterogeneous data into a shared "common subspace." This preserves the manifold structure of the data that linear methods miss.
  • Unified Binary Code Learning: Rather than learning separate codes for each modality, DSH learns a single, unified binary code ($B$) for image-text pairs.
  • Joint Optimization: The model minimizes a complex objective function that combines three goals:
  • Classification Loss: Ensures the binary codes are discriminative enough to predict the correct category labels.
  • Matrix Factorization ($B \approx DL$): Reconstructs the binary codes using a basis matrix ($D$) and the label matrix ($L$), forcing the codes to align with semantic categories.
  • Subspace Mapping: Minimizes the distance between the original data's non-linear projection and the learned binary codes.
  • Discrete Optimization: To handle the NP-hard problem of learning discrete binary bits, the authors employ the Discrete Cyclic Coordinate descent (DCC) algorithm within an ADMM framework.

Datasets

The researchers evaluated DSH on three standard benchmarks for cross-modal retrieval:

  • Wiki: 2,866 image-text pairs from Wikipedia, categorized into 10 classes.
  • MirFlickr25k: 25,000 image-text pairs from Flickr across 20 categories. The authors used a subset of 20,015 pairs with sufficient textual tags.
  • PASCAL-VOC: 9,963 image-tag pairs across 20 categories. A subset of 5,649 images containing single objects was used for the experiments.

Key Insights and Ideas

  • Semantics Rule: The core "aha" moment is that binary codes shouldn't just be compact; they must be semantically meaningful. By forcing the codes to be reconstructible from category labels ($B \approx DL$), the model ensures that items in the same class have very similar codes.
  • Non-linearity is Essential: The paper demonstrates that linear mappings are insufficient for cross-modal tasks. The "DSH-linear" variant consistently underperformed compared to the full kernelized DSH, especially in text-to-image tasks.
  • Joint Learning Wins: By training the classifier, the subspace mapping, and the hashing function simultaneously, the model finds a global optimum that balances retrieval speed with semantic accuracy.

Key Results

DSH consistently outperformed state-of-the-art baselines (like SCM, SMFH, and DCH-RBF) across all datasets and code lengths (16 to 128 bits).

  • Accuracy Boost: On the PASCAL-VOC dataset, DSH showed a massive 22.9% average improvement in Mean Average Precision (MAP) over the strong DCH-RBF baseline.
  • Text-to-Image (T2I) Superiority: DSH excelled particularly in T2I tasks, outperforming its linear counterpart by approximately 48% on Wiki and 37% on PASCAL-VOC.
  • Fast Convergence: Despite the complex joint objective, the algorithm converges quickly, typically within 20-30 iterations.
Convergence curves for DSH on the three datasets, showing rapid stabilization of the objective function.

Limitations and Future Work

While DSH is highly effective, the authors note a few areas for growth:

  • Theoretical Convergence: While the algorithm converges quickly in practice, providing a rigorous theoretical proof of convergence remains a challenge.
  • Deep Learning Integration: The current model uses hand-crafted or PCA-based features. The authors suggest that integrating DSH with Deep Neural Network (DNN) features could further enhance performance.
  • Parameter Sensitivity: The model relies on balancing parameters ($\beta$ and $\eta$). While the paper provides a sensitivity analysis, finding the optimal balance for new datasets requires empirical tuning.
Sensitivity analysis of parameters beta and eta, showing how their interaction affects MAP scores.

Summary updated

BibTeX
@article{yu2019discriminative,
  author = {Jun Yu and Xiao-Jun Wu and Josef Kittler},
  title = {{Discriminative Supervised Hashing for Cross-Modal Similarity Search}},
  journal = {Image and Vision Computing},
  year = {2019},
  doi = {10.1016/j.imavis.2019.06.004},
}
Figure