SOTAVerified

StyleAdv: Meta Style Adversarial Training for Cross-Domain Few-Shot Learning

2023-02-18CVPR 2023Code Available1· sign in to hype

Yuqian Fu, Yu Xie, Yanwei Fu, Yu-Gang Jiang

Code Available — Be the first to reproduce this paper.

Reproduce

Code

Abstract

Cross-Domain Few-Shot Learning (CD-FSL) is a recently emerging task that tackles few-shot learning across different domains. It aims at transferring prior knowledge learned on the source dataset to novel target datasets. The CD-FSL task is especially challenged by the huge domain gap between different datasets. Critically, such a domain gap actually comes from the changes of visual styles, and wave-SAN empirically shows that spanning the style distribution of the source data helps alleviate this issue. However, wave-SAN simply swaps styles of two images. Such a vanilla operation makes the generated styles ``real'' and ``easy'', which still fall into the original set of the source styles. Thus, inspired by vanilla adversarial learning, a novel model-agnostic meta Style Adversarial training (StyleAdv) method together with a novel style adversarial attack method is proposed for CD-FSL. Particularly, our style attack method synthesizes both ``virtual'' and ``hard'' adversarial styles for model training. This is achieved by perturbing the original style with the signed style gradients. By continually attacking styles and forcing the model to recognize these challenging adversarial styles, our model is gradually robust to the visual styles, thus boosting the generalization ability for novel target datasets. Besides the typical CNN-based backbone, we also employ our StyleAdv method on large-scale pretrained vision transformer. Extensive experiments conducted on eight various target datasets show the effectiveness of our method. Whether built upon ResNet or ViT, we achieve the new state of the art for CD-FSL. Code is available at https://github.com/lovelyqian/StyleAdv-CDFSL.

Tasks

Benchmark Results

DatasetModelMetricClaimedVerifiedStatus
carsStyleAdv-FT5 shot56.44Unverified
carsStyleAdv5 shot50.13Unverified
ChestXStyleAdv5 shot26.07Unverified
ChestXStyleAdv-FT5 shot26.24Unverified
CropDiseaseStyleAdv5 shot93.65Unverified
CropDiseaseStyleAdv-FT5 shot96.51Unverified
CUBStyleAdv-FT5 shot70.9Unverified
CUBStyleAdv5 shot68.72Unverified
EuroSATStyleAdv5 shot86.58Unverified
EuroSATStyleAdv-FT5 shot91.64Unverified
ISIC2018StyleAdv5 shot45.77Unverified
ISIC2018StyleAdv-FT5 shot53.05Unverified
PlacesStyleAdv-FT5 shot79.35Unverified
PlacesStyleAdv5 shot77.73Unverified
PlantaeStyleAdv-FT5 shot64.1Unverified
PlantaeStyleAdv5 shot61.52Unverified

Reproductions