Unsupervised Generative Adversarial Cross-Modal Hashing

Jian Zhang, Yuxin Peng, Mingkuan Yuan

Introduction

In our increasingly multi-modal digital landscape, the ability to search across different data types—such as finding relevant images using text queries—is essential. Cross-modal hashing facilitates this by mapping high-dimensional data into compact, binary "hash codes" within a shared Hamming space, enabling rapid retrieval via simple bitwise operations.

However, bridging the "heterogeneous gap" remains a significant challenge: raw image pixels and textual descriptors share no inherent commonality in their native formats. While supervised methods bridge this gap using human-labeled data, they are difficult to scale. Existing unsupervised approaches often rely on simple linear correlations, which fail to capture the complex, non-linear "manifold" structure—the natural semantic clusters—of real-world data distribution. To address these limitations, we present UGACH (Unsupervised Generative Adversarial Cross-modal Hashing), a framework that leverages Generative Adversarial Networks (GANs) to learn robust cross-modal representations without manual labels.

Methodology

UGACH integrates adversarial learning with manifold modeling through three primary components:

  1. The Correlation Graph: In the absence of labels, the system constructs a graph for each modality based on nearest neighbors. If two images are semantically similar, their corresponding text descriptions are assumed to be proximal in the manifold. This graph serves as the "ground truth" for identifying positive data pairs.
  2. The Generative Model ($G$): Unlike traditional GANs that synthesize data from noise, $G$ acts as an intelligent selector. Given a query (e.g., an image), it identifies the most "informative" or difficult text samples from the database to challenge the discriminator. This selection process is optimized using Reinforcement Learning (Policy Gradient) to handle the discrete nature of data selection.
  3. The Discriminative Model ($D$): Functioning as the hashing engine, $D$ learns to distinguish between "true" pairs (derived from the correlation graph) and "fake" pairs (selected by the generator). This adversarial competition forces the discriminator to master the underlying manifold structure across modalities.
The UGACH architecture, illustrating the flow from feature extraction and correlation graph construction to the adversarial training between the Generative Model (G) and Discriminative Model (D).

Experimental Setup

The framework was evaluated on two standard benchmarks:

  • NUS-WIDE: A large-scale dataset of approximately 270,000 images with textual tags, focusing on the 10 most frequent categories.
  • MIRFlickr: A collection of 25,000 image-tag pairs from Flickr.

Images were represented using 4096-dimensional deep features (VGGNet), while text was processed into 1000-dimensional Bag-of-Words (BoW) vectors.

Key Results and Insights

UGACH demonstrated substantial improvements in Mean Average Precision (MAP) over six state-of-the-art competitors. A core insight of this work is that explicitly modeling the manifold structure via a correlation graph captures semantic relationships that linear methods like Canonical Correlation Analysis (CCA) overlook.

Comparison of MAP results on the MIRFlickr dataset. UGACH consistently outperforms both unsupervised and supervised baselines across various hash code lengths (16 to 128 bits).

Key performance highlights include:

  • MIRFlickr Performance: UGACH reached a MAP of 0.702 for image-to-text retrieval at 128 bits, consistently leading across all bit lengths.
  • NUS-WIDE Performance: On the image-to-text task, UGACH achieved a MAP of 0.624, representing a significant leap over previous unsupervised methods like CCQ (0.505).
  • Ablation Studies: Results confirmed that both the GAN component and the Correlation Graph are vital; removing either component resulted in a marked decline in retrieval accuracy.

Remarkably, UGACH often outperformed existing supervised methods, suggesting that the inherent structure of the data itself can provide a stronger signal for hashing than sparse or noisy human labels.

Conclusion and Future Work

UGACH represents a significant advancement in unsupervised cross-modal retrieval by successfully applying GANs to manifold learning. While highly effective, future research will focus on expanding the framework to handle more complex modalities such as video and audio. Additionally, the authors aim to improve the scalability of correlation graph construction for massive datasets using approximate nearest neighbor techniques and explore the application of GAN-based manifold learning to tasks like automated image captioning.

Summary updated

BibTeX
@inproceedings{zhang2018unsupervised,
  author = {Jian Zhang and Yuxin Peng and Mingkuan Yuan},
  title = {{Unsupervised Generative Adversarial Cross-Modal Hashing}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2018},
  doi = {10.1609/aaai.v32i1.11263},
}
Figure