Introduction
Domain Generalization (DG) aims to train models on multiple "source" domains so they can perform accurately on an unseen "target" domain. Traditionally, researchers have focused on extracting domain-invariant features—elements of an image that remain constant regardless of style, such as the basic shape of an object. However, this approach often discards domain-specific details that could serve as valuable "expert" knowledge for classification.
As shown in Figure 1, an elephant in a photo (Domain 1) provides rich texture information, while a sketch (Domain 2) relies purely on contour. A model seeking only "invariant" features might ignore texture entirely to accommodate the sketch, thereby losing a critical cue for identifying elephants in high-resolution environments.
The Domain Disentanglement Network (DDN)
The authors propose the Domain Disentanglement Network (DDN), which shifts the paradigm from finding a single universal feature space to managing and aggregating "Domain Expert Features."
The DDN architecture (Figure 6) consists of several key innovations:
- Feature Decomposition: Images are modeled as a combination of invariant features, domain-specific variations, and noise.
- Domain Expert Classifier (DEC): Instead of a single global classifier, the model trains specific "expert" classifiers for each source domain. This preserves the unique, helpful variations found in specific training environments.
- Domain Prototype Contrastive Learning (DPCL): To organize the feature space, DPCL uses a projection head to generate dynamic prototypes. This pushes features from the same domain together while maintaining clear separation between different domains and classes.
- Aggregation at Inference: When encountering a new domain, the model calculates the similarity between the target data and known source domains. It then creates a weighted average of its "experts" to make a final prediction.
Experimental Evaluation
The DDN was evaluated on five major DG benchmarks: PACS, VLCS, OfficeHome, DomainNet, and TerraIncognita.
Key Results
- State-of-the-Art Performance: On the standard DomainBed suite, DDN achieved an average accuracy of 66.2%, outperforming competitors like SelfReg and Fishr.
- Synergy with SWAD: When combined with the Stochastic Weight Averaging Densely (SWAD) optimizer, the method reached 79.7% accuracy on PACS/VLCS, a 1% improvement over the previous state-of-the-art, PCL.
- Feature Clustering: Visualization via t-SNE plots confirmed that DDN creates tighter, more distinct class clusters compared to standard Empirical Risk Minimization (ERM) methods.
Conclusion
The core insight of this work is that domain variations are assets, not liabilities. By treating domain-specific information as expert knowledge rather than noise, the Domain Disentanglement Network provides a more robust framework for generalizing to unseen environments. While extreme domain shifts (e.g., from photos to thermal imagery) remain a challenge, DDN sets a new standard for leveraging the diversity of training data in Domain Generalization.
Summary updated