Abstract
Efficient image retrieval in large-scale datasets relies on hashing techniques that map high-dimensional data into compact binary strings. However, existing deep hashing models often require extensive manual labeling, which is costly and time-consuming. This paper presents Semi-supervised Generative Adversarial Hashing (SSGAH), a framework that leverages unlabeled data through a generative adversarial approach. By incorporating a generative model to synthesize training triplets and employing a novel adversary ranking loss, SSGAH achieves superior retrieval performance even with limited labeled data.
Introduction
The explosion of web-based visual data has made fast and accurate image retrieval a critical challenge. Hashing methods address this by converting images into short binary codes, enabling efficient similarity searches. While supervised deep hashing has shown great promise, its reliance on large-scale labeled datasets limits its applicability. Conversely, traditional semi-supervised methods often struggle with scalability or require rigid class labels.
SSGAH addresses these limitations by utilizing triplet-wise information (relative similarity) and unlabeled data. Triplet-wise labels (e.g., "Image A is more similar to B than to C") are often easier to obtain than absolute category labels. The proposed framework uses Generative Adversarial Networks (GANs) to model the underlying distribution of these similarities, effectively "filling in the gaps" left by sparse labeling.
Methodology: The SSGAH Framework
The SSGAH architecture consists of three primary components that interact in a minimax game to optimize the hashing process.
1. The Generative Model ($G$)
The generator is designed to produce "synthetic triplets." Given a real image, $G$ learns to generate a synthetic "similar" version and a synthetic "dissimilar" version. This allows the system to augment the training set with semantically meaningful synthetic data.
2. The Discriminative Model ($D$)
The discriminator's role is to distinguish between real triplets (from the labeled dataset) and synthetic triplets produced by the generator. This adversarial setup forces the generator to produce increasingly realistic similarity relationships.
3. The Deep Hashing Model ($H$)
The hashing model, typically based on an AlexNet backbone, learns to map images to binary codes. It is trained using a combination of supervised and semi-supervised losses.
Novel Loss Functions
The framework introduces two key losses that differentiate it from standard GAN approaches:
- Semi-supervised Ranking Loss: Enables the hashing model to learn from unlabeled data by treating synthetic outputs from $G$ as valid training signals.
- Adversary Ranking Loss: A two-player game where $H$ attempts to distinguish real similar pairs from synthetic ones, while $G$ tries to make them indistinguishable. This pressure forces the hashing model to capture fine-grained semantic details.
Experimental Results
The researchers evaluated SSGAH on two standard benchmarks: CIFAR-10 (60,000 images, 10 categories) and NUS-WIDE (270,000 web images, 21 concepts).
Performance Comparison
SSGAH consistently outperformed state-of-the-art (SOTA) methods such as BGDH and SSDH across various bit lengths (12, 24, 32, and 48 bits):
- CIFAR-10: Achieved a Mean Average Precision (mAP) of 0.855 at 48 bits, a 2.2% improvement over the previous SOTA.
- NUS-WIDE: Achieved an mAP of 0.865 at 48 bits, surpassing BGDH by 3.7%.
Robustness and Generalization
A key finding was the model's robustness to unseen classes. SSGAH significantly outperformed supervised methods when tested on categories not present during training, suggesting that the GAN-based similarity modeling captures more generalizable semantic features than label-specific methods.
Conclusion
SSGAH demonstrates that Generative Adversarial Networks can be effectively repurposed from simple image synthesis to modeling complex semantic similarity distributions. By leveraging triplet-wise information and unlabeled data, the framework provides a scalable and high-performing solution for semi-supervised image retrieval. Future work may involve exploring more modern backbones and refining the training process to handle the inherent complexities of multi-label datasets.
Summary updated