Zero-Shot Learning by Harnessing Adversarial Samples

Zhi Chen, Peng-Fei Zhang, Jingjing Li, Sen Wang, Zi Huang · DOI · OpenReview

TL;DR

This paper introduces Harnessing Adversarial Samples (HAS), a novel approach to Zero-Shot Learning (ZSL) that uses adversarial training to create augmented images. Unlike traditional augmentations that can distort semantic meaning, HAS generates "adversarial samples" that are visually similar to negative classes while preserving correct labels, thus improving generalization without confusing the model.

What Problem Does This Paper Address?

Zero-Shot Learning (ZSL) is a fascinating area of computer vision that aims to teach models to recognize objects from classes they haven't seen during training. It does this by leveraging semantic information, like attributes (e.g., "has wings," "is blue"), learned from "seen" classes. A common technique to boost ZSL performance is image augmentation, which creates variations of existing images to make the model more robust. However, the authors observe a critical problem: standard image augmentation techniques, which rely on simple pixel manipulations, can inadvertently alter the semantic meaning of an image. This "semantic distortion" can confuse the ZSL model, leading to incorrect attribute predictions and ultimately hindering its ability to generalize to unseen classes. The paper aims to solve this by developing an augmentation strategy that leverages the power of adversarial training to create semantically consistent, yet diverse, training data.

Methods

The core of the proposed method, Harnessing Adversarial Samples (HAS), lies in its novel application of adversarial training for ZSL. Instead of using adversarial examples to confuse the model (as in typical adversarial attacks), HAS uses them to guide the model's learning process. The method focuses on three key aspects:

  1. Robust Generation: Adversarial samples are generated to be visually similar to negative classes (classes the image is not). This is achieved by maximizing the entropy of the classification probabilities, encouraging the model to see the augmented image as belonging to multiple classes, but still correctly identifying the original label.
  2. Reliable Generation: To prevent the adversarial samples from deviating too far from the original data manifold and causing semantic distortion, a latent space constraint is introduced. This ensures that the visual features of the augmented images remain close to those of the original images.
  3. Diverse Generation: The method leverages the ZSL model's attribute localization ability. By perturbing the "attention maps" (which highlight where the model is looking for specific attributes), HAS creates attribute-conditioned augmentations that diversify the training data in a semantically meaningful way.

The overall loss function combines the standard classification loss (LCLS) and localization loss (LLOC) with three new terms: robustness (LROB), reliability (LREL), and diversity (LDIV). These terms are carefully weighted to balance the generation of useful adversarial samples with the preservation of semantic integrity.

Datasets

The authors evaluate their HAS approach on three standard ZSL benchmark datasets:

  • CUB (Caltech-UCSD Birds-200-2011): Contains images of birds with detailed attribute annotations.
  • AwA2 (Animals with Attributes 2): Features images of animals with attribute labels.
  • SUN (Scene Understanding Network): Comprises images of scenes with attribute annotations.

No new datasets were introduced in this paper.

Key Insights and Ideas

  • Adversarial Samples as Semantic Augmentations: The most significant insight is reframing adversarial examples not as attacks, but as a powerful tool for creating semantically consistent data augmentations in ZSL.
  • Semantic Distortion is a Real Problem: The paper provides compelling evidence (Figure 2) that standard image augmentations can indeed harm ZSL performance by distorting semantic attributes.
  • Balancing Robustness and Reliability: HAS demonstrates that a careful balance between making images "confusing" (similar to negative classes) and ensuring they don't drift semantically is crucial for effective ZSL augmentation.
  • Leveraging Localization for Diversity: Using attribute localization maps to guide adversarial perturbations is a novel way to create diverse training data that is directly relevant to the ZSL task.

Key Results

HAS achieves state-of-the-art results on the CUB and AwA2 datasets for Generalized Zero-Shot Learning (GZSL), reaching 71.8% and 73.3% accuracy, respectively. The method consistently improves performance over the baseline APN model across all datasets and both ZSL and GZSL settings. An ablation study (Table 2) shows that each component (robustness, reliability, diversity) contributes to the overall performance, with the reliability loss (LREL) being particularly important for preventing semantic distortion.

Limitations and Future Work

  • Hyperparameter Sensitivity: The paper notes that the performance is sensitive to the choice of hyperparameter weights (λ₁, λ₂, λ₃) and perturbation strength (ε), requiring careful tuning.
  • Computational Cost: Adversarial training generally adds computational overhead compared to standard training.
  • Future Work: The authors suggest that their work helps understand the differences between single-label supervision and semantic attribute supervision, paving the way for more robust semantic-conditional visual augmentations. They also hope their findings will encourage further research into the interplay between model behavior, single-label vs. semantic attribute supervision, and the development of more robust visual augmentations.

Summary updated

BibTeX
@inproceedings{chen2023zero,
  author = {Zhi Chen and Peng-Fei Zhang and Jingjing Li and Sen Wang and Zi Huang},
  title = {{Zero-Shot Learning by Harnessing Adversarial Samples}},
  booktitle = {ACM Multimedia},
  year = {2023},
  doi = {10.1145/3581783.3611823},
}
Figure