mlsanityData to 7 Oct 2026

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

arXiv 2410.12761 ↗First posted 16 Oct 2024cs.CV cs.AI cs.LGcited by 125

On the map: Diffusion models → Robustness, privacy and adversarial aspects

also in 1 more
Abstract (arXiv)

Recent advances in diffusion models have significantly enhanced their ability to generate high-quality images and videos, but they have also increased the risk of producing unsafe content. Existing unlearning/editing-based methods for safe generation remove harmful concepts from models but face several challenges: (1) They cannot instantly remove harmful concepts without training. (2) Their safe generation capabilities depend on collected training data. (3) They alter model weights, risking degradation in quality for content unrelated to toxic concepts. To address these, we propose SAFREE, a novel, training-free approach for safe T2I and T2V, that does not alter the model's weights. Specifically, we detect a subspace corresponding to a set of toxic concepts in the text embedding space and steer prompt embeddings away from this subspace, thereby filtering out harmful content while preserving intended semantics. To balance the trade-off between filtering toxicity and preserving safe concepts, SAFREE incorporates a novel self-validating filtering mechanism that dynamically adjusts the denoising steps when applying the filtered embeddings. Additionally, we incorporate adaptive re-attention mechanisms within the diffusion latent space to selectively diminish the influence of features related to toxic concepts at the pixel level. In the end, SAFREE ensures coherent safety checking, preserving the fidelity, quality, and safety of the output. SAFREE achieves SOTA performance in suppressing unsafe content in T2I generation compared to training-free baselines and effectively filters targeted concepts while maintaining high-quality images. It also shows competitive results against training-based methods. We extend SAFREE to various T2I backbones and T2V tasks, showcasing its flexibility and generalization. SAFREE provides a robust and adaptable safeguard for ensuring safe visual generation.

Key facts. Cited by 125 papers in the map (data through 7 Oct 2026). Placed in Robustness, privacy and adversarial aspects, one of 14 directions in Diffusion models. Builds on 72 of its 82 references that are in the map. First posted on arXiv 16 Oct 2024.

Builds on

72 of 82 references.

Closest ancestors · 22

Same direction, newest first

  1. 2024SteerDiff: Steering towards Safe Text-to-Image Diffusion Models3 Oct
  2. 2024Reliable and Efficient Concept Erasure of Text-to-Image Diffusion Models17 Jul
  3. 2024T2IShield: Defending Against Backdoors on Text-to-Image Diffusion Models5 Jul
  4. 2024Understanding the Impact of Negative Prompts: When and How Do They Take Effect?5 Jun
  5. 2024ConceptPrune: Concept Editing in Diffusion Models via Skilled Neuron Pruning29 May
  6. 2024Pruning for Robust Concept Erasing in Diffusion Models26 May
  7. 2024R.A.C.E.: Robust Adversarial Concept Erasure for Secure Text-to-Image Diffusion Model25 May
  8. 2024Unlearning Concepts in Diffusion Model via Concept Domain Correction and Concept Preserving Gradient24 May
  9. 2024Espresso: Robust Concept Filtering in Text-to-Image Models30 Apr
  10. 2024Jailbreaking Prompt Attack: A Controllable Adversarial Attack against Diffusion Models2 Apr
  11. 2024MACE: Mass Concept Erasure in Diffusion Models10 Mar
  12. 2023One-Dimensional Adapter to Rule Them All: Concepts, Diffusion Models and Erasing Applications26 Dec
10 more
  1. 2023Receler: Reliable Concept Erasing of Text-to-Image Diffusion Models via Lightweight Erasers29 Nov
  2. 2023MMA-Diffusion: MultiModal Attack on Diffusion Models29 Nov
  3. 2023To Generate or Not? Safety-Driven Unlearned Diffusion Models Are Still Easy To Generate Unsafe Images ... For Now18 Oct
  4. 2023Ring-A-Bell! How Reliable are Concept Removal Methods for Diffusion Models?16 Oct
  5. 2023Prompting4Debugging: Red-Teaming Text-to-Image Diffusion Models by Finding Problematic Prompts12 Sep
  6. 2023Unified Concept Editing in Diffusion Models25 Aug
  7. 2023Forget-Me-Not: Learning to Forget in Text-to-Image Diffusion Models30 Mar
  8. 2023Ablating Concepts in Text-to-Image Diffusion Models23 Mar
  9. 2023Erasing Concepts from Diffusion Models13 Mar
  10. 2022Safe Latent Diffusion: Mitigating Inappropriate Degeneration in Diffusion Models9 Nov

