TL;DR
Domain generalization (DG) aims to build machine learning models that perform well on unseen data distributions, a crucial capability for real-world applications where data shifts are common. This survey provides a comprehensive overview of DG, categorizing recent algorithms, theories, datasets, and applications, and highlighting future research directions.
What Problem Does This Paper Address?
Traditional machine learning models often assume that training and testing data are drawn from the same distribution (i.i.d. assumption). However, in practice, data distributions can vary significantly across different domains (e.g., images from different cameras, text from different sources). This "domain shift" can lead to a drastic drop in model performance. Collecting data from all possible domains to train a model is often infeasible. Domain generalization (DG) tackles this challenge by learning a model from one or more source domains that can generalize to unseen target domains without any access to target domain data during training. This paper aims to survey the significant progress made in DG, offering a structured overview of the field.
Methods
The paper categorizes DG methods into three main groups:
- Data Manipulation: This involves augmenting or generating new data to increase the diversity of the training set. Techniques include:
- Data Augmentation: Standard image transformations (flipping, rotation, etc.) and more advanced methods like domain randomization (generating data with varied environments) and adversarial data augmentation (guiding augmentation to improve generalization).
- Data Generation: Using generative models like VAEs and GANs, or techniques like Mixup, to create synthetic data that simulates domain shifts.
- Representation Learning: This is a core area focusing on learning features that are invariant across domains. Key approaches include:
- Domain-Invariant Representation Learning: Methods that explicitly align feature distributions across domains using techniques like kernel methods, domain adversarial learning (using discriminators to distinguish domains and generators to fool them), explicit feature alignment (e.g., minimizing MMD), and invariant risk minimization (IRM) which enforces that the optimal classifier on top of the representation is the same across domains.
- Feature Disentanglement: Aiming to separate domain-shared features from domain-specific features, allowing for better generalization. This is achieved through multi-component analysis, generative modeling, and causality-inspired methods.
- Learning Strategy: This category focuses on leveraging general learning paradigms to improve DG. This includes:
- Ensemble Learning: Combining multiple models to enhance generalization.
- Meta-Learning: Learning how to learn, by simulating domain shifts during meta-training to quickly adapt to new domains.
- Gradient Operation: Manipulating gradients to encourage learning generalized representations.
- Distributionally Robust Optimization (DRO): Learning models that perform well under the worst-case distribution scenario.
- Self-Supervised Learning: Using pretext tasks to learn general representations without explicit labels.
Datasets
The paper lists several popular datasets for DG, including:
- Image Classification: PACS, VLCS, Office-Home, DomainNet, Rotated MNIST, Terra Incognita.
- Other Tasks: iWildCam2020-wilds, Camelyon17-wilds, RxRx1-wilds, OGB-MolPCBA, GlobalWheat-wilds, CivilComments-wilds, FMoW-wilds, PovertyMap-wilds, Amazon-wilds, Py150-wilds (many of these are from the WILDS benchmark).
- Medical Imaging: Graft-versus-host disease (GvHD) dataset.
- Semantic Segmentation: CityScape, GTA5.
- Object Detection: CityScape, GTA5, Synthia.
- Person Re-identification: RandPerson.
- Reinforcement Learning: OpenAI Gym.
- Time Series: Not explicitly listed as a benchmark dataset but discussed in applications.
The paper also introduces DeepDG, an open-sourced codebase for DG research, designed to simplify data loading and model selection for fair evaluation.
Key Insights and Ideas
- DG is more challenging than Domain Adaptation (DA): DG is harder because it doesn't have access to target domain data during training, making it more realistic for many applications.
- Theory provides bounds but practical methods are key: Theoretical bounds (e.g., using H-divergence) help understand DG but practical algorithms are needed to achieve good performance.
- Representation learning is central: Learning domain-invariant features is a dominant theme, with methods evolving from kernel-based approaches to more sophisticated adversarial and disentanglement techniques.
- Data manipulation is a cost-effective starting point: Augmentation and generation can significantly boost DG performance, especially when labeled data is scarce.
- Learning strategies offer complementary benefits: Meta-learning and ensemble methods provide powerful frameworks for learning robust DG models.
- The field is rapidly evolving: New DG settings (single-source, semi-supervised, federated) and applications are constantly emerging.
Key Results
The paper doesn't present a single set of quantitative results but rather summarizes findings from various studies. For example, experiments using their DeepDG benchmark on PACS and Office-Home datasets showed that while ERM (Empirical Risk Minimization) provides a baseline, methods like CORAL offer slight improvements, and RSC (a learning strategy) achieves the best performance, though improvements over ERM are not always dramatic. The paper emphasizes that the effectiveness of DG methods can vary significantly depending on the dataset and task.
Limitations and Future Work
- Limitations:
- Theoretical Guarantees for Data Manipulation: A lack of strong theoretical guarantees for data manipulation methods is noted.
- Evaluation Protocols: Current evaluation strategies might not fully capture real-world DG scenarios, and there's a need for more robust metrics.
- Interpretability: While some methods offer insights, a deeper understanding of the learned features and their semantics is still lacking.
- Performance on Some Datasets: For certain datasets, DG methods may not significantly outperform baselines, potentially due to less severe domain gaps or limitations in evaluation schemes.
- Future Work:
- Continuous Domain Generalization: Developing models that can adapt to streaming data with evolving distributions without catastrophic forgetting.
- Domain Generalization to Novel Categories: Extending DG to handle both domain and task shifts simultaneously (i.e., generalizing to unseen domains and unseen classes).
- Interpretable Domain Generalization: Enhancing the interpretability of DG models, possibly through causality-based approaches.
- Large-Scale Pre-training and DG: Investigating how DG can be integrated with large-scale pre-training paradigms like BERT and GPT.
- Test-time Generalization: Exploring methods that can adapt models during inference using unlabeled target data.
- Performance Evaluation: Developing more suitable evaluation protocols and datasets to better assess DG algorithms in realistic scenarios.
Summary updated