Skip to main content
QUICK REVIEW

[Paper Review] Learning from Adversarial Features for Few-Shot Classification

Wei Shen, Ziqiang Shi|arXiv (Cornell University)|Mar 25, 2019
Adversarial Robustness in Machine LearningComputer Science35 references8 citations
TL;DR

This paper proposes a simple yet effective adversarial feature learning method that enhances few-shot classification by training on adversarial features derived from gradient-based attention masks, improving generalization without task-specific adaptation. The approach achieves state-of-the-art performance on both 5-way 1-shot and 5-way 5-shot tasks on miniImageNet and tieredImageNet by encouraging spatial exploration of feature maps and leveraging multi-scale features for more accurate attention localization.

ABSTRACT

Many recent few-shot learning methods concentrate on designing novel model architectures. In this paper, we instead show that with a simple backbone convolutional network we can even surpass state-of-the-art classification accuracy. The essential part that contributes to this superior performance is an adversarial feature learning strategy that improves the generalization capability of our model. In this work, adversarial features are those features that can cause the classifier uncertain about its prediction. In order to generate adversarial features, we firstly locate adversarial regions based on the derivative of the entropy with respect to an averaging mask. Then we use the adversarial region attention to aggregate the feature maps to obtain the adversarial features. In this way, we can explore and exploit the entire spatial area of the feature maps to mine more diverse discriminative knowledge. We perform extensive model evaluations and analyses on miniImageNet and tieredImageNet datasets demonstrating the effectiveness of the proposed method.

Motivation & Objective

  • To address the generalization gap in few-shot learning where models overfit to training classes and fail on novel classes.
  • To improve model robustness and diversity in learned features without architectural complexity.
  • To develop a training strategy that enhances feature extractor generalization using adversarial perturbations of feature maps.
  • To enable a single model to perform well across multiple few-shot settings (e.g., 1-shot and 5-shot) without retraining or adaptation.

Proposed method

  • The method generates adversarial features by computing gradients of entropy with respect to an averaging mask, identifying regions that cause classifier uncertainty.
  • An adversarial region attention mechanism is learned to aggregate feature maps, forcing the model to focus beyond conspicuous regions and explore the full spatial extent.
  • Multi-scale features from different convolutional layers are used to train a classifier that produces more accurate attention masks.
  • The model uses a multi-scale classification loss combining global average pooling, adversarial, and high-level features to update parameters.
  • The adversarial attention mask is derived from the global average pooling feature and applied during training to perturb feature representations.
  • The final feature extractor is trained end-to-end and used directly at inference with only global average pooling, requiring no adaptation on novel tasks.

Experimental results

Research questions

  • RQ1Can adversarial feature learning improve generalization in few-shot classification without architectural modifications?
  • RQ2Does training on adversarial features reduce overfitting to conspicuous discriminative regions in the training data?
  • RQ3Can a single model trained with adversarial features generalize effectively across different few-shot settings (e.g., 1-shot vs. 5-shot)?
  • RQ4How does multi-scale feature learning affect the accuracy and localization of adversarial attention regions?
  • RQ5To what extent does adversarial feature training improve robustness to adversarial perturbations in test features?

Key findings

  • The proposed method achieves state-of-the-art accuracy on both 5-way 1-shot and 5-way 5-shot tasks on miniImageNet and tieredImageNet, surpassing prior methods without task-specific adaptation.
  • On miniImageNet, the model achieves a 5.04% absolute improvement on 1-shot and 4.65% on 5-shot tasks compared to baseline models.
  • On tieredImageNet, the improvements are 3.33% on 1-shot and 3.02% on 5-shot tasks, indicating stronger gains on smaller datasets where overfitting is more severe.
  • The model trained with adversarial features shows significantly higher robustness to adversarial perturbations, maintaining stable performance even under increasing γ values.
  • Multi-scale feature learning improves attention localization accuracy, reducing misclassification of background as objects compared to single-scale baselines.
  • The ablation study confirms that adversarial attention leads to better spatial exploration of feature maps, reducing overfitting and enhancing generalization.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.