Other references · 50

  1. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
  2. 2020Language Models are Few-Shot Learnerscited by 32,199
  3. 2015U-Net: Convolutional Networks for Biomedical Image Segmentationcited by 19,604
  4. 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,694
  5. 2014Microsoft COCO: Common Objects in Contextcited by 17,498
  6. 2024The Llama 3 Herd of Modelscited by 14,192
  7. 2018The Unreasonable Effectiveness of Deep Features as a Perceptual Metriccited by 11,029
  8. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  9. 2022Scalable Diffusion Models with Transformerscited by 5,931
  10. 2022Classifier-Free Diffusion Guidancecited by 5,717
  11. 2023SDXL: Improving Latent Diffusion Models for High-Resolution Image Synthesiscited by 4,290
  12. 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 2,914
38 more
  1. 2024CogVideoX: Text-to-Video Diffusion Models with An Expert Transformercited by 2,198
  2. 2022Imagen Video: High Definition Video Generation with Diffusion Modelscited by 1,765
  3. 2023Jailbroken: How Does LLM Safety Training Fail?cited by 1,565
  4. 2024Visual Autoregressive Modeling: Scalable Image Generation via Next-Scale Predictioncited by 1,005
  5. 2023Simple and Controllable Music Generationcited by 480
  6. 2023VideoPoet: A Large Language Model for Zero-Shot Video Generationcited by 479
  7. 2023TIFA: Accurate and Interpretable Text-to-Image Faithfulness Evaluation with Question Answeringcited by 416
  8. 2022AudioGen: Textually Guided Audio Generationcited by 292
  9. 2023On Evaluating Adversarial Robustness of Large Vision-Language Modelscited by 281
  10. 2023Jailbreak in pieces: Compositional Adversarial Attacks on Multi-Modal Language Modelscited by 260
  11. 2024Rethinking Machine Unlearning for Large Language Modelscited by 247
  12. 2023FreeU: Free Lunch in Diffusion U-Netcited by 195
  13. 2023Selective Amnesia: A Continual Learning Approach to Forgetting in Deep Generative Modelscited by 175
  14. 2023Negative-prompt Inversion: Fast Image Inversion for Editing with Text-guided Diffusion Modelscited by 172
  15. 2024Safety Fine-Tuning at (Almost) No Cost: A Baseline for Vision Large Language Modelscited by 160
  16. 2023Can Sensitive Information Be Deleted From LLMs? Objectives for Defending Against Extraction Attackscited by 156
  17. 2023Editing Implicit Assumptions in Text-to-Image Diffusion Modelscited by 128
  18. 2024Debug like a Human: A Large Language Model Debugger via Verifying Runtime Execution Step-by-stepcited by 123
  19. 2024Beyond Functional Correctness: Exploring Hallucinations in LLM-Generated Codecited by 106
  20. 2023FLIRT: Feedback Loop In-context Red Teamingcited by 81
  21. 2024Not All Noises Are Created Equally:Diffusion Noise Selection and Optimizationcited by 70
  22. 2023Self-Discovering Interpretable Diffusion Latent Directions for Responsible Text-to-Image Generationcited by 69
  23. 2024Latent Guard: a Safety Framework for Text-to-image Generationcited by 68
  24. 2024T2VSafetyBench: Evaluating the Safety of Text-to-Video Generative Modelscited by 66
  25. 2023Guided Image Synthesis via Initial Image Editing in Diffusion Modelcited by 63
  26. 2024GuardT2I: Defending Text-to-Image Models from Adversarial Promptscited by 61
  27. 2024Direct Unlearning Optimization for Robust and Safe Text-to-Image Modelscited by 50
  28. 2024Continuous, Subject-Specific Attribute Control in T2I Models by Identifying Semantic Directionscited by 39
  29. 2024SafeSora: Towards Safety Alignment of Text2Video Generation via a Human Preference Datasetcited by 34
  30. 2024ART: Automatic Red-teaming for Text-to-Image Models to Protect Benign Userscited by 32
  31. 2024Robust Concept Erasure Using Task Vectorscited by 27
  32. 2024Automatic Jailbreaking of the Text-to-Image Generative AI Systemscited by 22
  33. 2024The Crystal Ball Hypothesis in diffusion models: Anticipating object positions from initial noisecited by 18
  34. 2024Improving Compositional Attribute Binding in Text-to-Image Generative Models via Enhanced Text Embeddingscited by 18
  35. 2024Spatial-Aware Latent Initialization for Controllable Image Generationcited by 15
  36. 2024Editing Massive Concepts in Text-to-Image Diffusion Modelscited by 15
  37. 2024Groot: Adversarial Testing for Generative Text-to-Image Models with Tree-based Semantic Transformationcited by 12
  38. 2024Ethical-Lens: Curbing Malicious Usages of Open-Source Text-to-Image Modelscited by 4

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 5; 2025: 52; 2026: 68.

