Skip to main content
QUICK REVIEW

[Paper Review] Domain-Adaptive Few-Shot Learning

An Zhao, Mingyu Ding|arXiv (Cornell University)|Mar 19, 2020
Domain Adaptation and Few-Shot LearningComputer Science57 references7 citations
TL;DR

This paper proposes Domain-Adversarial Prototypical Network (DAPN), a unified framework for domain-adaptive few-shot learning (DA-FSL) that jointly addresses few-shot classification and domain shift. By introducing domain discrimination before feature embedding and domain confusion after, DAPN balances global domain alignment with per-class separability, outperforming SOTA FSL and DA models on multiple benchmarks including DomainNet, Sketch, and Quick-Draw.

ABSTRACT

Existing few-shot learning (FSL) methods make the implicit assumption that the few target class samples are from the same domain as the source class samples. However, in practice this assumption is often invalid -- the target classes could come from a different domain. This poses an additional challenge of domain adaptation (DA) with few training samples. In this paper, the problem of domain-adaptive few-shot learning (DA-FSL) is tackled, which requires solving FSL and DA in a unified framework. To this end, we propose a novel domain-adversarial prototypical network (DAPN) model. It is designed to address a specific challenge in DA-FSL: the DA objective means that the source and target data distributions need to be aligned, typically through a shared domain-adaptive feature embedding space; but the FSL objective dictates that the target domain per class distribution must be different from that of any source domain class, meaning aligning the distributions across domains may harm the FSL performance. How to achieve global domain distribution alignment whilst maintaining source/target per-class discriminativeness thus becomes the key. Our solution is to explicitly enhance the source/target per-class separation before domain-adaptive feature embedding learning in the DAPN, in order to alleviate the negative effect of domain alignment on FSL. Extensive experiments show that our DAPN outperforms the state-of-the-art FSL and DA models, as well as their naïve combinations. The code is available at https://github.com/dingmyu/DAPN.

Motivation & Objective

  • Address the challenge of few-shot learning when target classes originate from a different domain than source classes, a setting overlooked in prior work.
  • Overcome the conflict between domain adaptation (requiring distribution alignment) and few-shot learning (requiring class discriminativeness) in the same framework.
  • Develop a unified model that simultaneously enables few-shot classification and domain adaptation with minimal labeled target samples.
  • Improve generalization in real-world scenarios where data distribution shifts (e.g., camera types, sketch vs. photo) occur alongside rare class recognition.

Proposed method

  • Propose a novel domain-adversarial prototypical network (DAPN) that integrates prototypical metric learning with domain adaptation in a single architecture.
  • Introduce a domain discrimination loss ($L_{ds}$) before the feature embedding module to enhance source-target class separation prior to domain alignment.
  • Apply a domain confusion loss ($L_{dc}$) after the embedding module to align global domain distributions while preserving per-class structure.
  • Use adaptive re-weighting of multiple losses to balance the competing objectives of domain alignment and class discriminativeness.
  • Leverage prototypical networks for few-shot classification using support-set embeddings, with domain-adaptive features learned via adversarial training.
  • Train the model end-to-end using a combination of prototypical loss ($L_{ps}$), per-class domain loss ($L_{pd}$), domain confusion ($L_{dc}$), and domain discrimination ($L_{ds}$).

Experimental results

Research questions

  • RQ1Can a unified model effectively solve both few-shot classification and domain adaptation when target classes are from a different domain than source classes?
  • RQ2How can domain adaptation be integrated with few-shot learning without undermining class discriminativeness due to global distribution alignment?
  • RQ3Does pre-embedding domain discrimination improve performance in domain-adaptive few-shot learning compared to post-embedding domain confusion alone?
  • RQ4To what extent does adaptive loss re-weighting improve the balance between conflicting objectives in DA-FSL?

Key findings

  • DAPN outperforms state-of-the-art FSL and domain adaptation models on the DomainNet, Sketch, and Quick-Draw datasets under 5-way 5-shot settings.
  • The ablation study confirms that each component—domain discrimination, domain confusion, and adaptive re-weighting—contributes significantly to performance gains.
  • Adding domain discrimination before embedding (via $L_{ds}$) improves source-target class separation, as validated by t-SNE visualizations.
  • Domain confusion after embedding ($L_{dc}$) is essential for global domain alignment, with FSL+DC showing substantial improvement over FSL alone.
  • The full model (FSL+DAA+ARW) achieves the highest accuracy across all datasets, demonstrating the effectiveness of the multi-objective optimization.
  • The model performs robustly on challenging synthetic datasets (Sketch and Quick-Draw), which exhibit larger domain gaps than DomainNet, confirming its generalization capability.

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.