{"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/frequency-masking-for-universal-deepfake","title":"Frequency Masking for Universal Deepfake Detection","arxiv_id":"2401.06506","date":"2024-01-12","proceeding":null,"authors":["Chandler Timm Doloriel","Ngai-Man Cheung"],"abstract":"We study universal deepfake detection. Our goal is to detect synthetic images from a range of generative AI approaches, particularly from emerging ones which are unseen during training of the deepfake detector. Universal deepfake detection requires outstanding generalization capability. Motivated by recently proposed masked image modeling which has demonstrated excellent generalization in self-supervised pre-training, we make the first attempt to explore masked image modeling for universal deepfake detection. We study spatial and frequency domain masking in training deepfake detectors. Based on empirical analysis, we propose a novel deepfake detector via frequency masking. Our focus on frequency domain is different from the majority, which primarily target spatial domain detection. Our comparative analyses reveal substantial performance gains over existing methods. Code and models are publicly available.","url_abs":"https://arxiv.org/abs/2401.06506v3","url_pdf":"https://arxiv.org/pdf/2401.06506v3.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":"frequency-masking-for-universal-deepfake","repo_url":"https://github.com/chandlerbing65nm/FakeImageDetection","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"Apache-2.0"}}],"tasks":[{"task_slug":"deepfake-detection","task_name":"DeepFake Detection"},{"task_slug":"face-swapping","task_name":"Face Swapping"}],"methods":[{"method_slug":"focus","method_name":"Focus"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2401.06506","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2401.06506"}},"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/chandlerbing65nm/FakeImageDetection","reach":{"status":"ok","spdx":"Apache-2.0"}}],"summary":{"ran_draft_wrong":2,"ran":3,"unverified":4},"by_repo_kind":{"official":{"samples":9,"ran":5,"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":"d9def42110729a85","entry":"conv1x1","repo":"chandlerbing65nm/FakeImageDetection","repo_kind":"official","path":"networks/resnet.py","file_url":"https://github.com/chandlerbing65nm/FakeImageDetection/blob/HEAD/networks/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":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"d9def42110729a85"}},{"code_sha256_prefix":"fac5364e2f53c6db","entry":"conv3x3","repo":"chandlerbing65nm/FakeImageDetection","repo_kind":"official","path":"networks/resnet.py","file_url":"https://github.com/chandlerbing65nm/FakeImageDetection/blob/HEAD/networks/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":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"fac5364e2f53c6db"}},{"code_sha256_prefix":"d586be93da3254ed","entry":"resnet18","repo":"chandlerbing65nm/FakeImageDetection","repo_kind":"official","path":"networks/resnet.py","file_url":"https://github.com/chandlerbing65nm/FakeImageDetection/blob/HEAD/networks/resnet.py","link_basis":"first_harvest_node","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":"d586be93da3254ed"}},{"code_sha256_prefix":"4850f0ddba8c4d94","entry":"train_augment","repo":"chandlerbing65nm/FakeImageDetection","repo_kind":"official","path":"utils.py","file_url":"https://github.com/chandlerbing65nm/FakeImageDetection/blob/HEAD/utils.py","link_basis":"first_harvest_node","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":"4850f0ddba8c4d94"}},{"code_sha256_prefix":"01cb495ab740ec20","entry":"val_augment","repo":"chandlerbing65nm/FakeImageDetection","repo_kind":"official","path":"utils.py","file_url":"https://github.com/chandlerbing65nm/FakeImageDetection/blob/HEAD/utils.py","link_basis":"first_harvest_node","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":"01cb495ab740ec20"}},{"code_sha256_prefix":"407a8ab9952dac52","entry":"construct_save_filename","repo":"chandlerbing65nm/FakeImageDetection","repo_kind":"official","path":"prune.py","file_url":"https://github.com/chandlerbing65nm/FakeImageDetection/blob/HEAD/prune.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"407a8ab9952dac52"}},{"code_sha256_prefix":"e0839d09ff4eb7c7","entry":"resnet50","repo":"chandlerbing65nm/FakeImageDetection","repo_kind":"official","path":"networks/resnet_mod.py","file_url":"https://github.com/chandlerbing65nm/FakeImageDetection/blob/HEAD/networks/resnet_mod.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"e0839d09ff4eb7c7"}},{"code_sha256_prefix":"53e09d6a8a49a38f","entry":"resnet50","repo":"chandlerbing65nm/FakeImageDetection","repo_kind":"official","path":"networks/resnet_npr.py","file_url":"https://github.com/chandlerbing65nm/FakeImageDetection/blob/HEAD/networks/resnet_npr.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"53e09d6a8a49a38f"}},{"code_sha256_prefix":"c96b43a26b0e5b2a","entry":"test_augment","repo":"chandlerbing65nm/FakeImageDetection","repo_kind":"official","path":"utils.py","file_url":"https://github.com/chandlerbing65nm/FakeImageDetection/blob/HEAD/utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"c96b43a26b0e5b2a"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}