[Paper Review] StyleAdv: Meta Style Adversarial Training for Cross-Domain Few-Shot Learning
This paper proposes StyleAdv, a model-agnostic meta training method for Cross-Domain Few-Shot Learning (CD-FSL) that enhances robustness to domain shifts by generating adversarial visual styles. By using a progressive style adversarial attack (Style-FGSM) to synthesize 'virtual' and 'hard' styles via gradient-based perturbations of source style features, StyleAdv improves generalization across diverse target domains, achieving new state-of-the-art performance on eight datasets with both ResNet and Vision Transformer backbones.
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.
Motivation & Objective
- To address the challenge of large domain gaps in Cross-Domain Few-Shot Learning (CD-FSL), particularly those caused by visual style shifts between source and target domains.
- To overcome the limitations of existing style augmentation methods, such as wave-SAN, which generate only 'real' and 'easy' styles within the source distribution.
- To improve model generalization by training on adversarial styles that are both 'virtual' (not in the source set) and 'hard' (more challenging to recognize).
- To develop a model-agnostic, complementary method that enhances existing FSL and CD-FSL models without architectural changes.
Proposed method
- Proposes a minimax training framework, StyleAdv, where the inner loop generates adversarial styles via gradient-based perturbations of source style features.
- Introduces a novel style adversarial attack method, Style-FGSM, which synthesizes hard and virtual styles by adding signed style gradients to original styles.
- Employs a progressive style synthesizing strategy that accumulates adversarial signals across feature blocks to stabilize training and avoid large feature deviations.
- Uses a random perturbation ratio sampling strategy from a candidate pool to enhance diversity in the generated adversarial styles.
- Applies the method in a meta-learning setting, where the model is trained to recognize both clean and adversarially perturbed styles within episode-based training.
- Supports both CNN-based (e.g., ResNet) and Vision Transformer (ViT) backbones, demonstrating broad applicability.
Experimental results
Research questions
- RQ1Can adversarial style generation improve generalization in Cross-Domain Few-Shot Learning beyond real-style augmentation?
- RQ2How do 'virtual' and 'hard' adversarial styles compare to real and easy styles in terms of model robustness?
- RQ3Does attacking style features rather than images or features lead to better domain generalization in CD-FSL?
- RQ4Can a model-agnostic method like StyleAdv be effectively combined with diverse backbones such as ResNet and ViT?
- RQ5What is the impact of progressive and ratio-randomized style perturbation on model performance and training stability?
Key findings
- StyleAdv achieves new state-of-the-art performance on eight diverse target datasets under both 1-shot and 5-shot settings, outperforming existing CD-FSL methods.
- The proposed Style-FGSM attack method successfully generates 'hard' and 'virtual' styles that push the model beyond the original source style distribution.
- On average, StyleAdv improves the base GNN model by 3.77% in 5-way 1-shot accuracy (from 59.83% to 63.77%) across all datasets.
- Attacking styles yields better performance than attacking images or features, indicating that style-level perturbations are more effective for domain gap mitigation.
- The method is model-agnostic and consistently improves performance when applied to both ResNet and Vision Transformer backbones.
- Style-FGSM outperforms other style augmentation baselines such as MixStyle, AdvStyle, and DSU, demonstrating its superiority in generating challenging and diverse styles.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.