Introduction
Standard few-shot learning (FSL) algorithms excel at recognizing novel categories from a handful of examples, provided the training and testing data share the same visual domain. However, real-world applications frequently encounter domain shift, where a model trained on natural photographs must generalize to sketches, cartoons, or medical imagery. This paper introduces Cross-Domain Episodic Meta-Learning (x-EML), a framework specifically designed for domain-generalized few-shot classification.
The Challenge of Domain Shift
In domain-generalized FSL, the model faces a dual challenge: it must learn to generalize to new semantic categories (the few-shot task) while simultaneously becoming invariant to domain-specific styles and textures. Traditional FSL methods often overfit to the textures of the source domain, causing performance to plummet when faced with unseen visual styles.
Methodology: Cross-Domain Episodic Meta-Learning
The authors propose a novel training strategy that explicitly incorporates domain shift into the meta-learning process.
The x-EML Framework
In a standard episodic training setup, a support set $S$ (labeled examples) and a query set $Q$ (unlabeled test cases) are sampled from the same dataset. In contrast, x-EML samples the support set from one domain (e.g., Sketch) and the query set from a different domain (e.g., Cartoon), even though they share the same underlying class labels.
By forcing the model to bridge this domain gap in every training step, the feature encoder ($F_\theta$) is incentivized to ignore domain-specific "noise" (like brushstrokes or line thickness) and focus on semantic, domain-invariant features. The model uses a Prototypical Network backbone, where query images are classified based on their distance to the mean feature vectors (prototypes) of the support classes.
Experimental Setup
- Source Domains: The model was trained on the PACS dataset (Art-Painting, Cartoon, and Sketch domains), excluding the "Photo" domain to ensure a significant shift during testing.
- Target Domains: Generalization was evaluated on highly distinct datasets, including Omniglot (hand-written characters), Mini-ImageNet (natural images), and CUB (fine-grained bird species).
Key Results and Insights
Quantitative Performance
The x-EML approach consistently outperformed standard FSL baselines and existing domain generalization methods across all target datasets. As shown in the table below, x-EML achieved state-of-the-art results, particularly in challenging 5-shot scenarios.
The Impact of Network Depth
A surprising finding was that deeper backbones do not necessarily improve domain generalization. The authors observed that deeper models (Conv-5 or Conv-6) often performed worse than shallower ones (Conv-3 or Conv-4). This suggests that deeper networks are more prone to capturing domain-specific textures, which hinders their ability to generalize to unseen styles.
Data Efficiency
Despite being trained on the relatively small PACS dataset (~10k images), x-EML outperformed models trained on the massive ILSVRC (ImageNet) dataset (1M images) when tested on highly distinct domains like "Texture" or "QuickDraw" within the MetaDataset benchmark. This highlights that domain diversity in training can be more valuable than raw data volume for generalization.
Conclusion
Cross-Domain Episodic Meta-Learning (x-EML) provides a robust solution for few-shot classification in unseen domains. By simulating domain shifts during the training phase, the model learns to extract semantic features that remain stable across diverse visual styles. Future work may address the current limitation of requiring homogeneous label sets across source domains, potentially expanding x-EML to more heterogeneous data sources.
Summary updated