atlas

Research map / Image generation / Text-to-image diffusion

SAFREE: Training-Free and Adaptive Guard for Safe Text-to-Image And Video Generation

ICLR 2025 · Image generation › Text-to-image diffusion · approach: Text-driven synthesis and semantic guidance · 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 SAFREE, a training-free method that filters unsafe concepts from text embeddings via orthogonal projection, self-validating denoising-step control, and Fourier-domain latent re-attention to make text-to-image and video diffusion generation safer without weight edits.

Problem

Safe generation in text-to-image and text-to-video diffusion models: existing unlearning/editing methods require training or weight changes and degrade quality, while prior training-free filters are brittle to implicit triggers and shift prompt distributions.

Approach

Detects trigger tokens by measuring how far each mask-pooled prompt embedding lies from a user-defined toxic concept subspace, projects those tokens orthogonally away from that subspace while staying in the prompt's input space, gates the filtered embedding over denoising steps with a cosine-based self-validating threshold, and attenuates low-frequency latent features in the Fourier domain.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Apply SAFREE to SD-v1.4SD-v1.4 · I2P, P4D, Ring-A-Bell, MMA-Diffusion, and UnlearnDiffAtkASR: 0.178 -> 0.034; 0.987 -> 0.384; 0.831 -> 0.114; 0.957 -> 0.585; 0.697 -> 0.282Mixed
Replace selected token embeddings with null embeddings (ablation)SAFREE · P4DASR: 0.417 -> 0.430Hurt
Replace selected token embeddings with null embeddings (ablation)SAFREE · COCOFID: 36.5 -> 37.6Hurt
Use orthogonal token projection instead of null token replacement (ablation)SAFREE · COCOFID: 37.6 -> 36.5Helped
Add self-validating filtering to orthogonal token projection (ablation)SAFREE · COCOFID: 36.5 -> 36.1Helped
Add self-validating filtering to orthogonal token projection (ablation)SAFREE · P4DASR: 0.417 -> 0.461Hurt
Add latent re-attention to orthogonal token projection (ablation)SAFREE · COCOFID: 36.5 -> 42.2Hurt
Apply SAFREE to SDXLSDXL · P4D, Ring-A-Bell, MMA-Diffusion, and UnlearnDiffAtkASR: 0.709 -> 0.285; 0.532 -> 0.241; 0.501 -> 0.169; 0.345 -> 0.246Helped
Apply SAFREE to SD-v3SD-v3 · P4D, Ring-A-Bell, MMA-Diffusion, and UnlearnDiffAtkASR: 0.715 -> 0.271; 0.646 -> 0.430; 0.528 -> 0.165; 0.598 -> 0.302Helped
Apply SAFREE to ZeroScopeT2VZeroScopeT2V · SafeSora Violence, Terrorism, Racism, Sexual, and Animal Abusesafety score: 71.68 -> 50.60; 76.00 -> 52.00; 73.33 -> 57.77; 51.51 -> 18.18; 66.66 -> 37.03Helped
Apply SAFREE to CogVideoX-5BCogVideoX-5B · SafeSora Violence, Terrorism, Racism, Sexual, and Animal Abusesafety score: 80.12 -> 59.03; 76.00 -> 56.00; 73.33 -> 64.44; 75.75 -> 30.30; 92.59 -> 48.14Helped

Limitations

Experimental setup

Datasets: I2P P4D Ring-A-Bell MMA-Diffusion UnlearnDiffAtk COCO-30k SafeSora

Benchmarks: I2P P4D Ring-A-Bell MMA-Diffusion UnlearnDiffAtk COCO-30k SafeSora

Metrics: attack success rate FID CLIP score TIFA LPIPS accuracy (MCQA)

Baselines: SLD-Medium SLD-Strong SLD-Max UCE RECE ESD SA CA MACE SDID

Builds on: classifier-free guidance Safe Latent Diffusion UCE

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