Lune

CVPR2025顶会

Detect-and-Guide: Self-regulation of Diffusion Models for Safe Text-to-Image Generation via Guideline Token Optimization

Feifei Li, Mi Zhang, Yiming Sun, Min Yang

摘要

Text-to-image diffusion models have achieved state-ofthe-art results in synthesis tasks; however, there is a growing concern about their potential misuse in creating harmful content. To mitigate these risks, post-hoc model intervention techniques, such as concept unlearning and safety guidance, have been developed. However, fine-tuning model weights or adapting the hidden states of the diffusion model operates in an uninterpretable way, making it unclear which part of the intermediate variables is responsible for unsafe generation. These interventions severely affect the sampling trajectory when erasing harmful concepts from complex, multi-concept prompts, thus hindering their practical use in real-world settings. In this work, we propose the safe generation framework Detect-and-Guide (DAG), leveraging the internal knowledge of diffusion models to perform self-diagnosis and fine-grained selfregulation during the sampling process. DAG first detects harmful concepts from noisy latents using refined crossattention maps of optimized tokens, then applies safety guidance with adaptive strength and editing regions to negate unsafe generation. The optimization only requires a small annotated dataset and can provide precise detection maps with generalizability and concept specificity. Moreover, DAG does not require fine-tuning of diffusion models, and therefore introduces no loss to their generation diversity. Experiments on erasing sexual content show that DAG achieves state-of-the-art safe generation performance, balancing harmfulness mitigation and text-following performance on multi-concept real-world prompts. * * * * Benign concepts -no changes J Unsafe-concept mitigation with minimal necessary changes J Non-Target Concept

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 5 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Set You Straight: Auto-Steering Denoising Trajectories to Sidestep Unwanted Concepts 引用了 High-Resolution Image Synthesis with Latent Diffusion Models
  • Set You Straight: Auto-Steering Denoising Trajectories to Sidestep Unwanted Concepts 引用了 Learning Transferable Visual Models From Natural Language Supervision
  • Set You Straight: Auto-Steering Denoising Trajectories to Sidestep Unwanted Concepts 引用了 Scaling Rectified Flow Transformers for High-Resolution Image Synthesis
  • Set You Straight: Auto-Steering Denoising Trajectories to Sidestep Unwanted Concepts 引用了 Erasing Concepts from Diffusion Models
  • DSS: Dynamic Semantic Steering for Robust Concept Erasure in Diffusion Models 引用了 High-Resolution Image Synthesis with Latent Diffusion Models
  • DSS: Dynamic Semantic Steering for Robust Concept Erasure in Diffusion Models 引用了 Learning Transferable Visual Models From Natural Language Supervision
  • DSS: Dynamic Semantic Steering for Robust Concept Erasure in Diffusion Models 引用了 Erasing Concepts from Diffusion Models
  • GrOCE : Graph-Guided Online Concept Erasure for Text-to-Image Diffusion Models 引用了 High-Resolution Image Synthesis with Latent Diffusion Models
  • GrOCE : Graph-Guided Online Concept Erasure for Text-to-Image Diffusion Models 引用了 Learning Transferable Visual Models From Natural Language Supervision
  • GrOCE : Graph-Guided Online Concept Erasure for Text-to-Image Diffusion Models 引用了 Erasing Concepts from Diffusion Models
  • What Lurks Within? Concept Auditing for Shared Diffusion Models at Scale 引用了 High-Resolution Image Synthesis with Latent Diffusion Models
  • What Lurks Within? Concept Auditing for Shared Diffusion Models at Scale 引用了 Learning Transferable Visual Models From Natural Language Supervision
  • What Lurks Within? Concept Auditing for Shared Diffusion Models at Scale 引用了 Erasing Concepts from Diffusion Models
  • Prompt-to-Prompt Image Editing with Cross-Attention Control 引用了 High-Resolution Image Synthesis with Latent Diffusion Models
  • Prompt-to-Prompt Image Editing with Cross-Attention Control 引用了 Learning Transferable Visual Models From Natural Language Supervision
  • Scaling Rectified Flow Transformers for High-Resolution Image Synthesis 引用了 High-Resolution Image Synthesis with Latent Diffusion Models
  • Scaling Rectified Flow Transformers for High-Resolution Image Synthesis 引用了 Learning Transferable Visual Models From Natural Language Supervision
  • Erasing Concepts from Diffusion Models 引用了 High-Resolution Image Synthesis with Latent Diffusion Models
  • Iterative Prompt Refinement for Safer Text-to-Image Generation 引用了 High-Resolution Image Synthesis with Latent Diffusion Models
  • Iterative Prompt Refinement for Safer Text-to-Image Generation 引用了 Erasing Concepts from Diffusion Models
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper5

  1. Set You Straight: Auto-Steering Denoising Trajectories to Sidestep Unwanted ConceptsLeyang Li, Shilin Lu, Yan Ren, Adams Wai-Kin KongACM MM 2025 · 4 次引用
  2. GrOCE : Graph-Guided Online Concept Erasure for Text-to-Image Diffusion ModelsNing Han, Zhenyu Ge, Feng Han, Yuhua Sun 等CVPR 2026 · 3 次引用
  3. DSS: Dynamic Semantic Steering for Robust Concept Erasure in Diffusion ModelsQinghui Gong, Zhengchun Zhou, Hua Meng, Yihuai Liang 等CCS 2026
  4. What Lurks Within? Concept Auditing for Shared Diffusion Models at ScaleXiaoyong (Brian) Yuan, Xiaolong Ma, Linke Guo, Lan ZhangCCS 2025
  5. Iterative Prompt Refinement for Safer Text-to-Image GenerationJinwoo Jeon, JunHyeok Oh, Hayeong Lee, Byung-Jun LeeEMNLP 2025

