{"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/a-fourier-based-framework-for-domain","title":"A Fourier-based Framework for Domain Generalization","arxiv_id":"2105.11120","date":"2021-05-24","proceeding":"CVPR 2021 1","authors":["Qinwei Xu","Ruipeng Zhang","Ya zhang","Yanfeng Wang","Qi Tian"],"abstract":"Modern deep neural networks suffer from performance degradation when evaluated on testing data under different distributions from training data. Domain generalization aims at tackling this problem by learning transferable knowledge from multiple source domains in order to generalize to unseen target domains. This paper introduces a novel Fourier-based perspective for domain generalization. The main assumption is that the Fourier phase information contains high-level semantics and is not easily affected by domain shifts. To force the model to capture phase information, we develop a novel Fourier-based data augmentation strategy called amplitude mix which linearly interpolates between the amplitude spectrums of two images. A dual-formed consistency loss called co-teacher regularization is further introduced between the predictions induced from original and augmented images. Extensive experiments on three benchmarks have demonstrated that the proposed method is able to achieve state-of-the-arts performance for domain generalization.","url_abs":"https://arxiv.org/abs/2105.11120v1","url_pdf":"https://arxiv.org/pdf/2105.11120v1.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":"a-fourier-based-framework-for-domain","repo_url":"https://github.com/MediaBrain-SJTU/FACT","is_official":1,"mentioned_in_paper":0,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"data-augmentation","task_name":"Data Augmentation"},{"task_slug":"domain-generalization","task_name":"Domain Generalization"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2105.11120","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2105.11120"}},"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/MediaBrain-SJTU/FACT","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran_honours":1,"unverified":4},"by_repo_kind":{"official":{"samples":5,"ran":1,"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":0,"samples":[{"code_sha256_prefix":"3fb68ed6809a8085","entry":"sigmoid_rampup","repo":"MediaBrain-SJTU/FACT","repo_kind":"official","path":"utils/tools.py","file_url":"https://github.com/MediaBrain-SJTU/FACT/blob/HEAD/utils/tools.py","link_basis":"harvester_set","language":"python","status":"ran_honours","verification_level":2,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"3fb68ed6809a8085"}},{"code_sha256_prefix":"38448f01fc3e0c77","entry":"calculate_correct","repo":"MediaBrain-SJTU/FACT","repo_kind":"official","path":"utils/tools.py","file_url":"https://github.com/MediaBrain-SJTU/FACT/blob/HEAD/utils/tools.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":"38448f01fc3e0c77"}},{"code_sha256_prefix":"b3b741e487a41547","entry":"cosine_fully_connected_layer","repo":"MediaBrain-SJTU/FACT","repo_kind":"official","path":"models/classifier.py","file_url":"https://github.com/MediaBrain-SJTU/FACT/blob/HEAD/models/classifier.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":"b3b741e487a41547"}},{"code_sha256_prefix":"f2d413920bb77b76","entry":"denorm","repo":"MediaBrain-SJTU/FACT","repo_kind":"official","path":"utils/tools.py","file_url":"https://github.com/MediaBrain-SJTU/FACT/blob/HEAD/utils/tools.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":"f2d413920bb77b76"}},{"code_sha256_prefix":"cb36f0527a1858d8","entry":"get_optim_and_scheduler","repo":"MediaBrain-SJTU/FACT","repo_kind":"official","path":"optimizer/optimizer_helper.py","file_url":"https://github.com/MediaBrain-SJTU/FACT/blob/HEAD/optimizer/optimizer_helper.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":"cb36f0527a1858d8"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}