{"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/improving-out-of-distribution-robustness-via-1","title":"Improving Out-of-Distribution Robustness via Selective Augmentation","arxiv_id":"2201.00299","date":"2022-01-02","proceeding":null,"authors":["Huaxiu Yao","Yu Wang","Sai Li","Linjun Zhang","Weixin Liang","James Zou","Chelsea Finn"],"abstract":"Machine learning algorithms typically assume that training and test examples are drawn from the same distribution. However, distribution shift is a common problem in real-world applications and can cause models to perform dramatically worse at test time. In this paper, we specifically consider the problems of subpopulation shifts (e.g., imbalanced data) and domain shifts. While prior works often seek to explicitly regularize internal representations or predictors of the model to be domain invariant, we instead aim to learn invariant predictors without restricting the model's internal representations or predictors. This leads to a simple mixup-based technique which learns invariant predictors via selective augmentation called LISA. LISA selectively interpolates samples either with the same labels but different domains or with the same domain but different labels. Empirically, we study the effectiveness of LISA on nine benchmarks ranging from subpopulation shifts to domain shifts, and we find that LISA consistently outperforms other state-of-the-art methods and leads to more invariant predictors. We further analyze a linear setting and theoretically show how LISA leads to a smaller worst-group error.","url_abs":"https://arxiv.org/abs/2201.00299v3","url_pdf":"https://arxiv.org/pdf/2201.00299v3.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":"improving-out-of-distribution-robustness-via-1","repo_url":"https://github.com/huaxiuyao/LISA","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":null},{"paper_slug":"improving-out-of-distribution-robustness-via-1","repo_url":"https://github.com/divelab/good","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"GPL-3.0"}},{"paper_slug":"improving-out-of-distribution-robustness-via-1","repo_url":"https://github.com/nancyquris/xdomainmix","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null}],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2201.00299","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2201.00299"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+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":"deterministic:regex_extraction","url":"https://github.com/huaxiuyao/LISA","reach":null},{"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/divelab/good","reach":{"status":"ok","spdx":"GPL-3.0"}}],"summary":{"ran_draft_wrong":2,"unverified":2},"by_repo_kind":{"official":{"samples":3,"ran":2,"repositories":1},"listed":{"samples":1,"ran":0,"repositories":1}},"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":3,"samples":[{"code_sha256_prefix":"1f70e337aedfe65f","entry":"manifold_mix_process","repo":"huaxiuyao/LISA","repo_kind":"official","path":"domain_shifts/mixup.py","file_url":"https://github.com/huaxiuyao/LISA/blob/HEAD/domain_shifts/mixup.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"1f70e337aedfe65f"}},{"code_sha256_prefix":"3ad47faa64904e1b","entry":"mix_up","repo":"huaxiuyao/LISA","repo_kind":"official","path":"domain_shifts/mixup.py","file_url":"https://github.com/huaxiuyao/LISA/blob/HEAD/domain_shifts/mixup.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"3ad47faa64904e1b"}},{"code_sha256_prefix":"ea658e262cb13f8c","entry":"LISA","repo":"nancyquris/xdomainmix","repo_kind":"listed","path":"domainbed/algorithms.py","file_url":"https://github.com/nancyquris/xdomainmix/blob/HEAD/domainbed/algorithms.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":"ea658e262cb13f8c"}},{"code_sha256_prefix":"62696b8641e29094","entry":"manifold_mix_forward","repo":"huaxiuyao/LISA","repo_kind":"official","path":"domain_shifts/mixup.py","file_url":"https://github.com/huaxiuyao/LISA/blob/HEAD/domain_shifts/mixup.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"62696b8641e29094"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}