SSAH: Semi-Supervised Adversarial Deep Hashing with Self-Paced Hard Sample Generation

Sheng Jin, Shangchen Zhou, Yao Liu, Chao Chen, Xiaoshuai Sun, Hongxun Yao, Xian-Sheng Hua

Abstract

Large-scale image retrieval relies on efficient hashing techniques to map high-dimensional data into compact binary codes. However, existing deep hashing methods often require extensive labeled datasets to achieve high accuracy. This paper presents SSAH (Semi-supervised Self-paced Adversarial Hashing), a novel framework that addresses the scarcity of labeled data by generating "hard" training samples through an adversarial network. By integrating a self-paced learning strategy with a consistency loss for unlabeled data, SSAH dynamically adapts the training difficulty to the model's current state. Experimental results demonstrate that SSAH significantly outperforms state-of-the-art methods, particularly in complex fine-grained retrieval tasks.

Addressing the Labeled Data Bottleneck

In the era of big data, retrieving similar images quickly requires mapping high-dimensional visual information into short, efficient binary codes. While deep learning has revolutionized this field, its performance is typically tethered to the availability of massive labeled datasets. Semi-supervised methods attempt to bridge this gap using Generative Adversarial Networks (GANs) for data augmentation, but they often suffer from two major flaws:

  1. Generation Ineffectiveness: Standard GANs often produce images that are either too simple or too distorted for the hashing network to learn from effectively, failing to adapt to the model's evolving intelligence level.
  2. Unlabeled-Data Underutilization: Many existing methods use unlabeled data solely to improve the realism of generated images rather than directly refining the quality of the hashing codes.
Conceptual comparison of decision boundaries without and with hard sample generation. Hard samples help the model identify the optimal boundary between classes.

The SSAH Framework

SSAH employs a dual-network architecture consisting of an Adversarial Network (A-Net) and a Hashing Network (H-Net). This setup creates a dynamic "teacher-student" relationship where the A-Net learns to challenge the H-Net with increasingly difficult samples.

Adversarial Hard Sample Generation

Instead of generating images from scratch, the A-Net learns to "attack" the hashing process using two specialized sub-modules:

  • Multi-Angle Rotation Network (MARN): Challenges the network's spatial understanding by applying specific rotations to input images.
  • Multi-Scale Mask Network (MSMN): Learns to apply additive and multiplicative masks (occlusions) to intermediate feature maps, forcing the H-Net to focus on the most salient semantic features rather than peripheral noise.

Self-Paced Learning (SPL) and Consistency

To ensure the H-Net is not overwhelmed, SSAH utilizes a Self-Paced Learning (SPL) curriculum. The A-Net is guided by a "hard degree" metric: early in training, it provides easier samples; as the H-Net improves, the A-Net gradually increases the difficulty of the deformations and masks.

The multi-loss training architecture of SSAH, illustrating the two-step process involving adversarial, quantization, semantic, and consistency losses.

To maximize the utility of unlabeled data, the H-Net is trained with a Semi-Supervised Consistent Loss. This ensures that the model produces the same binary code for an original unlabeled image and its "hard" adversarial version, fostering robust semantic representations that are invariant to noise or distortion.

Experimental Evaluation

The model was evaluated on four major benchmarks, ranging from general datasets like CIFAR-10 and NUS-WIDE to challenging fine-grained datasets like Stanford Dogs-120 and CUB Bird-200. Fine-grained retrieval is particularly difficult because the differences between classes (e.g., distinct breeds of dogs) are often subtle.

Key Results

SSAH consistently outperformed existing state-of-the-art (SOTA) methods across all bit lengths (12, 24, 48 bits):

  • General Retrieval: On CIFAR-10, SSAH achieved a Mean Average Precision (mAP) of 0.886 (at 48 bits), outperforming the previous best semi-supervised method by over 3%.
  • Fine-Grained Retrieval: The gains were most dramatic here. On the Stanford Dogs dataset, SSAH reached 0.478 mAP, a significant jump over the previous SOTA of 0.408.
  • Generalization: The model showed superior performance even when retrieving images from categories it never encountered during the labeled training phase.

Conclusion and Future Directions

SSAH demonstrates that adversarial training can serve as a powerful form of data augmentation for hashing. By focusing on "hard" samples and maintaining consistency across unlabeled data, the framework achieves high robustness without increasing inference time, as the A-Net is discarded after training. Future work may explore expanding the scope of transformations (e.g., color jittering or texture synthesis) and applying this self-paced adversarial approach to cross-modal retrieval tasks.

Summary updated

BibTeX
@inproceedings{jin2020ssah,
  author = {Sheng Jin and Shangchen Zhou and Yao Liu and Chao Chen and Xiaoshuai Sun and Hongxun Yao and Xian-Sheng Hua},
  title = {{SSAH: Semi-Supervised Adversarial Deep Hashing with Self-Paced Hard Sample Generation}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2020},
  doi = {10.1609/aaai.v34i07.6773},
}
Figure