Improving Domain Generalization with Domain Relations
Huaxiu Yao, Xinyu Yang, Xinyi Pan, Shengchao Liu, Pang Wei Koh, Chelsea Finn
Abstract
Distribution shift presents a significant challenge in machine learning, where models often underperform during the test stage when faced with a different distribution than the one they were trained on. This paper focuses on domain shifts, which occur when the model is applied to new domains that are different from the ones it was trained on, and propose a new approach called D 3 G. Unlike previous methods that aim to learn a single model that is domain invariant, D 3 G leverages domain similarities based on domain metadata to learn domain-specific models. Concretely, D 3 G learns a set of training-domain-specific functions during the training stage and reweights them based on domain relations during the test stage. These domain relations can be directly obtained and learned from domain metadata. Under mild assumptions, we theoretically prove that using domain relations to reweight training-domain-specific functions achieves stronger out-of-domain generalization compared to the conventional averaging approach. Empirically, we evaluate the effectiveness of D 3 G using real-world datasets for tasks such as temperature regression, land use classification, and molecule-protein binding affinity prediction. Our results show that D 3 G consistently outperforms state-of-the-art methods. * Equal contribution. Work was done during Xinyu Yang's remote internship at Stanford.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 25440c10-db6e-4e13-9759-c4087ed4cfd5Cited by top-tier papers7
- GraphMETRO: Mitigating Complex Graph Distribution Shifts via Mixture of Aligned ExpertsShirley Wu, Kaidi Cao, Bruno Ribeiro, James Y. Zou et al.NeurIPS 2024 · 27 citations
- Multi-Expert Distributionally Robust Optimization for Out-of-Distribution GeneralizationJinyong Jeong, Hyungu Kahng, Seoung Bum KimNeurIPS 2025 · 6 citations
- Hybrid-Tta: Continual Test-Time Adaptation Via Dynamic Domain Shift DetectionHyewon Park, Hyejin Park, Jueun Ko, Dongbo MinICCV 2025 · 2 citations
- Learning Beyond Domains: Misleading Prompts and Pseudo-Label Contrast for Text Domain GeneralizationQizhi Li, Xuyang Wang, Yingke Chen, Ming Yan et al.AAAI 2026 · 1 citation
- Compositional Risk MinimizationDivyat Mahajan, Mohammad Pezeshki, Charles Arnal, Ioannis Mitliagkas et al.ICML 2025
Builds on29
- WILDS: A Benchmark of in-the-Wild Distribution ShiftsPang Wei Koh, Shiori Sagawa, Henrik Marklund, Sang Michael Xie et al.ICML 2021 · 1,773 citations
- Strategies for Pre-training Graph Neural NetworksWeihua Hu, Bowen Liu, Joseph Gomes, Marinka Zitnik et al.ICLR 2020 · 1,744 citations
- In Search of Lost Domain GeneralizationIshaan Gulrajani, David Lopez-PazICLR 2021 · 1,416 citations
- Test-Time Training with Self-Supervision for Generalization under Distribution ShiftsYu Sun, Xiaolong Wang, Zhuang Liu, John Miller et al.ICML 2020 · 1,220 citations
- Out-of-Distribution Generalization via Risk Extrapolation (REx)David Krueger, Ethan Caballero, Jörn-Henrik Jacobsen, Amy Zhang et al.ICML 2021 · 1,163 citations
Related papers
- Learning Transferrable and Interpretable Representations for Domain GeneralizationZhekai Du, Jingjing Li, Ke Lu, Lei Zhu et al.ACM MM 2021 · 11 citations
- Robust Calibration with Multi-domain Temperature ScalingYaodong Yu, Stephen Bates, Yi Ma, Michael I. JordanNeurIPS 2022 · 58 citations
- Domain Generalization by Learning and Removing Domain-specific FeaturesYu Ding, Lei Wang, Bin Liang, Shuming Liang et al.NeurIPS 2022 · 75 citations
- Improving Out-of-Distribution Robustness via Selective AugmentationHuaxiu Yao, Yu Wang, Sai Li, Linjun Zhang et al.ICML 2022 · 275 citations
- Distribution Shift Is Key to Learning Invariant PredictionHong Zheng, Fei TengAAAI 2026
