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

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

18 Feb 2023CVPR 2023 1arXiv:2302.09309archive 2025-07-28

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

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.

PaperPDFConference PDFCode

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

Code

lovelyqian/styleadv-cdfsl officialmentioned in papermentioned on GitHubpytorch report
lovelyqian/wave-SAN-CDFSL mentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

Not run by Syntology. Nothing on this page verifies that the listed code works.

Tasks

Adversarial AttackCross-Domain Few-ShotFew-Shot Learningcross-domain few-shot learning

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Cross-Domain Few-Shot CUB StyleAdv-FT 5 shot 70.90 #2 of 9 Archive leaderboard report
Cross-Domain Few-Shot CUB StyleAdv 5 shot 68.72 #5 of 9 Archive leaderboard report
Cross-Domain Few-Shot ChestX StyleAdv-FT 5 shot 26.24 #1 of 11 Archive leaderboard report
Cross-Domain Few-Shot ChestX StyleAdv 5 shot 26.07 #2 of 11 Archive leaderboard report
Cross-Domain Few-Shot CropDisease StyleAdv-FT 5 shot 96.51 #1 of 9 Archive leaderboard report
Cross-Domain Few-Shot CropDisease StyleAdv 5 shot 93.65 #3 of 9 Archive leaderboard report
Cross-Domain Few-Shot EuroSAT StyleAdv-FT 5 shot 91.64 #1 of 11 Archive leaderboard report
Cross-Domain Few-Shot EuroSAT StyleAdv 5 shot 86.58 #3 of 11 Archive leaderboard report
Cross-Domain Few-Shot ISIC2018 StyleAdv-FT 5 shot 53.05 #1 of 11 Archive leaderboard report
Cross-Domain Few-Shot ISIC2018 StyleAdv 5 shot 45.77 #6 of 11 Archive leaderboard report
Cross-Domain Few-Shot Places StyleAdv-FT 5 shot 79.35 #1 of 8 Archive leaderboard report
Cross-Domain Few-Shot Places StyleAdv 5 shot 77.73 #2 of 8 Archive leaderboard report
Cross-Domain Few-Shot Plantae StyleAdv-FT 5 shot 64.10 #1 of 8 Archive leaderboard report
Cross-Domain Few-Shot Plantae StyleAdv 5 shot 61.52 #2 of 8 Archive leaderboard report
Cross-Domain Few-Shot cars StyleAdv-FT 5 shot 56.44 #1 of 8 Archive leaderboard report
Cross-Domain Few-Shot cars StyleAdv 5 shot 50.13 #4 of 8 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

1x1 ConvolutionAverage PoolingBatch NormalizationBottleneck Residual BlockConvolutionGlobal Average PoolingKaiming InitializationMax PoolingReLUResidual BlockResidual Connection

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections