{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/in-search-of-lost-domain-generalization","title":"In Search of Lost Domain Generalization","arxiv_id":"2007.01434","date":"2020-07-02","proceeding":"ICLR 2021 1","authors":["Ishaan Gulrajani","David Lopez-Paz"],"abstract":"The goal of domain generalization algorithms is to predict well on distributions different from those seen during training. While a myriad of domain generalization algorithms exist, inconsistencies in experimental conditions -- datasets, architectures, and model selection criteria -- render fair and realistic comparisons difficult. In this paper, we are interested in understanding how useful domain generalization algorithms are in realistic settings. As a first step, we realize that model selection is non-trivial for domain generalization tasks. Contrary to prior work, we argue that domain generalization algorithms without a model selection strategy should be regarded as incomplete. Next, we implement DomainBed, a testbed for domain generalization including seven multi-domain datasets, nine baseline algorithms, and three model selection criteria. We conduct extensive experiments using DomainBed and find that, when carefully implemented, empirical risk minimization shows state-of-the-art performance across all datasets. Looking forward, we hope that the release of DomainBed, along with contributions from fellow researchers, will streamline reproducible and rigorous research in domain generalization.","url_abs":"https://arxiv.org/abs/2007.01434v1","url_pdf":"https://arxiv.org/pdf/2007.01434v1.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"in-search-of-lost-domain-generalization","repo_url":"https://github.com/facebookresearch/DomainBed","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"in-search-of-lost-domain-generalization","repo_url":"https://github.com/YugeTen/fish","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"in-search-of-lost-domain-generalization","repo_url":"https://github.com/facebookresearch/domainbed_measures","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"NOASSERTION"}},{"paper_slug":"in-search-of-lost-domain-generalization","repo_url":"https://github.com/inouye-lab/feddg_benchmark","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok"}},{"paper_slug":"in-search-of-lost-domain-generalization","repo_url":"https://github.com/judydnguyen/pardon-feddg","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok"}},{"paper_slug":"in-search-of-lost-domain-generalization","repo_url":"https://github.com/kowshikthopalli/DREAME","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"in-search-of-lost-domain-generalization","repo_url":"https://github.com/maryam089/sdvit","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok"}},{"paper_slug":"in-search-of-lost-domain-generalization","repo_url":"https://github.com/matsuolab/t3a","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"in-search-of-lost-domain-generalization","repo_url":"https://github.com/nancyquris/xdomainmix","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"in-search-of-lost-domain-generalization","repo_url":"https://github.com/qiaoruiyt/noiserobustdg","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"in-search-of-lost-domain-generalization","repo_url":"https://github.com/wangxinyilinda/causal-balancing-for-domain-generalization","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"in-search-of-lost-domain-generalization","repo_url":"https://github.com/weixin-liang/metashift","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"domain-generalization","task_name":"Domain Generalization"},{"task_slug":"model-selection","task_name":"Model Selection"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[{"leaderboard":"/sota/domain-generalization-on-pacs-2","task":"Domain Generalization","dataset":"PACS","model":"ERM (Resnet-50, DomainBed)","rank_in_archive_order":51,"of":133,"metrics":{"Average Accuracy":"85.50"},"uses_additional_data":false}],"syntology":{"syntology_url":"https://syntology.ai/paper/2007.01434","atlas_url":"https://app.syntology.ai/?focus=2007.01434","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2007.01434"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-25T09:33:49+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/facebookresearch/DomainBed","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/wangxinyilinda/causal-balancing-for-domain-generalization","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/maryam089/sdvit","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/weixin-liang/metashift","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/matsuolab/t3a","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/facebookresearch/domainbed_measures","reach":{"status":"ok","spdx":"NOASSERTION"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/qiaoruiyt/noiserobustdg","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/inouye-lab/feddg_benchmark","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/YugeTen/fish","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/nancyquris/xdomainmix","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/judydnguyen/pardon-feddg","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/kowshikthopalli/DREAME","reach":null}],"summary":{"ran_draft_wrong":3,"unverified":4},"by_repo_kind":{"official":{"samples":2,"ran":0,"repositories":1},"listed":{"samples":4,"ran":3,"repositories":2}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":1,"samples":[{"code_sha256_prefix":"5d1f700db67751f1","entry":"accuracy_ent","repo":"matsuolab/t3a","repo_kind":"listed","path":"domainbed/scripts/unsupervised_adaptation.py","file_url":"https://github.com/matsuolab/t3a/blob/HEAD/domainbed/scripts/unsupervised_adaptation.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"5d1f700db67751f1"}},{"code_sha256_prefix":"3ce1df52d4a961b8","entry":"inv_lr_scheduler","repo":"kowshikthopalli/DREAME","repo_kind":"listed","path":"domainbed/algorithms.py","file_url":"https://github.com/kowshikthopalli/DREAME/blob/HEAD/domainbed/algorithms.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"3ce1df52d4a961b8"}},{"code_sha256_prefix":"e6171e29ed623a12","entry":"softmax_entropy","repo":"matsuolab/t3a","repo_kind":"listed","path":"domainbed/scripts/unsupervised_adaptation.py","file_url":"https://github.com/matsuolab/t3a/blob/HEAD/domainbed/scripts/unsupervised_adaptation.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"e6171e29ed623a12"}},{"code_sha256_prefix":"57634636fcd54537","entry":"generate_featurelized_loader","repo":"matsuolab/t3a","repo_kind":"listed","path":"domainbed/scripts/unsupervised_adaptation.py","file_url":"https://github.com/matsuolab/t3a/blob/HEAD/domainbed/scripts/unsupervised_adaptation.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"57634636fcd54537"}},{"code_sha256_prefix":"b0bc80b1655a6802","entry":"get_algorithm_class","repo":null,"repo_kind":null,"path":null,"file_url":null,"link_basis":"identical_code_first_harvested_elsewhere","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":null,"inline_ok":false,"mcp_get_code":{"code_sha256":"b0bc80b1655a6802"}},{"code_sha256_prefix":"d0ea85d74c20dea9","entry":"get_dataset_class","repo":"facebookresearch/DomainBed","repo_kind":"official","path":"domainbed/datasets.py","file_url":"https://github.com/facebookresearch/DomainBed/blob/HEAD/domainbed/datasets.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"d0ea85d74c20dea9"}},{"code_sha256_prefix":"73f32252eedba6a4","entry":"num_environments","repo":"facebookresearch/DomainBed","repo_kind":"official","path":"domainbed/datasets.py","file_url":"https://github.com/facebookresearch/DomainBed/blob/HEAD/domainbed/datasets.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"73f32252eedba6a4"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}