Model Immunization Cannot Reliably Protect Models from Harmful Adaptation
Organizations: Virginia Tech
Abstract
Efficient fine-tuning techniques have substantially reduced the cost of adapting open-weight models, enabling malicious actors to readily fine-tune them toward harmful capabilities. In response, model immunization modifies a pretrained checkpoint to resist subsequent adaptation toward designated harmful capabilities while preserving its utility and adaptability for benign tasks. Furthermore, a few immunization methods have sought to keep their protection robust to some changes in the attacker's adaptation. However, fine-tuning offers attackers many more low-cost options, and we observe that existing methods still substantially overfit to the attacker configuration they are optimized against. Such overfitting stays hidden when immunization is evaluated under, or near, this configuration, so the reported protection may give a false sense of security. To rigorously evaluate model immunization, we conduct experiments, varying one component of this configuration at a time: the harmful data, the adaptation strategy, or the model initialization. Across four immunization methods on text-to-image generation and image classification, with additional results on language models, these variations substantially degrade the protection, and in many cases the immunized model relearns the harmful capability nearly as well as the un-immunized model. Existing immunization therefore cannot reliably protect models, leaving them vulnerable to harmful adaptation.
Figures & tables
| Defense | Attack | Van Gogh | T. Edlin | K. Eng | T. Kinkade | K. McKernan |
|---|---|---|---|---|---|---|
| Imma | Plain adaptation | |||||
| Image misalignment | ||||||
| Prompt misalignment | ||||||
| Model-aware (PGA) | ||||||
| Model-agnostic (noise) | ||||||
| Combined |
| Defense | Artist | Plain adapt. | ||
|---|---|---|---|---|
| Imma | Van Gogh | |||
| T. Edlin | ||||
| K. Eng | ||||
| T. Kinkade | ||||
| K. McKernan | ||||
| CLAMP | Van Gogh |
| Defense | Artist | Plain adapt. | ||
|---|---|---|---|---|
| Imma | Van Gogh | |||
| T. Edlin | ||||
| K. Eng | ||||
| T. Kinkade | ||||
| K. McKernan | ||||
| CLAMP | Van Gogh |
| Plain adapt. | Prompt | ||
|---|---|---|---|
| Group 1 | |||
| Group 2 | |||
| Group 3 | |||
| Group 4 | |||
| Mean |
| Plain adaptation | Model-agnostic (noise) | Model-aware (PGA) | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Defense | Dataset | |||||||||
| CondNum | Stanford Cars | |||||||||
| Food-101 | ||||||||||
| Flowers-102 | ||||||||||
| VMMRdb-196 | ||||||||||
| CLAMP | Stanford Cars | |||||||||
| Artist | Plain adaptation | Prompt misalignment |
|---|---|---|
| Van Gogh | ||
| T. Edlin | ||
| K. Eng | ||
| T. Kinkade | ||
| K. McKernan |
Appendix figures & tables23 assets
Supplementary material from the paper’s appendix.
Appendix
| Defense | Attack | |
|---|---|---|
| Imma | Plain adaptation | |
| Crop | ||
| CLAMP | Plain adaptation | |
| Crop |
| Defense | Van Gogh | T. Edlin | K. Eng | T. Kinkade | K. McKernan | Mean | ||
|---|---|---|---|---|---|---|---|---|
| Imma | ||||||||
| CLAMP | ||||||||
| Defense | Van Gogh | T. Edlin | K. Eng | T. Kinkade | K. McKernan | Mean | ||
|---|---|---|---|---|---|---|---|---|
| Imma | ||||||||
| CLAMP | ||||||||
| Artist | Imma | CLAMP |
|---|---|---|
| Van Gogh | ||
| T. Edlin | ||
| K. Eng | ||
| T. Kinkade | ||
| K. McKernan |
| Dataset | Plain adapt. | ||
|---|---|---|---|
| Stanford Cars | |||
| Flowers-102 |
| Dataset | Adaptation | |||
|---|---|---|---|---|
| Stanford Cars | Plain | |||
| Adam | ||||
| Food-101 | Plain | |||
| Adam | ||||
| Flowers-102 | Plain | |||
| Adam |
| Defense | Attack | Van Gogh | K. McKernan |
|---|---|---|---|
| Imma | Plain adapt. | ||
| CLAMP | Plain adapt. | ||
| Diffusion ( Imma /CLAMP) | Classification ( CondNum /CLAMP) | LLM (CLAMP) | |
|---|---|---|---|
| Released model | Immunized SD-v1.4 U-Net | Immunized ResNet-18 | Immunized instruct LLM |
| Adaptation | Rank- LoRA fine-tuning | Linear probe, frozen backbone | Rank- LoRA fine-tuning |
| Attack set | artist images and captions | Stanford Cars, Food-101, Flowers-102, VMMRdb-196 | SG-Bench requests with harmful answers |
| Clean evaluation | Reference images | Clean test splits | held-out SG-Bench requests |
| Utility | CLIP, DINO, and | Top- accuracy | Harmful rate via Llama-Guard-3-1B and WildGuard |
| Model-aware budget | ( CondNum ), (CLAMP) | tokens |
| Plain adapt. | Prompt | Prompt | Prompt | |||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Group 1 | ||||||||||
| Group 2 | ||||||||||
| Group 3 | ||||||||||
| Group 4 | ||||||||||
| Artist | Name-free prompt |
|---|---|
| Van Gogh | a post-impressionist oil painting, swirling brushstrokes, thick impasto, vivid blue and yellow |
| Tyler Edlin | an epic fantasy environment concept art, dramatic painterly landscape, cinematic lighting |
| Kilian Eng | a psychedelic retro-futuristic sci-fi illustration, bold flat color planes in orange teal and purple, intricate fine linework, surreal alien dreamscape, vintage 1970s science-fiction comic art |
| Thomas Kinkade | a luminous idyllic cottage painting, glowing golden window light at dusk, blossoming gardens along a winding stone path, warm amber and rose highlights, nostalgic romantic realism |
| Kelly McKernan | an ethereal watercolor and gouache figure illustration, translucent bleeding washes and delicate ink linework, iridescent teal magenta and violet, flowing celestial and floral motifs, art nouveau elegance |
| Claude Monet | an impressionist plein-air oil painting, loose broken brushstrokes, shimmering light on water and garden flowers, soft pastel blue green and lilac, hazy atmospheric reflections |
| Dataset | ||||
|---|---|---|---|---|
| Stanford Cars | Real | |||
| FLUX | ||||
| Flowers-102 | Real | |||
| FLUX | ||||
| VMMRdb-196 | Real | |||
| FLUX |
| Artist | Prompts in the immunization set |
|---|---|
| Van Gogh | An artwork by Van Gogh; A painting by Van Gogh; An oil painting by Van Gogh; A canvas artwork in the style of Van Gogh; A fine art painting by Van Gogh |
| Tyler Edlin | An artwork by Tyler Edlin; A painting by Tyler Edlin; A digital artwork by Tyler Edlin; A fantasy environment artwork by Tyler Edlin; A concept art piece by Tyler Edlin |
| Kilian Eng | An artwork by Kilian Eng; A painting by Kilian Eng; An illustration by Kilian Eng; A science fiction artwork by Kilian Eng; A retro futuristic illustration by Kilian Eng |
| Thomas Kinkade | An artwork by Thomas Kinkade; A painting by Thomas Kinkade; An oil painting by Thomas Kinkade; A landscape painting by Thomas Kinkade; A village scene painted by Thomas Kinkade |
| Kelly McKernan | An artwork by Kelly McKernan; A painting by Kelly McKernan; An illustration by Kelly McKernan; A fantasy illustration by Kelly McKernan; A whimsical painting by Kelly McKernan |
| Dataset | ||||
|---|---|---|---|---|
| Clean | Noise | PGA | ||
| Stanford Cars | ||||
| Food-101 | ||||
| Flowers-102 | ||||
| VMMRdb-196 | ||||
| CondNum | CLAMP | |||
|---|---|---|---|---|
| Dataset | Model-agnostic | Model-aware | Model-agnostic | Model-aware |
| Stanford Cars | ||||
| Food-101 | ||||
| Flowers-102 | ||||
| VMMRdb-196 | ||||
| Plain adaptation | Model-aware (PGA) | |||||||
|---|---|---|---|---|---|---|---|---|
| Defense | Artist | Metric | SGR | SGR | ||||
| Imma | Van Gogh | CLIP | ||||||
| DINO | ||||||||
| LPIPS | ||||||||
| T. Edlin | CLIP | |||||||
| DINO | ||||||||
| Defense | Van Gogh | T. Edlin | K. Eng | T. Kinkade | K. McKernan | |
|---|---|---|---|---|---|---|
| Imma | ||||||
| CLAMP | ||||||
| Plain adaptation | Random suffix | Model-aware (GCG) | |||||||
|---|---|---|---|---|---|---|---|---|---|
| Judge | Model | ||||||||
| Llama-Guard-3-1B | Gemma-2-2B | ||||||||
| Qwen2.5-1.5B | |||||||||
| Qwen3-1.7B | |||||||||
| WildGuard | Gemma-2-2B | ||||||||
| Qwen2.5-1.5B | |||||||||
| Llama-Guard-3-1B | WildGuard | |||
|---|---|---|---|---|
| Model | GCG | Random | GCG | Random |
| Gemma-2-2B | ||||
| Qwen2.5-1.5B | ||||
| Qwen3-1.7B | ||||