{"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/robust-wide-robust-watermarking-against","title":"Robust-Wide: Robust Watermarking against Instruction-driven Image Editing","arxiv_id":"2402.12688","date":"2024-02-20","proceeding":null,"authors":["Runyi Hu","Jie Zhang","Ting Xu","Jiwei Li","Tianwei Zhang"],"abstract":"Instruction-driven image editing allows users to quickly edit an image according to text instructions in a forward pass. Nevertheless, malicious users can easily exploit this technique to create fake images, which could cause a crisis of trust and harm the rights of the original image owners. Watermarking is a common solution to trace such malicious behavior. Unfortunately, instruction-driven image editing can significantly change the watermarked image at the semantic level, making current state-of-the-art watermarking methods ineffective. To remedy it, we propose Robust-Wide, the first robust watermarking methodology against instruction-driven image editing. Specifically, we follow the classic structure of deep robust watermarking, consisting of the encoder, noise layer, and decoder. To achieve robustness against semantic distortions, we introduce a novel Partial Instruction-driven Denoising Sampling Guidance (PIDSG) module, which consists of a large variety of instruction injections and substantial modifications of images at different semantic levels. With PIDSG, the encoder tends to embed the watermark into more robust and semantic-aware areas, which remains in existence even after severe image editing. Experiments demonstrate that Robust-Wide can effectively extract the watermark from the edited image with a low bit error rate of nearly 2.6% for 64-bit watermark messages. Meanwhile, it only induces a neglectable influence on the visual quality and editability of the original images. Moreover, Robust-Wide holds general robustness against different sampling configurations and other popular image editing methods such as ControlNet-InstructPix2Pix, MagicBrush, Inpainting, and DDIM Inversion. Codes and models are available at https://github.com/hurunyi/Robust-Wide.","url_abs":"https://arxiv.org/abs/2402.12688v3","url_pdf":"https://arxiv.org/pdf/2402.12688v3.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":"links_only","authors_date_abstract":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license), from the Kaggle arXiv metadata snapshot of 2026-09-12"},"code_links":[{"paper_slug":"robust-wide-robust-watermarking-against","repo_url":"https://github.com/hurunyi/robust-wide","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2402.12688","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2402.12688"}},"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/hurunyi/robust-wide","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"deterministic:regex_extraction","url":"https://github.com/hurunyi/Robust-Wide","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran":14,"ran_draft_wrong":1,"ran_violates":1,"unverified":3},"by_repo_kind":{"official":{"samples":19,"ran":16,"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":"210bfe7e3edfaf78","entry":"ConvTBNRelu","repo":"hurunyi/Robust-Wide","repo_kind":"official","path":"model.py","file_url":"https://github.com/hurunyi/Robust-Wide/blob/HEAD/model.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"210bfe7e3edfaf78"}},{"code_sha256_prefix":"22ca713c2d2b31e2","entry":"DecoderResnet","repo":"hurunyi/Robust-Wide","repo_kind":"official","path":"model.py","file_url":"https://github.com/hurunyi/Robust-Wide/blob/HEAD/model.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"22ca713c2d2b31e2"}},{"code_sha256_prefix":"3bc37018ec7a5a7e","entry":"DoubleConv","repo":"hurunyi/Robust-Wide","repo_kind":"official","path":"model.py","file_url":"https://github.com/hurunyi/Robust-Wide/blob/HEAD/model.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"3bc37018ec7a5a7e"}},{"code_sha256_prefix":"9eca04b186a73e7b","entry":"Down","repo":"hurunyi/Robust-Wide","repo_kind":"official","path":"model.py","file_url":"https://github.com/hurunyi/Robust-Wide/blob/HEAD/model.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"9eca04b186a73e7b"}},{"code_sha256_prefix":"0c1e41d36661e780","entry":"ExpandNet","repo":"hurunyi/Robust-Wide","repo_kind":"official","path":"model.py","file_url":"https://github.com/hurunyi/Robust-Wide/blob/HEAD/model.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"0c1e41d36661e780"}},{"code_sha256_prefix":"90ffc7b3f94bda72","entry":"GroupNorm32","repo":"hurunyi/Robust-Wide","repo_kind":"official","path":"model.py","file_url":"https://github.com/hurunyi/Robust-Wide/blob/HEAD/model.py","link_basis":"first_harvest_node","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":"90ffc7b3f94bda72"}},{"code_sha256_prefix":"2d6fcc19b89b20d5","entry":"Interpolate","repo":"hurunyi/Robust-Wide","repo_kind":"official","path":"model.py","file_url":"https://github.com/hurunyi/Robust-Wide/blob/HEAD/model.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"2d6fcc19b89b20d5"}},{"code_sha256_prefix":"fb889d8e2f339b39","entry":"ResidualBlock","repo":"hurunyi/Robust-Wide","repo_kind":"official","path":"model.py","file_url":"https://github.com/hurunyi/Robust-Wide/blob/HEAD/model.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"fb889d8e2f339b39"}},{"code_sha256_prefix":"09d83aed81bca74e","entry":"UNet","repo":"hurunyi/Robust-Wide","repo_kind":"official","path":"model.py","file_url":"https://github.com/hurunyi/Robust-Wide/blob/HEAD/model.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"09d83aed81bca74e"}},{"code_sha256_prefix":"694ad5c8799b9dea","entry":"convert_to_np","repo":"hurunyi/robust-wide","repo_kind":"official","path":"dataset.py","file_url":"https://github.com/hurunyi/robust-wide/blob/HEAD/dataset.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":"694ad5c8799b9dea"}},{"code_sha256_prefix":"4c738e5fa93f3953","entry":"decoded_message_error_rate","repo":"hurunyi/robust-wide","repo_kind":"official","path":"utils.py","file_url":"https://github.com/hurunyi/robust-wide/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":"4c738e5fa93f3953"}},{"code_sha256_prefix":"312ff076fac287f7","entry":"decoded_message_error_rate_batch","repo":"hurunyi/robust-wide","repo_kind":"official","path":"utils.py","file_url":"https://github.com/hurunyi/robust-wide/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":"312ff076fac287f7"}},{"code_sha256_prefix":"e093542bc06414d7","entry":"load_image","repo":"hurunyi/robust-wide","repo_kind":"official","path":"evaluate.py","file_url":"https://github.com/hurunyi/robust-wide/blob/HEAD/evaluate.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":"e093542bc06414d7"}},{"code_sha256_prefix":"6bcd7bd2081d9725","entry":"preprocess_images","repo":"hurunyi/robust-wide","repo_kind":"official","path":"dataset.py","file_url":"https://github.com/hurunyi/robust-wide/blob/HEAD/dataset.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":"6bcd7bd2081d9725"}},{"code_sha256_prefix":"7ba441437913fb8d","entry":"preprocess_train","repo":"hurunyi/robust-wide","repo_kind":"official","path":"dataset.py","file_url":"https://github.com/hurunyi/robust-wide/blob/HEAD/dataset.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":"7ba441437913fb8d"}},{"code_sha256_prefix":"7c508037b40522af","entry":"str2bool","repo":"hurunyi/robust-wide","repo_kind":"official","path":"utils.py","file_url":"https://github.com/hurunyi/robust-wide/blob/HEAD/utils.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":"7c508037b40522af"}},{"code_sha256_prefix":"61d082d3fdf98155","entry":"EncoderUnet","repo":"hurunyi/Robust-Wide","repo_kind":"official","path":"model.py","file_url":"https://github.com/hurunyi/Robust-Wide/blob/HEAD/model.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":"61d082d3fdf98155"}},{"code_sha256_prefix":"51e0fb9e015af2d3","entry":"Up","repo":"hurunyi/Robust-Wide","repo_kind":"official","path":"model.py","file_url":"https://github.com/hurunyi/Robust-Wide/blob/HEAD/model.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":"51e0fb9e015af2d3"}},{"code_sha256_prefix":"a1bb128109808e32","entry":"WatermarkModel","repo":"hurunyi/Robust-Wide","repo_kind":"official","path":"model.py","file_url":"https://github.com/hurunyi/Robust-Wide/blob/HEAD/model.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":"a1bb128109808e32"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}