Comprehensive Graph-conditional Similarity Preserving Network for Unsupervised Cross-modal Hashing

Jun Yu, Hao Zhou, Yibing Zhan, Dacheng Tao

Introduction

In our multi-modal digital landscape, the ability to search across different data types—such as using text to find relevant images—is essential. Cross-modal hashing (CMH) has emerged as the standard for large-scale retrieval, converting complex high-dimensional data into compact binary codes. This allows for extremely fast searches within a "Hamming space."

However, Unsupervised CMH (UCMH) faces a significant challenge: the inaccurate similarity problem. Without human-provided labels, standard methods rely on raw feature comparisons. These features can be misleading; for instance, a picture of a "rose" and the word "wedding" share few direct visual or linguistic features but are semantically deeply linked. Current models often fail to capture these intricate relationships, leading to suboptimal retrieval performance.

The Semantic Gap and Neighbor Coherence

To address this, researchers introduced the Deep Graph-neighbor Coherence Preserving Network (DGCPN). The core innovation is the concept of Graph-neighbor Coherence (GC). Instead of evaluating items in isolation, DGCPN examines their "neighborhoods" within a graph.

Conceptual illustration of Graph-neighbor Coherence: discovering semantic links through shared neighbors.

As illustrated above, if a "rose" image and a "wedding" text snippet both show high similarity to a common neighbor—such as a "bride"—the model infers a semantic relationship between the rose and the wedding. By leveraging these shared neighbors, the model discovers latent semantic links that are invisible to traditional feature-to-feature comparisons.

DGCPN Architecture

The DGCPN framework is designed to preserve these discovered similarities throughout the hashing process. The architecture is divided into two primary stages: feature extraction and similarity preservation.

The DGCPN architecture featuring feature-extracting and similarity-preserving subnetworks.
  1. Feature-Extracting Subnetworks: Images are processed through a pre-trained VGG-19 network to extract deep visual features ($F_I$), while text is represented using Bag-of-Words (BoW) or Latent Dirichlet Allocation (LDA) to generate textual features ($F_T$).
  2. Similarity-Preserving Subnetworks: These features are fed into modality-specific networks (ImgNet and TxtNet). These networks are trained to produce real-valued representations ($H_I, H_T$) that are eventually converted into binary codes ($B_I, B_T$).

Comprehensive Similarity Preserving Losses

The model balances three distinct loss functions to ensure robust learning:

  • Graph-neighbor Coherence Loss: Preserves the neighborhood relationships discovered in the graph.
  • Coexistent Similarity Loss: Ensures that an image and its original corresponding text snippet remain close in the Hamming space.
  • Intra- and Inter-modality Consistency: Maintains consistent similarity patterns both within a single modality (image-to-image) and across different modalities (image-to-text).

To minimize "quantization errors" during the transition from continuous neural network outputs to discrete binary bits, DGCPN employs a Half-Real and Half-Binary Optimization strategy. By calculating losses between one real-valued representation and one binary code, the model bridges the gap more effectively than traditional methods.

Experimental Results

DGCPN was evaluated on three benchmark datasets: Wikipedia, MIRFlickr-25K, and NUS-WIDE. It consistently outperformed state-of-the-art unsupervised methods like DSAH and JDSH across various hash code lengths (16, 32, and 64 bits).

  • MIRFlickr-25K: In Image-to-Text (I2T) tasks with 64-bit codes, DGCPN achieved a Mean Average Precision (MAP) of 0.751, significantly higher than the previous best of 0.722.
  • Wikipedia: The model showed strong gains in Text-to-Image (T2I) tasks, reaching a MAP of 0.558 (64-bit).
  • Ablation Studies: These tests confirmed that Graph-neighbor Coherence is the primary driver of success; removing the neighbor-based logic resulted in the most significant performance drops.

Conclusion

DGCPN demonstrates that local graph structures can serve as a powerful proxy for missing semantic labels in unsupervised learning. While challenges remain regarding the computational cost of initial graph construction and the use of static feature extractors, DGCPN represents a major step forward in making large-scale, cross-modal retrieval more accurate and semantically aware.

Summary updated

BibTeX
@inproceedings{yu2021comprehensive,
  author = {Jun Yu and Hao Zhou and Yibing Zhan and Dacheng Tao},
  title = {{Comprehensive Graph-conditional Similarity Preserving Network for Unsupervised Cross-modal Hashing}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2021},
  doi = {10.1609/aaai.v35i5.16592},
}
Figure