atlas

Research map / Continual learning / Continual fine-tuning of LLMs

Leveraging Catastrophic Forgetting to Develop Safe Diffusion Models against Malicious Finetuning

NeurIPS 2024 · Continual learning › Continual fine-tuning of LLMs · approach: Synthetic data and merging for CLIP · 1 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes a contrastive-learning training policy that pushes harmful-concept latents away from clean data so that safety-aligned diffusion models resist malicious fine-tuning via catastrophic forgetting.

Problem

Safety-aligned text-to-image diffusion models (unlearned or filtered) can be re-enabled to generate harmful images by malicious fine-tuning on harmful data.

Approach

Treats harmful data as a new task that the model should forget: contrastive learning widens the latent distance between clean and harmful distributions while clean data is replayed, using either latent transformation or noise-shift guidance on harmful samples, so later harmful fine-tuning is hard to learn.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Apply latent transformation during safety alignmentSD v2.1 · Mistral-7B harmful promptsNSFW Score: 0.6034 -> 0.5084Helped
Apply noise guidance during safety alignmentSD v2.1 · Mistral-7B harmful promptsNSFW Score: 0.6034 -> 0.4517Helped
Use changing instead of fixed noise (ablation)NG safety alignment · Safety alignmentNSFW Score: 0.4517 -> 0.4345Helped
Use changing instead of fixed noise (ablation)NG safety alignment · Safety alignmentAesthetic Score: 6.6868 -> 6.7024No clear effect
Use changing instead of fixed noise (ablation)NG safety reinforcement · Safety reinforcementNSFW Score: 0.4421 -> 0.5407Hurt
Use changing instead of fixed noise (ablation)NG safety reinforcement · Safety reinforcementAesthetic Score: 6.4341 -> 6.3228No clear effect
Apply noise guidance safety alignmentSD v1.4 · I2P nudityIP: 0.35 -> 0.21Helped
Apply noise guidance safety alignmentSD v1.4 · UnlearnDiffAtkUnlearnDiffAtk ASR (%): 76.05% -> 38.03%Helped
Safety-align using NGSD v1.4 · COCO-30KFID-30k: 14.44 -> 19.27Hurt
Safety-reinforce using NGSD v1.4+ESD-Nudity-u1 · COCO-30KFID-30k: 17.65 -> 19.39Hurt

Surprising findings

Limitations

Experimental setup

Datasets: LAION-5B Mistral-7B-generated harmful prompts DiffusionDB COCO I2P Unsafe prompts COCO-30K

Benchmarks: LAION-5B prompts DiffusionDB COCO I2P Unsafe prompts COCO-30K

Metrics: NSFW Score Inappropriate Rate Human evaluation Aesthetic Score CLIP Score FID

Baselines: SD v1.4 SD v2.1 ESD-Nudity-u1 ESD-Violence-x1 SLD-Medium SLD-Max FMN ESD SLD SD XL

Builds on: Stable Diffusion ESD Selective Amnesia SLD

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy