{"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/frustratingly-simple-domain-generalization","title":"Frustratingly Simple Domain Generalization via Image Stylization","arxiv_id":"2006.11207","date":"2020-06-19","proceeding":null,"authors":["Nathan Somavarapu","Chih-Yao Ma","Zsolt Kira"],"abstract":"Convolutional Neural Networks (CNNs) show impressive performance in the standard classification setting where training and testing data are drawn i.i.d. from a given domain. However, CNNs do not readily generalize to new domains with different statistics, a setting that is simple for humans. In this work, we address the Domain Generalization problem, where the classifier must generalize to an unknown target domain. Inspired by recent works that have shown a difference in biases between CNNs and humans, we demonstrate an extremely simple yet effective method, namely correcting this bias by augmenting the dataset with stylized images. In contrast with existing stylization works, which use external data sources such as art, we further introduce a method that is entirely in-domain using no such extra sources of data. We provide a detailed analysis as to the mechanism by which the method works, verifying our claim that it changes the shape/texture bias, and demonstrate results surpassing or comparable to the state of the arts that utilize much more complex methods.","url_abs":"https://arxiv.org/abs/2006.11207v2","url_pdf":"https://arxiv.org/pdf/2006.11207v2.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":"frustratingly-simple-domain-generalization","repo_url":"https://github.com/GT-RIPL/DomainGeneralization-Stylization","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"frustratingly-simple-domain-generalization","repo_url":"https://github.com/mousecpn/Domain-Generalization-via-Image-Stylization","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":"image-stylization","task_name":"Image Stylization"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[{"leaderboard":"/sota/domain-generalization-on-pacs-2","task":"Domain Generalization","dataset":"PACS","model":"DGIS (Resnet-18, Painting)","rank_in_archive_order":57,"of":133,"metrics":{"Average Accuracy":"84.64"},"uses_additional_data":false},{"leaderboard":"/sota/domain-generalization-on-pacs-2","task":"Domain Generalization","dataset":"PACS","model":"DGIS (Alexnet, Painting)","rank_in_archive_order":101,"of":133,"metrics":{"Average Accuracy":"76.62"},"uses_additional_data":false}],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2006.11207","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2006.11207"}},"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":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/mousecpn/Domain-Generalization-via-Image-Stylization","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/GT-RIPL/DomainGeneralization-Stylization","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran_draft_wrong":2},"by_repo_kind":{"listed":{"samples":2,"ran":2,"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":2,"samples":[{"code_sha256_prefix":"f198f4601aa19d27","entry":"get_random_subset","repo":"mousecpn/Domain-Generalization-via-Image-Stylization","repo_kind":"listed","path":"utils/datasets.py","file_url":"https://github.com/mousecpn/Domain-Generalization-via-Image-Stylization/blob/HEAD/utils/datasets.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"f198f4601aa19d27"}},{"code_sha256_prefix":"7f475c53219a2a17","entry":"get_split_dataset_info","repo":"mousecpn/Domain-Generalization-via-Image-Stylization","repo_kind":"listed","path":"utils/datasets.py","file_url":"https://github.com/mousecpn/Domain-Generalization-via-Image-Stylization/blob/HEAD/utils/datasets.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"7f475c53219a2a17"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}