Model Immunization Cannot Reliably Protect Models from Harmful Adaptation

Tong Li, Chenru Wang, Chris Thomas, Shengwei AnarXiv 2026

TL;DR

Think of "model immunization" as a vaccine designed to stop a generative AI from learning "bad" habits, like copying a specific artist's style. This paper reveals that these vaccines are incredibly fragile: if an attacker "mutates" their fine-tuning strategy even slightly—by using different images, changing a learning rate, or simply rescaling some internal weights—the protection collapses, and the model relearns the forbidden capability almost instantly.

What Problem Does This Paper Address?

Open-weight models (like Stable Diffusion or Llama) are the darlings of the AI community because they are highly adaptable. You can take a base model and "fine-tune" it on a small dataset to perform a specific task for a fraction of the cost of training from scratch.

However, this flexibility is a double-edged sword. Malicious actors can fine-tune these models to bypass safety filters or infringe on intellectual property (e.g., perfectly mimicking a living artist's style without permission). To counter this, researchers developed model immunization. The idea is to modify the model's weights before release so that any attempt to fine-tune it toward a "harmful" capability fails, while legitimate uses remain unaffected.

The authors of this paper argue that current immunization methods suffer from a fatal flaw: they are optimized against a "simulated" attacker. If the real-world attacker doesn't behave exactly like the simulation, the defense fails. They set out to see just how much "misalignment" it takes to break these protections.

Methods

The researchers systematically "red-teamed" four prominent immunization methods (IMMA, MIMA, CLAMP, and CONDNUM) across three domains: text-to-image generation, image classification, and large language models (LLMs).

They tested three dimensions of attacker misalignment:

  1. Harmful-Data Misalignment: Instead of using the exact images the defender used to "harden" the model, the attacker uses a different set of images representing the same concept. They also tested "model-aware" perturbations—adding tiny, calculated amounts of noise to the training images (using a technique called Projected Gradient Ascent, or PGA) to steer the fine-tuning process away from the "trap" set by the defender.
  2. Adaptation Strategy Misalignment: The attacker simply changes the hyperparameters of the fine-tuning process, such as increasing the learning rate or changing the rank of the Low-Rank Adaptation (LoRA) layers.
  3. Model Initialization Misalignment: This is perhaps the most clever attack. The attacker performs a "function-preserving reparameterization." They change the internal numbers (weights) of the model in a way that doesn't change the model's output at all (e.g., rescaling attention layers) but shifts the starting point of the fine-tuning optimization.
The pipeline of model immunization vs. various attacker strategies.

Datasets

The study utilized several standard benchmarks to ensure broad applicability:

  • Text-to-Image: Five distinct artistic styles (Van Gogh, Tyler Edlin, Kilian Eng, Thomas Kinkade, and Kelly McKernan).
  • Image Classification: Stanford Cars (car models), Food-101 (dishes), Flowers-102 (flower species), and VMMRdb-196 (vehicle makes/models).
  • Language Models: The SG-Bench dataset, which contains examples of harmful requests and safety-aligned responses.

Key Insights and Ideas

  • The Overfitting Trap: Immunization is essentially a "min-max" optimization problem. The defender tries to minimize the model's ability to learn a task while the simulated attacker tries to maximize it. The authors found that defenders are essentially "overfitting" to their simulated attacker. The protection is a narrow "basin" in the optimization landscape; a slight nudge allows the attacker to climb right out of it.
  • Math vs. Reality: Function-preserving changes (like attention rescaling) prove that immunization isn't actually removing a capability; it's just hiding it behind a specific numerical configuration.
  • The "Combined" Attack: While individual changes (like just changing the data) weaken the defense, combining them (e.g., using different data and a higher learning rate) often defeats the immunization entirely. In some cases, the "protected" model actually learned the harmful task better than a standard, un-immunized model.

Key Results

The researchers used the Similarity Gap Ratio (SGR) to measure protection. A high SGR means the defense is working; a low or negative SGR means it has failed.

  • Style Recovery: In text-to-image tasks, simple prompt or image misalignment slashed SGR scores. For example, on the IMMA defense, SGR for "Kelly McKernan" style dropped from 23.57 (plain adaptation) to -1.53 when multiple misalignments were combined. A negative score means the "protected" model was actually more vulnerable than the original.
Figure 2. Adapted samples for Kilian Eng and Thomas Kinkade. Defense adapts Mimmu with plain adaptation, and Combined with the combined harmful-data misalignments of Tab. 1. The Defense samples miss the Reference style, and the Combined samples recover it.
  • Weight Rescaling: Simply rescaling the attention weights by a factor of 10 (which doesn't change the model's initial behavior) dropped the SGR of the CLAMP defense on "Kilian Eng" style from 21.47 to a measly 1.96.
Figure 3. Adapted samples for Tyler Edlin under model initialization misalignment, with attention weights rescaled by c = 10. The Defense samples lose the artist’s style, and the Attention rescaling samples bring it back.
  • Classification: On the VMMRdb-196 dataset, model-aware noise (PGA) raised the attacker's accuracy significantly compared to the "immunized" baseline, proving the defense was easily bypassed by slightly perturbing the input data.

Limitations and Future Work

The authors acknowledge that their evaluation, while rigorous, only covers a subset of possible artists, concepts, and datasets. They suggest that future work should:

  1. Expand the Benchmark: Test against a wider variety of harmful capabilities.
  2. Develop Robust Immunization: Move beyond min-max optimization against a single simulated attacker toward defenses that are inherently robust to different optimization trajectories.
  3. Standardize Evaluation: Use the "misalignment" framework proposed in this paper as a standard test for any new immunization method to avoid a false sense of security.

In short, while model immunization is a noble goal, this paper serves as a sobering reminder that in the cat-and-mouse game of AI security, the "cat" (the defender) needs a much bigger net.

Summary updated

BibTeX
@misc{li2026model,
  author = {Tong Li and Chenru Wang and Chris Thomas and Shengwei An},
  title = {{Model Immunization Cannot Reliably Protect Models from Harmful Adaptation}},
  year = {2026},
  eprint = {2611.29815},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.29815},
}
Figure