Papers › IMMA: Immunizing text-to-image Models against Malicious Adaptation

IMMA: Immunizing text-to-image Models against Malicious Adaptation

30 Nov 2023arXiv:2311.18815archive 2025-07-28

Amber Yijia Zheng, Raymond A. Yeh

Advancements in open-sourced text-to-image models and fine-tuning methods have led to the increasing risk of malicious adaptation, i.e., fine-tuning to generate harmful/unauthorized content. Recent works, e.g., Glaze or MIST, have developed data-poisoning techniques which protect the data against adaptation methods. In this work, we consider an alternative paradigm for protection. We propose to ``immunize'' the model by learning model parameters that are difficult for the adaptation methods when fine-tuning malicious content; in short IMMA. Specifically, IMMA should be applied before the release of the model weights to mitigate these risks. Empirical results show IMMA's effectiveness against malicious adaptations, including mimicking the artistic style and learning of inappropriate/unauthorized content, over three adaptation methods: LoRA, Textual-Inversion, and DreamBooth. The code is available at \url{https://github.com/amberyzheng/IMMA}.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2311.18815")

Code

Syntology Ran 1 of 17 code samples harvested from 3 repositories linked to this paper; 16 have no recorded run. Of those that ran: 1 ran · our draft was wrong.

By repository: official repository: 7 samples from 2 repositories, 1 ran; community (archive-listed): 10 samples from 1 repository, 0 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

amberyzheng/imma officialmentioned in papermentioned on GitHubpytorch report
zhengyjzoe/imma officialmentioned in papermentioned on GitHubpytorchApache-2.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

17 samples harvested; 1 ran; 0 honoured the contract we drafted; 16 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · our draft was wrong
16unverified

Licence: 0 of the 17 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 3 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: 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. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

collate_fn zhengyjzoe/imma/train/defend_dreambooth_lora.py official repository ran · our draft was wrong Apache-2.0 (permissive) · 256040ccde7473f2 · report
compute_acc zhengyjzoe/imma/eval/imgnet_cls.py official repository unverified Apache-2.0 (permissive) · 9c1fd5d9c8bc4f4e · report
import_model_class_from_model_name_or_path zhengyjzoe/imma/train/defend_dreambooth.py official repository unverified Apache-2.0 (permissive) · 0eb3e94e8635150e · report
parse_args amberyzheng/imma/train/defend_dreambooth.py official repository unverified Apache-2.0 (permissive) · 71a0f97a99f2dca6 · report
parse_args zhengyjzoe/imma/train/defend_dreambooth_lora.py official repository unverified Apache-2.0 (permissive) · 406be0a733f187e9 · report
parse_args zhengyjzoe/imma/train/train_dreambooth.py official repository unverified Apache-2.0 (permissive) · 1a4e15d300f9ff4e · report
parse_args zhengyjzoe/imma/train/train_dreambooth_lora.py official repository unverified Apache-2.0 (permissive) · ecc1b168c8cc280f · report
Getdcg MindCode-4/code-14/DiffNet++/Metrics.py community (archive-listed) unverified Apache-2.0 (permissive) · 690566e1b97cef9c · report
Getidcg MindCode-4/code-14/DiffNet++/Metrics.py community (archive-listed) unverified Apache-2.0 (permissive) · 084eae410e04a51d · report
decode MindCode-4/code-14/AECRNet/data.py community (archive-listed) unverified Apache-2.0 (permissive) · 72814d7de33e5aef · report
get_eval_data_from_source MindCode-4/code-14/DiffNet++/datahelper.py community (archive-listed) unverified Apache-2.0 (permissive) · cd833e611f7a9e4e · report
get_val_data_from_source MindCode-4/code-14/DiffNet++/datahelper.py community (archive-listed) unverified Apache-2.0 (permissive) · e82646a1b0adaae5 · report
load_data MindCode-4/code-14/DiffNet++/datahelper.py community (archive-listed) unverified Apache-2.0 (permissive) · e7901acf683fac85 · report
load_data MindCode-4/code-14/DiffNet++/dataset.py community (archive-listed) unverified Apache-2.0 (permissive) · 191312b83f4e21ea · report
load_variavle MindCode-4/code-14/Alexnet-ABeffect/feature_predict_abm.py community (archive-listed) unverified Apache-2.0 (permissive) · ea40ca66b8b3349e · report
save_variable MindCode-4/code-14/Alexnet-ABeffect/feature_predict_abm.py community (archive-listed) unverified Apache-2.0 (permissive) · f34618312c4fa9c9 · report
set_random_seed MindCode-4/code-14/AECRNet/data.py community (archive-listed) unverified Apache-2.0 (permissive) · 14c181fabe865cbf · report

Tasks

Data PoisoningTAG

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections