Abstract
Domain Generalization (DG) aims to train models on source domains that perform well on unseen target domains. Traditional methods attempt to minimize domain differences, often losing useful information. This paper introduces Polarization of Embeddings (POEM), which explicitly learns category and domain-specific features and enforces orthogonality between them. By "polarizing" these representations, POEM effectively filters domain noise, achieving state-of-the-art performance on major DG benchmarks including PACS, VLCS, and DomainNet.
Introduction: The Challenge of Domain Shift
Deep learning models are notoriously fragile when faced with domain shift—for instance, a model trained on photographs of cats may fail to recognize a sketch of a cat. The core objective of Domain Generalization (DG) is to train a model on a set of source domains such that it generalizes to a completely unseen target domain.
Most existing DG methods attempt to learn "domain-invariant" representations by minimizing the discrepancy between source domains. The authors of POEM argue that this approach is counter-intuitive. Humans do not ignore domain information (e.g., "this is a cartoon"); rather, we distinguish between the "cat-ness" (category) and the "cartoon-ness" (domain). The failure of current models stems from category and domain information becoming "tangled," leading to a reliance on spurious domain-specific shortcuts.
Methodology: Polarization of Embeddings (POEM)
POEM addresses the entanglement problem by explicitly learning and then separating domain and category features.
Dual Embeddings and Orthogonality
The architecture employs two distinct "elementary embeddings": one for category classification and one for domain classification. The central innovation is the Polarization (Disentangling Loss), which minimizes the cosine similarity between these two feature sets. This forces the category and domain vectors to become orthogonal in the feature space.
Discrimination and Inference
In addition to orthogonality, a Discrimination Loss ensures that the distributions of the two feature types do not overlap. During the testing phase, the domain-specific embedding is discarded, leaving a "clean" category embedding that is mathematically filtered of domain-specific components. POEM is designed as a "plug-and-play" module that can be integrated with other techniques like SWAD (Stochastic Weight Averaging Densely) or MIRO (Mutual Information Regularization with Oracle).
Experimental Results
The researchers evaluated POEM on five rigorous DG benchmarks: PACS, VLCS, OfficeHome, TerraIncognita, and DomainNet.
Performance Gains
POEM consistently outperformed the standard Empirical Risk Minimization (ERM) baseline and other specialized DG methods. As a standalone method, POEM achieved a 65.5% average accuracy across all benchmarks, representing a +1.5% improvement over ERM.
When combined with SOTA techniques like SWAD and MIRO, POEM reached an average accuracy of 67.7%. Notably, on the large-scale DomainNet dataset, POEM improved accuracy by nearly 3% over the baseline, demonstrating its scalability to complex, real-world scenarios.
Conclusion
POEM demonstrates that explicitly learning domain-specific features makes it easier to ignore them during inference. By providing a dedicated "home" for domain information through orthogonality, the model prevents domain noise from leaking into category representations. Future work may involve formalizing the mathematical proof of this information separation and extending the framework to multi-dimensional generalization, such as disentangling disease features from patient or equipment biases in medical imaging.
Summary updated