{"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/mma-diffusion-multimodal-attack-on-diffusion","title":"MMA-Diffusion: MultiModal Attack on Diffusion Models","arxiv_id":"2311.17516","date":"2023-11-29","proceeding":"CVPR 2024 1","authors":["Yijun Yang","Ruiyuan Gao","Xiaosen Wang","Tsung-Yi Ho","Nan Xu","Qiang Xu"],"abstract":"In recent years, Text-to-Image (T2I) models have seen remarkable advancements, gaining widespread adoption. However, this progress has inadvertently opened avenues for potential misuse, particularly in generating inappropriate or Not-Safe-For-Work (NSFW) content. Our work introduces MMA-Diffusion, a framework that presents a significant and realistic threat to the security of T2I models by effectively circumventing current defensive measures in both open-source models and commercial online services. Unlike previous approaches, MMA-Diffusion leverages both textual and visual modalities to bypass safeguards like prompt filters and post-hoc safety checkers, thus exposing and highlighting the vulnerabilities in existing defense mechanisms.","url_abs":"https://arxiv.org/abs/2311.17516v4","url_pdf":"https://arxiv.org/pdf/2311.17516v4.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":"mma-diffusion-multimodal-attack-on-diffusion","repo_url":"https://github.com/cure-lab/mma-diffusion","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"mma-diffusion-multimodal-attack-on-diffusion","repo_url":"https://github.com/yangyijune/mma-diffusion","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"NOASSERTION"}}],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2311.17516","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2311.17516"}},"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/yangyijune/mma-diffusion","reach":{"status":"ok","spdx":"NOASSERTION"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/cure-lab/mma-diffusion","reach":null}],"summary":{"ran_violates":1,"ran_draft_wrong":2,"ran_fixture":1,"unverified":1},"by_repo_kind":{"official":{"samples":5,"ran":4,"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":5,"samples":[{"code_sha256_prefix":"c8f23038de7bcdb7","entry":"cosine_distance","repo":"cure-lab/mma-diffusion","repo_kind":"official","path":"src/image_space_attack/image_editing_attack.py","file_url":"https://github.com/cure-lab/mma-diffusion/blob/HEAD/src/image_space_attack/image_editing_attack.py","link_basis":"first_harvest_node","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"c8f23038de7bcdb7"}},{"code_sha256_prefix":"13dc2cf88597bab9","entry":"decode_latents","repo":"cure-lab/mma-diffusion","repo_kind":"official","path":"src/image_space_attack/image_editing_attack.py","file_url":"https://github.com/cure-lab/mma-diffusion/blob/HEAD/src/image_space_attack/image_editing_attack.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"13dc2cf88597bab9"}},{"code_sha256_prefix":"f1d34b6601986ffa","entry":"logits","repo":"cure-lab/mma-diffusion","repo_kind":"official","path":"src/textual_attack.py","file_url":"https://github.com/cure-lab/mma-diffusion/blob/HEAD/src/textual_attack.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"f1d34b6601986ffa"}},{"code_sha256_prefix":"f99e03e03e6b2072","entry":"token_gradient","repo":"cure-lab/mma-diffusion","repo_kind":"official","path":"src/textual_attack.py","file_url":"https://github.com/cure-lab/mma-diffusion/blob/HEAD/src/textual_attack.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"f99e03e03e6b2072"}},{"code_sha256_prefix":"64762d38e7f09b9a","entry":"sample_control","repo":"cure-lab/mma-diffusion","repo_kind":"official","path":"src/textual_attack.py","file_url":"https://github.com/cure-lab/mma-diffusion/blob/HEAD/src/textual_attack.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"64762d38e7f09b9a"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}