{"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/arxiv-2608-00716","title":"Generated Images Are Easier to Forget: A Machine Unlearning Perspective for Synthetic Image Detection","arxiv_id":"2608.00716","date":"2026-08-01","proceeding":null,"authors":["Jun Nie","Yonggang Zhang","Tongliang Liu","Yiu-ming Cheung","Bo Han","Xinmei Tian"],"abstract":"Robust detection of generated images is critical to counter the misuse of generative models. Existing methods primarily depend on learning from human-annotated training datasets, limiting their generalization to unseen distributions. In contrast, large-scale vision models (LVMs) pre-trained on web-scale datasets exhibit exceptional generalization power through exposure to diverse distributions, offering a transformative paradigm for this task. However, our experimental results reveal that LVMs pre-trained on natural-image-dominated data can effectively capture the features of both natural and generated images, yielding comparably low losses and thus limited discriminative capacity between them. This prompts a key question: When and how do LVMs exhibit different behaviors when capturing features of natural and generated images? This investigation reveals an insight: during unlearning, LVMs exhibit disparate forgetting dynamics with feature degradation for generated images escalating faster than natural ones. Inspired by the disparate dynamics, we introduce two detection methods: 1) data-free detection, which prunes model parameters to induce unlearning without data access, and 2) data-driven detection, which optimizes LVMs to unlearn knowledge tied to generated images. Extensive experiments conducted on various benchmarks demonstrate that our unlearning-based approach outperforms conventional detection methods. By recasting the detection task as a problem of machine unlearning, our work establishes a new paradigm for generated image detection.","url_abs":"https://arxiv.org/abs/2608.00716","url_pdf":"https://arxiv.org/pdf/2608.00716","source":{"archive":null,"snapshot":"2025-07-28","note":"not in the Papers with Code archive (frozen at the snapshot)","row_kind":"graph","title_abstract_authors_date":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)"},"code_links":[],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":null,"mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2608.00716"}},"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":[{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/ZhendongWang6/DIRE","reach":{"status":"ok"}}],"summary":{"ran_draft_wrong":4,"ran":10,"ran_honours":1},"by_repo_kind":{"found_in_text":{"samples":15,"ran":15,"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":15,"samples":[{"code_sha256_prefix":"cfd76fd0d89574a4","entry":"approx_standard_normal_cdf","repo":"ZhendongWang6/DIRE","repo_kind":"found_in_text","path":"guided-diffusion/guided_diffusion/losses.py","file_url":"https://github.com/ZhendongWang6/DIRE/blob/HEAD/guided-diffusion/guided_diffusion/losses.py","link_basis":"plan_row","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"cfd76fd0d89574a4"}},{"code_sha256_prefix":"df5c01008896dc72","entry":"args_list2dict","repo":"ZhendongWang6/DIRE","repo_kind":"found_in_text","path":"utils/config.py","file_url":"https://github.com/ZhendongWang6/DIRE/blob/HEAD/utils/config.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"df5c01008896dc72"}},{"code_sha256_prefix":"d9def42110729a85","entry":"conv1x1","repo":"ZhendongWang6/DIRE","repo_kind":"found_in_text","path":"networks/resnet.py","file_url":"https://github.com/ZhendongWang6/DIRE/blob/HEAD/networks/resnet.py","link_basis":"plan_row","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":"d9def42110729a85"}},{"code_sha256_prefix":"fac5364e2f53c6db","entry":"conv3x3","repo":"ZhendongWang6/DIRE","repo_kind":"found_in_text","path":"networks/resnet.py","file_url":"https://github.com/ZhendongWang6/DIRE/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":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"fac5364e2f53c6db"}},{"code_sha256_prefix":"cd33283d615fb3d7","entry":"discretized_gaussian_log_likelihood","repo":"ZhendongWang6/DIRE","repo_kind":"found_in_text","path":"guided-diffusion/guided_diffusion/losses.py","file_url":"https://github.com/ZhendongWang6/DIRE/blob/HEAD/guided-diffusion/guided_diffusion/losses.py","link_basis":"plan_row","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"cd33283d615fb3d7"}},{"code_sha256_prefix":"8e88aa1370f2a213","entry":"get_network","repo":"ZhendongWang6/DIRE","repo_kind":"found_in_text","path":"utils/utils.py","file_url":"https://github.com/ZhendongWang6/DIRE/blob/HEAD/utils/utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"8e88aa1370f2a213"}},{"code_sha256_prefix":"e41367ad14ff58fd","entry":"get_param_groups_and_shapes","repo":"ZhendongWang6/DIRE","repo_kind":"found_in_text","path":"guided-diffusion/guided_diffusion/fp16_util.py","file_url":"https://github.com/ZhendongWang6/DIRE/blob/HEAD/guided-diffusion/guided_diffusion/fp16_util.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"e41367ad14ff58fd"}},{"code_sha256_prefix":"e20dd5102da3b050","entry":"make_master_params","repo":"ZhendongWang6/DIRE","repo_kind":"found_in_text","path":"guided-diffusion/guided_diffusion/fp16_util.py","file_url":"https://github.com/ZhendongWang6/DIRE/blob/HEAD/guided-diffusion/guided_diffusion/fp16_util.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"e20dd5102da3b050"}},{"code_sha256_prefix":"cf2798b666b231ca","entry":"normal_kl","repo":"ZhendongWang6/DIRE","repo_kind":"found_in_text","path":"guided-diffusion/guided_diffusion/losses.py","file_url":"https://github.com/ZhendongWang6/DIRE/blob/HEAD/guided-diffusion/guided_diffusion/losses.py","link_basis":"plan_row","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"cf2798b666b231ca"}},{"code_sha256_prefix":"96f72e4f60a4cafc","entry":"reshape_image","repo":"ZhendongWang6/DIRE","repo_kind":"found_in_text","path":"guided-diffusion/compute_dire.py","file_url":"https://github.com/ZhendongWang6/DIRE/blob/HEAD/guided-diffusion/compute_dire.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"96f72e4f60a4cafc"}},{"code_sha256_prefix":"8a9a86cb02c105a9","entry":"resnet18","repo":"ZhendongWang6/DIRE","repo_kind":"found_in_text","path":"networks/resnet.py","file_url":"https://github.com/ZhendongWang6/DIRE/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":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"8a9a86cb02c105a9"}},{"code_sha256_prefix":"091785dedeaee8eb","entry":"str2bool","repo":"ZhendongWang6/DIRE","repo_kind":"found_in_text","path":"utils/config.py","file_url":"https://github.com/ZhendongWang6/DIRE/blob/HEAD/utils/config.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"091785dedeaee8eb"}},{"code_sha256_prefix":"8e71ef5892d3daae","entry":"str2list","repo":"ZhendongWang6/DIRE","repo_kind":"found_in_text","path":"utils/config.py","file_url":"https://github.com/ZhendongWang6/DIRE/blob/HEAD/utils/config.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"8e71ef5892d3daae"}},{"code_sha256_prefix":"c4aa7911b7273146","entry":"to_cuda","repo":"ZhendongWang6/DIRE","repo_kind":"found_in_text","path":"utils/utils.py","file_url":"https://github.com/ZhendongWang6/DIRE/blob/HEAD/utils/utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"c4aa7911b7273146"}},{"code_sha256_prefix":"64fff1e30802b815","entry":"unflatten_master_params","repo":"ZhendongWang6/DIRE","repo_kind":"found_in_text","path":"guided-diffusion/guided_diffusion/fp16_util.py","file_url":"https://github.com/ZhendongWang6/DIRE/blob/HEAD/guided-diffusion/guided_diffusion/fp16_util.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"64fff1e30802b815"}}]},"arxiv_metadata":{"licence":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)","fields":["title","abstract","authors","date"],"primary_category":"cs.LG","source":"arxiv_2026.jsonl"},"syntology_extracted_results":{"kind":"leaderboard_placements","source":"Syntology's leaderboard-shaped extractor over the paper's own arXiv-HTML tables: a model pointed at a cell, the number was read from that cell and checked against the board's metric, dataset, split and scale, and an independent check accepted the entry; not reviewed by the paper's authors or the archive's editors","extractor_model":"global.anthropic.claude-sonnet-4-5-20250929-v1:0","verifier_model":null,"prompt_sha":"fa63d4bb9d755694","coverage":{"sentence":"Syntology has checked 6,264 of the 9,581 papers on this site that are newer than the archive; results from the others appear after they are checked.","papers_newer_than_archive":9581,"papers_checked":6264},"entries":[],"not_placed":{"boards":0,"rejected_by_independent_check":0,"refused_by_a_rule":0,"check_did_not_answer":0,"proposed_without_a_cell":0,"declined_by_site":0}}}