TasksSotADatasetsPapersMethodsSubmitAbout
Papers With Code 2

A community resource for machine learning research: papers, code, benchmarks, and state-of-the-art results.

Explore

Notable BenchmarksAll SotADatasetsPapersMethods

Community

Submit ResultsAbout

Data sourced from the PWC Archive (CC-BY-SA 4.0). Built by the community, for the community.

Papers/StyleAdv: Meta Style Adversarial Training for Cross-Domain...

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

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

2023-02-18CVPR 2023 1Few-Shot LearningCross-Domain Few-Shotcross-domain few-shot learningAdversarial Attack
PaperPDFCode(official)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.

Results

TaskDatasetMetricValueModel
Few-Shot LearningChestX5 shot26.24StyleAdv-FT
Few-Shot LearningChestX5 shot26.07StyleAdv
Few-Shot LearningPlantae5 shot64.1StyleAdv-FT
Few-Shot LearningPlantae5 shot61.52StyleAdv
Few-Shot Learningcars5 shot56.44StyleAdv-FT
Few-Shot Learningcars5 shot50.13StyleAdv
Few-Shot LearningEuroSAT5 shot91.64StyleAdv-FT
Few-Shot LearningEuroSAT5 shot86.58StyleAdv
Few-Shot LearningCUB5 shot70.9StyleAdv-FT
Few-Shot LearningCUB5 shot68.72StyleAdv
Few-Shot LearningISIC20185 shot53.05StyleAdv-FT
Few-Shot LearningISIC20185 shot45.77StyleAdv
Few-Shot LearningPlaces5 shot79.35StyleAdv-FT
Few-Shot LearningPlaces5 shot77.73StyleAdv
Few-Shot LearningCropDisease5 shot96.51StyleAdv-FT
Few-Shot LearningCropDisease5 shot93.65StyleAdv
Meta-LearningChestX5 shot26.24StyleAdv-FT
Meta-LearningChestX5 shot26.07StyleAdv
Meta-LearningPlantae5 shot64.1StyleAdv-FT
Meta-LearningPlantae5 shot61.52StyleAdv
Meta-Learningcars5 shot56.44StyleAdv-FT
Meta-Learningcars5 shot50.13StyleAdv
Meta-LearningEuroSAT5 shot91.64StyleAdv-FT
Meta-LearningEuroSAT5 shot86.58StyleAdv
Meta-LearningCUB5 shot70.9StyleAdv-FT
Meta-LearningCUB5 shot68.72StyleAdv
Meta-LearningISIC20185 shot53.05StyleAdv-FT
Meta-LearningISIC20185 shot45.77StyleAdv
Meta-LearningPlaces5 shot79.35StyleAdv-FT
Meta-LearningPlaces5 shot77.73StyleAdv
Meta-LearningCropDisease5 shot96.51StyleAdv-FT
Meta-LearningCropDisease5 shot93.65StyleAdv
Cross-Domain Few-ShotChestX5 shot26.24StyleAdv-FT
Cross-Domain Few-ShotChestX5 shot26.07StyleAdv
Cross-Domain Few-ShotPlantae5 shot64.1StyleAdv-FT
Cross-Domain Few-ShotPlantae5 shot61.52StyleAdv
Cross-Domain Few-Shotcars5 shot56.44StyleAdv-FT
Cross-Domain Few-Shotcars5 shot50.13StyleAdv
Cross-Domain Few-ShotEuroSAT5 shot91.64StyleAdv-FT
Cross-Domain Few-ShotEuroSAT5 shot86.58StyleAdv
Cross-Domain Few-ShotCUB5 shot70.9StyleAdv-FT
Cross-Domain Few-ShotCUB5 shot68.72StyleAdv
Cross-Domain Few-ShotISIC20185 shot53.05StyleAdv-FT
Cross-Domain Few-ShotISIC20185 shot45.77StyleAdv
Cross-Domain Few-ShotPlaces5 shot79.35StyleAdv-FT
Cross-Domain Few-ShotPlaces5 shot77.73StyleAdv
Cross-Domain Few-ShotCropDisease5 shot96.51StyleAdv-FT
Cross-Domain Few-ShotCropDisease5 shot93.65StyleAdv

Related Papers

GLAD: Generalizable Tuning for Vision-Language Models2025-07-173DGAA: Realistic and Robust 3D Gaussian-based Adversarial Attack for Autonomous Driving2025-07-14VIP: Visual Information Protection through Adversarial Attacks on Vision-Language Models2025-07-11Doodle Your Keypoints: Sketch-Based Few-Shot Keypoint Detection2025-07-10An Enhanced Privacy-preserving Federated Few-shot Learning Framework for Respiratory Disease Diagnosis2025-07-10Identifying the Smallest Adversarial Load Perturbations that Render DC-OPF Infeasible2025-07-10Few-Shot Learning by Explicit Physics Integration: An Application to Groundwater Heat Transport2025-07-08ScoreAdv: Score-based Targeted Generation of Natural Adversarial Examples via Diffusion Models2025-07-08