[Paper Review] Domain Generalization Needs Stochastic Weight Averaging for Robustness on Domain Shifts.
This paper proposes using Stochastic Weight Averaging (SWA) to improve domain generalization by finding a loss valley center shared across multiple source domains, significantly boosting robustness on unseen domains. It demonstrates state-of-the-art performance across six major benchmarks, including PACS, OfficeHome, and DomainNet, with large margins over existing methods.
Domain generalization aims to learn a generalizable model to unseen target domains from multiple source domains. Various approaches have been proposed to address this problem. However, recent benchmarks show that most of them do not provide significant improvements compared to the simple empirical risk minimization (ERM) in practical cases. In this paper, we analyze how ERM works in views of domain-invariant feature learning and domain-specific gradient normalization. In addition, we observe that ERM converges to a loss valley shared over multiple training domains and obtain an insight that a center of the valley generalizes better. To estimate the center, we employ stochastic weight averaging (SWA) and provide theoretical analysis describing how SWA supports the generalization bound for an unseen domain. As a result, we achieve state-of-the-art performances over all of widely used domain generalization benchmarks, namely PACS, VLCS, OfficeHome, TerraIncognita, and DomainNet with large margins. Further analysis reveals how SWA operates on domain generalization tasks.
Motivation & Objective
- To address the limited generalization gains of existing domain generalization methods on real-world benchmarks.
- To investigate why simple Empirical Risk Minimization (ERM) often outperforms complex domain generalization approaches.
- To improve robustness to domain shifts by estimating a central model weight configuration shared across domains.
- To theoretically and empirically validate that SWA enhances generalization bounds for unseen domains.
Proposed method
- Analyzing ERM through the lens of domain-invariant feature learning and domain-specific gradient normalization.
- Observing that ERM converges to a shared loss valley across training domains, suggesting the valley center as a better generalization solution.
- Applying Stochastic Weight Averaging (SWA) to estimate the center of the loss valley by averaging weights from multiple training trajectories.
- Providing theoretical analysis linking SWA to improved generalization bounds for unseen domains.
- Training models with SWA on multiple source domains and evaluating on unseen target domains to assess robustness.
Experimental results
Research questions
- RQ1Why does ERM often outperform more complex domain generalization methods in practice?
- RQ2Can the center of the loss valley shared across domains serve as a more robust model than standard ERM?
- RQ3How does SWA improve generalization in domain generalization settings?
- RQ4What theoretical justification supports SWA's effectiveness in domain generalization?
Key findings
- SWA achieves state-of-the-art performance across all six major domain generalization benchmarks: PACS, VLCS, OfficeHome, TerraIncognita, and DomainNet.
- The proposed method significantly outperforms existing domain generalization methods with large margins on all benchmarks.
- The center of the loss valley, estimated via SWA, generalizes better to unseen domains than standard ERM or other domain generalization approaches.
- Theoretical analysis confirms that SWA supports tighter generalization bounds for unseen domains.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.