125 papers.

Sort:

By area:

  1. 2025SAeUron: Interpretable Concept Unlearning in Diffusion Models with Sparse Autoencoderscited by 75
  2. 2024Precise, Fast, and Low-cost Concept Erasure in Value Space: Orthogonal Complement Matterscited by 38
  3. 2025SPEED: Scalable, Precise, and Efficient Concept Erasure for Diffusion Modelscited by 33
  4. 2024Jailbreak Attacks and Defenses against Multimodal Generative Models: A Surveycited by 31
  5. 2024TraSCE: Trajectory Steering for Concept Erasurecited by 25
  6. 2025CURE: Concept Unlearning via Orthogonal Representation Editing in Diffusion Modelscited by 24
  7. 2025Training-Free Safe Denoisers for Safe Use of Diffusion Modelscited by 19
  8. 2025T2VShield: Model-Agnostic Jailbreak Defense for Text-to-Video Modelscited by 17
  9. 2025TIDE : Temporal-Aware Sparse Autoencoders for Interpretable Diffusion Transformers in Image Generationcited by 16
  10. 2025T2I-RiskyPrompt: A Benchmark for Safety Evaluation, Attack, and Defense on Text-to-Image Modelcited by 16
  11. 2025TRCE: Towards Reliable Malicious Concept Erasure in Text-to-Image Diffusion Modelscited by 14
  12. 2025When Are Concepts Erased From Diffusion Models?cited by 14