它引用的 Paper25

  1. Learning Transferable Visual Models From Natural Language SupervisionAlec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh 等ICML 2021 · 47,906 次引用
  2. High-Resolution Image Synthesis with Latent Diffusion ModelsRobin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser 等CVPR 2022 · 13,123 次引用
  3. Scaling Rectified Flow Transformers for High-Resolution Image SynthesisPatrick Esser, Sumith Kulal, Andreas Blattmann, Rahim Entezari 等ICML 2024 · 3,620 次引用
  4. Erasing Concepts from Diffusion ModelsRohit Gandikota, Joanna Materzynska, Jaden Fiotto-Kaufman, David BauICCV 2023 · 536 次引用
  5. Prompt-to-Prompt Image Editing with Cross-Attention ControlAmir Hertz, Ron Mokady, Jay Tenenbaum, Kfir Aberman 等ICLR 2023 · 361 次引用

相关 Paper

  1. Prompting4Debugging: Red-Teaming Text-to-Image Diffusion Models by Finding Problematic PromptsZhi-Yi Chin, Chieh-Ming Jiang, Ching-Chun Huang, Pin-Yu Chen 等ICML 2024 · 155 次引用
  2. Training-Free Safe Text Embedding Guidance for Text-to-Image Diffusion ModelsByeonghu Na, Mina Kang, Jiseok Kwak, Minsang Park 等NeurIPS 2025 · 8 次引用
  3. SafeCFG: Controlling Harmful Features with Dynamic Safe Guidance for Safe GenerationJiadong Pan, Liang Li, Hongcheng Gao, Zheng-Jun Zha 等ACM MM 2025
  4. Growth Inhibitors for Suppressing Inappropriate Image Concepts in Diffusion ModelsDie Chen, Zhiwen Li, Mingyuan Fan, Cen Chen 等ICLR 2025
  5. NDM: A Noise-driven Detection and Mitigation Framework against Implicit Sexual Intentions in Text-to-Image GenerationYitong Sun, Yao Huang, Ruochen Zhang, Huanran Chen 等ACM MM 2025 · 1 次引用
黄昏的海面,两侧是细线勾勒的悬崖