{"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/jigmark-a-black-box-approach-for-enhancing","title":"JIGMARK: A Black-Box Approach for Enhancing Image Watermarks against Diffusion Model Edits","arxiv_id":"2406.03720","date":"2024-06-06","proceeding":null,"authors":["Minzhou Pan","Yi Zeng","Xue Lin","Ning Yu","Cho-Jui Hsieh","Peter Henderson","Ruoxi Jia"],"abstract":"In this study, we investigate the vulnerability of image watermarks to diffusion-model-based image editing, a challenge exacerbated by the computational cost of accessing gradient information and the closed-source nature of many diffusion models. To address this issue, we introduce JIGMARK. This first-of-its-kind watermarking technique enhances robustness through contrastive learning with pairs of images, processed and unprocessed by diffusion models, without needing a direct backpropagation of the diffusion process. Our evaluation reveals that JIGMARK significantly surpasses existing watermarking solutions in resilience to diffusion-model edits, demonstrating a True Positive Rate more than triple that of leading baselines at a 1% False Positive Rate while preserving image quality. At the same time, it consistently improves the robustness against other conventional perturbations (like JPEG, blurring, etc.) and malicious watermark attacks over the state-of-the-art, often by a large margin. Furthermore, we propose the Human Aligned Variation (HAV) score, a new metric that surpasses traditional similarity measures in quantifying the number of image derivatives from image editing.","url_abs":"https://arxiv.org/abs/2406.03720v1","url_pdf":"https://arxiv.org/pdf/2406.03720v1.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":"jigmark-a-black-box-approach-for-enhancing","repo_url":"https://github.com/pmzzs/JigMark","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"contrastive-learning","task_name":"Contrastive Learning"}],"methods":[{"method_slug":"contrastive-learning","method_name":"Contrastive Learning"},{"method_slug":"diffusion","method_name":"Diffusion"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2406.03720","atlas_url":"https://app.syntology.ai/?focus=2406.03720","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2406.03720"}},"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/pmzzs/JigMark","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran":5,"ran_draft_wrong":2,"ran_violates":3,"unverified":1},"by_repo_kind":{"official":{"samples":11,"ran":10,"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":"c95e88aa409419d4","entry":"add_margin","repo":"pmzzs/JigMark","repo_kind":"official","path":"ldm/util.py","file_url":"https://github.com/pmzzs/JigMark/blob/HEAD/ldm/util.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"c95e88aa409419d4"}},{"code_sha256_prefix":"238ea43c951282f0","entry":"adjust_learning_rate","repo":"pmzzs/JigMark","repo_kind":"official","path":"utils.py","file_url":"https://github.com/pmzzs/JigMark/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":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"238ea43c951282f0"}},{"code_sha256_prefix":"fe5dd5258046898c","entry":"always","repo":"pmzzs/JigMark","repo_kind":"official","path":"ldm/modules/x_transformer.py","file_url":"https://github.com/pmzzs/JigMark/blob/HEAD/ldm/modules/x_transformer.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"fe5dd5258046898c"}},{"code_sha256_prefix":"224b2a54606c71f2","entry":"contrastive_loss","repo":"pmzzs/JigMark","repo_kind":"official","path":"utils.py","file_url":"https://github.com/pmzzs/JigMark/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":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"224b2a54606c71f2"}},{"code_sha256_prefix":"424012cb37b31172","entry":"default","repo":"pmzzs/JigMark","repo_kind":"official","path":"ldm/modules/attention.py","file_url":"https://github.com/pmzzs/JigMark/blob/HEAD/ldm/modules/attention.py","link_basis":"harvester_set","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"424012cb37b31172"}},{"code_sha256_prefix":"4cb732f513d69dfd","entry":"disabled_train","repo":"pmzzs/JigMark","repo_kind":"official","path":"ldm/models/diffusion/classifier.py","file_url":"https://github.com/pmzzs/JigMark/blob/HEAD/ldm/models/diffusion/classifier.py","link_basis":"harvester_set","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"4cb732f513d69dfd"}},{"code_sha256_prefix":"aa5486a3650902d8","entry":"exists","repo":"pmzzs/JigMark","repo_kind":"official","path":"ldm/modules/attention.py","file_url":"https://github.com/pmzzs/JigMark/blob/HEAD/ldm/modules/attention.py","link_basis":"harvester_set","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"aa5486a3650902d8"}},{"code_sha256_prefix":"1ee4e2eb0cf3a009","entry":"load_and_preprocess","repo":"pmzzs/JigMark","repo_kind":"official","path":"ldm/util.py","file_url":"https://github.com/pmzzs/JigMark/blob/HEAD/ldm/util.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"1ee4e2eb0cf3a009"}},{"code_sha256_prefix":"592e56f15e7c03d1","entry":"process_txt_file","repo":"pmzzs/JigMark","repo_kind":"official","path":"utils.py","file_url":"https://github.com/pmzzs/JigMark/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":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"592e56f15e7c03d1"}},{"code_sha256_prefix":"9a299fe5ae09e407","entry":"uniq","repo":"pmzzs/JigMark","repo_kind":"official","path":"ldm/modules/attention.py","file_url":"https://github.com/pmzzs/JigMark/blob/HEAD/ldm/modules/attention.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"9a299fe5ae09e407"}},{"code_sha256_prefix":"afe61ba472afc243","entry":"pil_rectangle_crop","repo":"pmzzs/JigMark","repo_kind":"official","path":"ldm/util.py","file_url":"https://github.com/pmzzs/JigMark/blob/HEAD/ldm/util.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":"afe61ba472afc243"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}