Introduction
Deep learning models typically operate under the assumption that training and test data are independent and identically distributed (i.i.d.) and that large-scale labeled datasets are available. In real-world scenarios, however, domain shift—where data distributions differ between sources (e.g., photos vs. sketches)—is common, and high-quality labels are often scarce. While Domain Generalization (DG) seeks to build models that generalize to unseen target domains, most existing methods require fully labeled source data. Conversely, Semi-supervised Learning (SSL) leverages unlabeled data but often fails to account for domain shifts.
This paper introduces DGSML (Domain Generalization via Semi-supervised Meta Learning), the first framework designed to bridge this gap. DGSML utilizes both labeled and unlabeled samples from multiple source domains to train models capable of generalizing to entirely unseen environments, even under extreme label scarcity.
Methodology
DGSML employs an episodic training strategy characteristic of meta-learning to simulate the distribution shifts encountered during deployment. The framework consists of three primary components:
- Meta-Learning Strategy: Source domains are partitioned into "meta-train" and "meta-test" sets in each iteration, forcing the model to learn domain-agnostic adaptation.
- Semi-supervised Loss (Meta-train): The model generates pseudo-labels for unlabeled samples based on entropy confidence. It then computes class centroids—the average feature vectors for each category. The loss function minimizes the discrepancy between centroids derived from labeled data alone and those incorporating pseudo-labeled samples.
- Alignment Loss (Meta-test): To foster domain-invariant features, this loss ensures that the geometric relationships (relative distances) between class centroids remain consistent across different domains.
Experimental Setup
The authors evaluated DGSML on two benchmark datasets:
- VLCS: Images from VOC2007, LabelMe, Caltech101, and SUN09.
- PACS: A challenging dataset featuring Photo, Art, Cartoon, and Sketch styles.
To assess performance under varying levels of label scarcity, the researchers simulated "partially unlabeled" scenarios by withholding labels for 20%, 50%, 80%, and 95% of the source data.
Results and Analysis
DGSML was benchmarked against strong baselines, including DeepAll (standard supervised learning) and MASF (a state-of-the-art DG method).
Performance at High Label Sparsity
DGSML demonstrated significant advantages when labels were most scarce. On the VLCS dataset with a 95% unlabeled rate, DGSML achieved an average accuracy of 70.84%, outperforming MASF (69.20%) and DeepAll (68.50%).
Impact of Model Backbone
The benefits of DGSML were further amplified when using deeper feature extractors. On the PACS dataset with a ResNet-18 backbone, DGSML consistently outperformed MASF across all unlabeled rates, achieving a total average accuracy of 72.98% compared to MASF's 70.09%.
Key Insights
- Centroid Alignment: Aligning class centroids rather than individual noisy data points provides a more stable target for achieving domain invariance.
- Regularization via Unlabeled Data: Incorporating unlabeled data helps the model identify a robust feature space, preventing overfitting to the specific characteristics of limited labeled samples.
- Geometric Consistency: The alignment loss ensures that the "essence" of a category is captured by maintaining consistent class geometry across domains.
Conclusion and Future Work
DGSML successfully combines semi-supervised learning with meta-learning to address the dual challenges of domain shift and label scarcity. While the approach is computationally intensive due to second-order gradients in meta-learning, its ability to generalize from sparse, multi-domain data is promising. Future research aims to apply DGSML to complex real-world problems, such as drug response prediction in bioinformatics, where genomic data is plentiful but clinical labels are rare.
Summary updated