38 more
  1. 2026Mass Concept Erasure in Diffusion Models with Concept Hierarchycited by 14
  2. 2025Minimalist Concept Erasure in Generative Modelscited by 13
  3. 2025T2VUnlearning: A Concept Erasing Method for Text-to-Video Diffusion Modelscited by 12
  4. 2025VideoEraser: Concept Erasure in Text-to-Video Diffusion Modelscited by 12
  5. 2025Concept Corrector: Erase concepts on the fly for text-to-image diffusion modelscited by 11
  6. 2025Unlearning Sensitive Information in Multimodal LLMs: Benchmark and Attack-Defense Evaluationcited by 11
  7. 2025Video Unlearning via Low-Rank Refusal Vectorcited by 11
  8. 2025A Comprehensive Survey on Concept Erasure in Text-to-Image Diffusion Modelscited by 9
  9. 2026When Safety Collides: Resolving Multi-Category Harmful Conflicts in Text-to-Image Diffusion via Adaptive Safety Guidancecited by 9
  10. 2025Red-Teaming Text-to-Image Systems by Rule-based Preference Modelingcited by 8
  11. 2025A Single Neuron Works: Precise Concept Erasure in Text-to-Image Diffusion Modelscited by 8
  12. 2025EraseFlow: Learning Concept Erasure Policies via GFlowNet-Driven Alignmentcited by 8
  13. 2025CE-SDWV: Effective and Efficient Concept Erasure for Text-to-Image Diffusion Models via a Semantic-Driven Word Vocabularycited by 7
  14. 2025Mitigating Sexual Content Generation via Embedding Distortion in Text-conditioned Diffusion Modelscited by 7
  15. 2025UPCORE: Utility-Preserving Coreset Selection for Balanced Unlearningcited by 7
  16. 2025Concept Steerers: Leveraging K-Sparse Autoencoders for Test-Time Controllable Generationscited by 6
  17. 2025Localizing Knowledge in Diffusion Transformerscited by 6
  18. 2025Semantic Surgery: Zero-Shot Concept Erasure in Diffusion Modelscited by 6
  19. 2025Training-Free Safe Text Embedding Guidance for Text-to-Image Diffusion Modelscited by 6
  20. 2026VII: Visual Instruction Injection for Jailbreaking Image-to-Video Generation Modelscited by 6
  21. 2026Multimodal Unlearning Across Vision, Language, Video, and Audio: Survey of Methods, Datasets, and Benchmarkscited by 6
  22. 2025Plug-and-Play Interpretable Responsible Text-to-Image Generation via Dual-Space Multi-facet Concept Controlcited by 5
  23. 2026FG-OrIU: Towards Better Forgetting via Feature-Gradient Orthogonality for Incremental Unlearningcited by 5
  24. 2025PurifyGen: A Risk-Discrimination and Semantic-Purification Model for Safe Text-to-Image Generationcited by 4
  25. 2026Safety-Guided Flow (SGF): A Unified Framework for Negative Guidance in Safe Generationcited by 4
  26. 2026Neighbor-Aware Localized Concept Erasure in Text-to-Image Diffusion Modelscited by 4
  27. 2026Co-occurring Associated REtained concepts in Diffusion Unlearningcited by 4
  28. 2025Responsible Diffusion: A Comprehensive Survey on Safety, Ethics, and Trust in Diffusion Modelscited by 3
  29. 2025CGCE: Classifier-Guided Concept Erasure in Generative Modelscited by 3
  30. 2025Now You See It, Now You Don't - Instant Concept Erasure for Safe Text-to-Image and Video Generationcited by 3
  31. 2026SafeGen-Bench: Benchmarking Safety in Image-Conditioned Text-to-Video Generationcited by 3
  32. 2025DPO Kernels: A Semantically-Aware, Kernel-Enhanced, and Divergence-Rich Paradigm for Direct Preference Optimizationcited by 2
  33. 2025Rethinking the Vulnerability of Concept Erasure and a New Methodcited by 2
  34. 2025Mind the Trojan Horse: Image Prompt Adapter Enabling Scalable and Deceptive Jailbreakingcited by 2
  35. 2025VCE: Safe Autoregressive Image Generation via Visual Contrast Exploitationcited by 2
  36. 2025A Unified Framework for Diffusion Model Unlearning with f-Divergencecited by 2
  37. 2025Multimodal Prompt Decoupling Attack on the Safety Filters in Text-to-Image Modelscited by 2
  38. 2025Not Every Time and Frequency Need to Be Forgotten in Diffusion Unlearningcited by 2

50 most cited of 125 All 125 (JSON)

Similar, not cited

Close in wording, no citation either way

  1. 2025Detect-and-Guide: Self-regulation of Diffusion Models for Safe Text-to-Image Generation via Guideline Token Optimization
  2. 2025Responsible Diffusion Models via Constraining Text Embeddings within Safe Regions
  3. 2026Test-Time Scaling for Safe Text-Guided Image Generation via Intermediate Clean Estimates
  4. 2025SafeCtrl: Region-Based Safety Control for Text-to-Image Diffusion via Detect-Then-Suppress
  5. 2023Towards Safe Self-Distillation of Internet-Scale Text-to-Image Diffusion Models
  6. 2024Safety Alignment Backfires: Preventing the Re-emergence of Suppressed Concepts in Fine-tuned Text-to-Image Diffusion Models
  7. 2025SafeGuider: Robust and Practical Content Safety Control for Text-to-Image Models
  8. 2026SafeCtrl: Region-Aware Safety Control for Text-to-Image Diffusion via Detect-Then-Suppress