{"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/self-challenging-improves-cross-domain","title":"Self-Challenging Improves Cross-Domain Generalization","arxiv_id":"2007.02454","date":"2020-07-05","proceeding":"ECCV 2020 8","authors":["Zeyi Huang","Haohan Wang","Eric P. Xing","Dong Huang"],"abstract":"Convolutional Neural Networks (CNN) conduct image classification by activating dominant features that correlated with labels. When the training and testing data are under similar distributions, their dominant features are similar, which usually facilitates decent performance on the testing data. The performance is nonetheless unmet when tested on samples from different distributions, leading to the challenges in cross-domain image classification. We introduce a simple training heuristic, Representation Self-Challenging (RSC), that significantly improves the generalization of CNN to the out-of-domain data. RSC iteratively challenges (discards) the dominant features activated on the training data, and forces the network to activate remaining features that correlates with labels. This process appears to activate feature representations applicable to out-of-domain data without prior knowledge of new domain and without learning extra network parameters. We present theoretical properties and conditions of RSC for improving cross-domain generalization. The experiments endorse the simple, effective and architecture-agnostic nature of our RSC method.","url_abs":"https://arxiv.org/abs/2007.02454v1","url_pdf":"https://arxiv.org/pdf/2007.02454v1.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":"self-challenging-improves-cross-domain","repo_url":"https://github.com/CiaoHe/Nex_RSC","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"BSD-2-Clause"}},{"paper_slug":"self-challenging-improves-cross-domain","repo_url":"https://github.com/DarioFontanel/OWR-VisualDomains","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok"}},{"paper_slug":"self-challenging-improves-cross-domain","repo_url":"https://github.com/DeLightCMU/RSC","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"BSD-2-Clause"}},{"paper_slug":"self-challenging-improves-cross-domain","repo_url":"https://github.com/EscVM/RSC-Wrapper","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"tf","reach":{"status":"ok","spdx":"Apache-2.0"}},{"paper_slug":"self-challenging-improves-cross-domain","repo_url":"https://github.com/HaohanWang/ImageNet-Sketch","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"self-challenging-improves-cross-domain","repo_url":"https://github.com/cherise215/maxstyle","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"self-challenging-improves-cross-domain","repo_url":"https://github.com/dnap512/SelfReg","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"self-challenging-improves-cross-domain","repo_url":"https://github.com/facebookresearch/DomainBed","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-classification","task_name":"Image Classification"},{"task_slug":"image-classification","task_name":"image-classification"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[{"leaderboard":"/sota/domain-generalization-on-office-home","task":"Domain Generalization","dataset":"Office-Home","model":"RSC (ResNet18)","rank_in_archive_order":43,"of":45,"metrics":{"Average Accuracy":"63.12"},"uses_additional_data":false},{"leaderboard":"/sota/domain-generalization-on-pacs-2","task":"Domain Generalization","dataset":"PACS","model":"RSC (ResNet-50)","rank_in_archive_order":35,"of":133,"metrics":{"Average Accuracy":"87.83"},"uses_additional_data":false},{"leaderboard":"/sota/domain-generalization-on-pacs-2","task":"Domain Generalization","dataset":"PACS","model":"RSC (Resnet-50, DomainBed)","rank_in_archive_order":53,"of":133,"metrics":{"Average Accuracy":"85.2"},"uses_additional_data":false},{"leaderboard":"/sota/domain-generalization-on-pacs-2","task":"Domain Generalization","dataset":"PACS","model":"RSC (Resnet-18)","rank_in_archive_order":54,"of":133,"metrics":{"Average Accuracy":"85.15"},"uses_additional_data":false},{"leaderboard":"/sota/domain-generalization-on-pacs-2","task":"Domain Generalization","dataset":"PACS","model":"RSC (AlexNet)","rank_in_archive_order":102,"of":133,"metrics":{"Average Accuracy":"76.05"},"uses_additional_data":false},{"leaderboard":"/sota/domain-generalization-on-vlcs","task":"Domain Generalization","dataset":"VLCS","model":"RSC (AlexNet)","rank_in_archive_order":36,"of":37,"metrics":{"Average Accuracy":"75.43"},"uses_additional_data":false}],"syntology":{"syntology_url":"https://syntology.ai/paper/2007.02454","atlas_url":"https://app.syntology.ai/?focus=2007.02454","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2007.02454"}},"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/HaohanWang/ImageNet-Sketch","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/DarioFontanel/OWR-VisualDomains","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/dnap512/SelfReg","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/CiaoHe/Nex_RSC","reach":{"status":"ok","spdx":"BSD-2-Clause"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/cherise215/maxstyle","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/EscVM/RSC-Wrapper","reach":{"status":"ok","spdx":"Apache-2.0"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/DeLightCMU/RSC","reach":{"status":"ok","spdx":"BSD-2-Clause"}}],"summary":{"ran_draft_wrong":2,"ran":4,"unverified":1},"by_repo_kind":{"listed":{"samples":7,"ran":6,"repositories":3}},"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":0,"samples":[{"code_sha256_prefix":"d9def42110729a85","entry":"conv1x1","repo":"DeLightCMU/RSC","repo_kind":"listed","path":"ImageNet/resnet.py","file_url":"https://github.com/DeLightCMU/RSC/blob/HEAD/ImageNet/resnet.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"BSD-2-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"d9def42110729a85"}},{"code_sha256_prefix":"160bb14bd76201b4","entry":"conv3x3","repo":"DeLightCMU/RSC","repo_kind":"listed","path":"ImageNet/resnet.py","file_url":"https://github.com/DeLightCMU/RSC/blob/HEAD/ImageNet/resnet.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"BSD-2-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"160bb14bd76201b4"}},{"code_sha256_prefix":"52231145e6cbb0b4","entry":"get_optim_and_scheduler","repo":"CiaoHe/Nex_RSC","repo_kind":"listed","path":"Domain_Generalization/optimizer/optimizer_helper.py","file_url":"https://github.com/CiaoHe/Nex_RSC/blob/HEAD/Domain_Generalization/optimizer/optimizer_helper.py","link_basis":"plan_row","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-2-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"52231145e6cbb0b4"}},{"code_sha256_prefix":"c72ea600b55ead51","entry":"grayscale","repo":"EscVM/RSC-Wrapper","repo_kind":"listed","path":"utils/data_augmentation_pacs.py","file_url":"https://github.com/EscVM/RSC-Wrapper/blob/HEAD/utils/data_augmentation_pacs.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"c72ea600b55ead51"}},{"code_sha256_prefix":"49b9eb19eaab3cd4","entry":"horizontal_flip","repo":"EscVM/RSC-Wrapper","repo_kind":"listed","path":"utils/data_augmentation_pacs.py","file_url":"https://github.com/EscVM/RSC-Wrapper/blob/HEAD/utils/data_augmentation_pacs.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"49b9eb19eaab3cd4"}},{"code_sha256_prefix":"ca3b7595e2160b63","entry":"random_crop","repo":"EscVM/RSC-Wrapper","repo_kind":"listed","path":"utils/data_augmentation_pacs.py","file_url":"https://github.com/EscVM/RSC-Wrapper/blob/HEAD/utils/data_augmentation_pacs.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"ca3b7595e2160b63"}},{"code_sha256_prefix":"b7acfb34cb504027","entry":"resnet18","repo":"DeLightCMU/RSC","repo_kind":"listed","path":"ImageNet/resnet.py","file_url":"https://github.com/DeLightCMU/RSC/blob/HEAD/ImageNet/resnet.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-2-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"b7acfb34cb504027"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}