Skip to main content
QUICK REVIEW

[Paper Review] Cross-Domain Few-Shot Classification via Adversarial Task Augmentation

Haoqing Wang, Zhihong Deng|arXiv (Cornell University)|Apr 29, 2021
Domain Adaptation and Few-Shot LearningComputer Science20 references7 citations
TL;DR

This paper proposes adversarial task augmentation to improve cross-domain few-shot classification by generating inductive bias-adaptive 'challenging' tasks through a worst-case optimization around the source task distribution. The method enhances robustness of meta-learning models across domain shifts and significantly outperforms both standard meta-learning and fine-tuning baselines on nine diverse few-shot datasets, serving as a plug-and-play module for various models.

ABSTRACT

Few-shot classification aims to recognize unseen classes with few labeled samples from each class. Many meta-learning models for few-shot classification elaborately design various task-shared inductive bias (meta-knowledge) to solve such tasks, and achieve impressive performance. However, when there exists the domain shift between the training tasks and the test tasks, the obtained inductive bias fails to generalize across domains, which degrades the performance of the meta-learning models. In this work, we aim to improve the robustness of the inductive bias through task augmentation. Concretely, we consider the worst-case problem around the source task distribution, and propose the adversarial task augmentation method which can generate the inductive bias-adaptive 'challenging' tasks. Our method can be used as a simple plug-and-play module for various meta-learning models, and improve their cross-domain generalization capability. We conduct extensive experiments under the cross-domain setting, using nine few-shot classification datasets: mini-ImageNet, CUB, Cars, Places, Plantae, CropDiseases, EuroSAT, ISIC and ChestX. Experimental results show that our method can effectively improve the few-shot classification performance of the meta-learning models under domain shift, and outperforms the existing works. Our code is available at https://github.com/Haoqing-Wang/CDFSL-ATA.

Motivation & Objective

  • Address the poor generalization of meta-learning models under domain shift in few-shot classification.
  • Overcome the limitation of existing methods that rely on task-specific inductive bias or manual design.
  • Develop a general, plug-and-play method to improve cross-domain robustness without requiring target domain data.
  • Enable meta-learning models to generalize to unseen domains by simulating worst-case task distributions.

Proposed method

  • Formulate the problem as a worst-case optimization over a neighborhood of the source task distribution, defined by a distance metric D(T, T₀) ≤ ρ.
  • Use gradient-based optimization to generate adversarial tasks that challenge the model's inductive bias, particularly targeting the loss function L(T; θ).
  • Introduce random convolution as an auxiliary task augmentation technique to increase diversity and improve generalization.
  • Apply early stopping during adversarial task generation to implicitly regularize the task distribution without explicit regularization.
  • Design a plug-and-play module that can be integrated with various meta-learning models, including metric-based (RelationNet), graph neural network (GNN), and few-shot learning (TPN) models.
  • Use a distance metric based on feature-level differences between support sets to define task distribution shifts.

Experimental results

Research questions

  • RQ1Can adversarial task augmentation improve the cross-domain generalization of meta-learning models in few-shot classification?
  • RQ2How does the proposed method compare to standard fine-tuning and pre-training in cross-domain few-shot settings?
  • RQ3Does the method generalize across different types of meta-learning models with varying inductive biases?
  • RQ4What is the impact of random convolution and regularization terms in the task augmentation process?

Key findings

  • The proposed adversarial task augmentation method significantly improves few-shot classification accuracy across nine diverse datasets, including mini-ImageNet, CUB, ISIC, and ChestX, under cross-domain settings.
  • The method outperforms both standard meta-learning models and traditional pre-training/fine-tuning baselines, even when the latter are augmented with data augmentation techniques.
  • On 5-way 1-shot and 5-shot tasks, the method achieves state-of-the-art performance, with consistent gains across all eight unseen domains tested.
  • Ablation studies show that random convolution further improves performance, while regularization terms do not help and may harm generalization.
  • The method remains effective even when applied to non-metric-based models like TPN, demonstrating broad applicability beyond metric-based approaches.
  • The worst-case optimization framework successfully generates challenging tasks that improve robustness without requiring access to target domain data.

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.