Abstract
In this paper, we tackle the new Cross-Domain Few-Shot Learning benchmark proposed by the CVPR 2020 Challenge. To this end, we build upon state-of-the-art methods in domain adaptation and few-shot learning to create a system that can be trained to perform both tasks. Inspired by the need to create models designed to be fine-tuned, we explore the integration of transfer-learning (fine-tuning) with meta-learning algorithms, to train a network that has specific layers that are designed to be adapted at a later fine-tuning stage. To do so, we modify the episodic training process to include a first-order MAML-based meta-learning algorithm, and use a Graph Neural Network model as the subsequent meta-learning module. We find that our proposed method helps to boost accuracy significantly, especially when combined with data augmentation. In our final results, we combine the novel method with the baseline method in a simple ensemble, and achieve an average accuracy of 73.78% on the benchmark. This is a 6.51% improvement over existing benchmarks that were trained solely on miniImagenet.
Introduction
Standard Few-Shot Learning (FSL) aims to recognize new categories from just a handful of examples. However, most FSL algorithms assume the training and testing data come from the same distribution (e.g., training on dogs to recognize cats).
Cross-Domain Few-Shot Learning (CD-FSL) is much harder: it asks a model trained on natural images (like miniImageNet) to generalize to completely different domains, such as satellite photos or skin lesion biopsies. In these cases, the "domain shift" is so aggressive that standard feature transfer often fails. The authors address the need for a system that doesn't just learn features, but learns how to adapt those features to a new environment quickly.
Methodology
The authors propose a multi-pronged strategy to bridge the domain gap:
- Meta Fine-Tuning: Instead of standard fine-tuning (which happens after training), they integrate a first-order Model-Agnostic Meta-Learning (MAML) algorithm directly into the training process. They freeze the early layers of a ResNet-10 backbone and "meta-train" the later layers. This forces the network to find initial weights that are mathematically optimized for rapid adaptation during a later fine-tuning stage.
- Graph Neural Networks (GNN): After extracting features, the model uses a GNN to compare images. By treating the support set and query samples as nodes in a densely connected graph, the model can exploit the non-Euclidean relationships between images rather than just comparing them in simple vector space.
- Support-Set Data Augmentation: During the fine-tuning phase on the test domain, the authors implement heavy data augmentation (jitter, crops, flips) specifically on the few available "support" images to prevent overfitting.
- Ensembling: The final system is an ensemble that combines the Meta Fine-Tuning GNN with a modified baseline fine-tuning model, averaging their prediction scores to reduce variance.
Datasets and Experimental Setup
The model was trained on _mini_ImageNet (natural images) and evaluated on the CVPR 2020 Cross-Domain Few-Shot Learning Challenge benchmark, which includes four very different domains:
- CropDisease: Images of plant leaves.
- EuroSAT: Satellite imagery.
- ISIC: Dermoscopic images of skin lesions.
- ChestX: Chest X-ray images.
Key Results
The proposed system achieved an average accuracy of 73.78% across all 12 tasks in the benchmark. This represents a 6.51% improvement over the previous best benchmark (Ft-Last1) trained on miniImageNet. The improvement was most dramatic at the 5-shot level, where accuracy jumped by 8.48%.
In specific domains like CropDisease, the model reached near-perfect accuracy (99.48% at 50-shot), while even the difficult ChestX domain saw a significant lift compared to previous methods.
Discussion and Insights
- Learning to Learn to Fine-Tune: The core innovation is that fine-tuning shouldn't be an afterthought. By simulating the fine-tuning process during meta-training, the model learns a set of weights that are "primed" for the specific target domain.
- Domain Proximity Matters: Meta Fine-Tuning is most effective when the target domain is relatively close to the source (like CropDisease). For extremely distant domains (like ChestX X-rays), simple fine-tuning combined with heavy data augmentation actually performed better.
- GNNs for Context: Using a GNN allows the model to look at the entire "context" of the support set at once, rather than comparing a query image to each class prototype in isolation.
Limitations and Future Work
- Computational Complexity: GNNs scale at $O(n^2)$ relative to the number of samples. To handle 50-shot scenarios on a 16GB GPU, the authors had to average feature vectors to reduce the number of nodes in the graph.
- Domain Sensitivity: While the model is better than previous ones, it still struggles with "radical" domain shifts (like medical X-rays) compared to natural images.
- Future Directions: The authors suggest further research into making meta-learning models more "domain-agnostic" so they don't rely as heavily on the similarity between the source and target datasets.
Summary updated