Unsupervised Adversarial Attacks on Deep Feature-based Retrieval with GAN

Guoping Zhao, Mingyu Zhang, Jiajun Liu, Ji-Rong WenarXiv 2019

Modern image search and identification systems, such as those used for face recognition and person re-identification, rely heavily on deep feature representations. While adversarial research has traditionally focused on classification tasks, this work explores a critical security vulnerability in Content-Based Image Retrieval (CBIR). The authors introduce UAA-GAN, an unsupervised framework capable of "blinding" these systems through nearly invisible image perturbations.

The Retrieval Attack Challenge

Unlike image classification, where an attack aims to cross a discrete decision boundary (e.g., changing a "cat" to a "dog"), retrieval systems operate on continuous vectors in a high-dimensional feature space. To successfully attack a retrieval system, one must shift an image's feature representation so that its nearest neighbors in a database are no longer visually similar.

Overview of the UAA-GAN attack process and its impact on retrieval results.

Retrieval systems often employ global pooling layers (like MAC or GeM) that provide invariance to minor local changes, making them inherently more robust than simple classifiers. Furthermore, retrieval tasks often lack explicit class labels during the attack phase. UAA-GAN addresses these challenges by creating an unsupervised attack that disrupts the complex feature manifolds without requiring ground-truth labels.

Methodology: UAA-GAN Architecture

The UAA-GAN framework consists of three primary components working in tandem:

  1. Generator ($G$): An encoder-decoder CNN utilizing residual blocks. It processes an original image to produce a perturbation map, which is then added back to the original image to create the adversarial query.
  2. Discriminator ($D$): A standard CNN tasked with distinguishing between real and adversarial images. This component is crucial for ensuring that perturbations are "natural-looking" and blend into existing textures, making them stealthy to human observers.
  3. Target Network ($T$): A fixed, pre-trained feature extractor (e.g., VGG16 or ResNet101) that defines the feature space the generator aims to disrupt.

The Metric Loss

A key innovation is the Metric Loss, which utilizes triplet loss logic combined with "online hard negative mining." The generator is optimized to identify the closest neighbor to the query in the feature space and then push the adversarial query's feature vector further away from the original than that neighbor. This effectively "ejects" the image from its correct neighborhood in the feature space.

Experimental Results

The authors evaluated UAA-GAN across image retrieval (Oxford5K, Paris6K), person re-identification (Market-1501, DukeMTMC-ReID), and face search (FaceScrub) benchmarks. The results demonstrate a staggering drop in system performance:

  • Image Retrieval: On Oxford5K (VGG16-MAC), mean Average Precision (mAP) plummeted from 0.818 to 0.044.
  • Person Re-ID: On Market-1501 (ResNet50), mAP dropped from 0.722 to 0.010, while Rank-1 accuracy fell from 89.5% to just 0.7%.
  • Face Search: Top-1 accuracy for the Sphereface model on FaceScrub dropped from 0.713 to 0.215.

Crucially, the attack's success is not due to simple image degradation. Adding standard Gaussian noise of equivalent magnitude had negligible impact on performance, proving the "adversarial intelligence" of the UAA-GAN perturbations.

Insights and Transferability

UAA-GAN learns salience-aware perturbations, placing noise in textured or complex areas where the human eye is less sensitive. Because it is unsupervised, it requires no labels and can learn from a small set of unlabeled images. Furthermore, the attack exhibits high cross-aggregation transferability; an attack trained against one feature aggregation method (e.g., MAC) often successfully fools others (e.g., RMAC or GeM).

Conclusion

The extreme vulnerability of deep retrieval systems to UAA-GAN highlights an urgent need for specialized adversarial defense research. While the current framework assumes some knowledge of the target network, its high transferability and unsupervised nature make it a potent threat to modern identification and search infrastructures.

Summary updated

BibTeX
@misc{zhao2019unsupervised,
  author = {Guoping Zhao and Mingyu Zhang and Jiajun Liu and Ji-Rong Wen},
  title = {{Unsupervised Adversarial Attacks on Deep Feature-based Retrieval with GAN}},
  year = {2019},
  eprint = {1907.05793},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1907.05793},
}
Figure