Text-to-Image (T2I) generation is a popular AI-generated content (AIGC) technology enabling diverse and creative image synthesis. However, some outputs may contain Not Safe For Work (NSFW) content (e.g., violence), violating community guidelines. Detecting NSFW content efficiently and accurately, known as external safeguarding, is essential. Existing external safeguards fall into two types: text filters, which analyze user prompts but overlook T2I model-specific variations and are prone to adversarial attacks; and image filters, which analyze final generated images but are computationally costly and introduce latency. Diffusion models, the foundation of modern T2I systems like Stable Diffusion, generate images through iterative denoising using a U-Net architecture with ResNet and Transformer blocks. We observe that: (1) early denoising steps define the semantic layout of the image, and (2) cross-attention layers in U-Net are crucial for aligning text and image regions. Based on these insights, we propose Wukong, a transformer-based NSFW detection framework that leverages intermediate outputs from early denoising steps and reuses U-Net's pre-trained cross-attention parameters. Wukong operates within the diffusion process, enabling early detection without waiting for full image generation. We also introduce a new dataset containing prompts, seeds, and image-specific NSFW labels, and evaluate Wukong on this and two public benchmarks. Results show that Wukong significantly outperforms text-based safeguards and achieves comparable accuracy of image filters, while offering much greater efficiency.
T2VSafetyBench: Evaluating the Safety of Text-to-Video Generative Models
UCAS(中国科学院大学);Tsinghua University(清华大学);Institute for AI(人工智能研究院);Tsinghua-Bosch Joint ML Center(清华-博世联合机器学习中心);THBI Lab(THBI实验室);BNRist Center(BNRist中心);RealAI
When Safe Concepts Become Unsafe: Multi-Concept Compositional Vulnerabilities in Text-to-Image Models
School of Cyber Science and Engineering, Xi'an Jiaotong University(西安交通大学计算机科学与工程学院);CISPA Helmholtz Center for Information Security(信息安全研究中心);School of Cyber Science and Engineering, Wuhan University(武汉大学计算机科学与工程学院)
Universally Unfiltered and Unseen:Input-Agnostic Multimodal Jailbreaks against Text-to-Image Model Safeguards
Information Engineering University Zhengzhou China;School of Computer Science, \ University Wuhan China;Xi’an Jiaotong University Xi’an China;Wuhan University Wuhan China;Information Engineering University;School of Computer Science, \ University;Xi’an Jiaotong University;Wuhan University
Patronus: Safeguarding Text-to-Image Models against White-Box Adversaries
College of Computing and Data Science, Nanyang Technological University(南洋理工大学计算与数据科学学院);College of Electrical Engineering and the Ubiquitous System Security Lab (USSLab), Zhejiang University(浙江大学电子工程学院和无处不在系统安全实验室);ETH Zurich(苏黎世联邦理工学院)
SafeCtrl: Region-Aware Safety Control for Text-to-Image Diffusion via Detect-Then-Suppress
School of Computer Science and Technology, Fudan University(复旦大学计算机科学技术学院);Institute of Big Data, Fudan University(复旦大学大数据研究院);Nanjing University of Information Science and Technology(南京信息工程大学)
When Safety Collides: Resolving Multi-Category Harmful Conflicts in Text-to-Image Diffusion via Adaptive Safety Guidance
Sydney AI Centre, The University of Sydney(悉尼人工智能中心,悉尼大学);City University of Hong Kong(香港城市大学);TMLR Group, Hong Kong Baptist University(Baptist大学TMLR小组)
The Path to Reconciling Quality and Safety in Text-to-Image Generation: Dataset, Method, and Evaluation
Institute of Artificial Intelligence, Beihang University(北京航空航天大学人工智能研究院);State Key Laboratory of Virtual Reality Technology and Systems, Beihang University(北京航空航天大学虚拟现实技术与系统国家重点实验室)
PromptSafe: Gated Prompt Tuning for Safe Text-to-Image Generation
Beihang University(北航);Beijing University of Posts and Telecommunications(北京邮电大学);Taishan University(泰山大学);Nanyang Technological University(南洋理工大学);Henan University of Science and Technology(河南科技大学)
SaTPO: Text-to-Image Safety Alignment via Transition Preference Optimization
Institute of Information Engineering, Chinese Academy of Sciences(中国科学院信息工程研究所);University of Chinese Academy of Sciences(中国科学院大学);University of Science and Technology Beijing(北京科技大学);Nanyang Technological University(南洋理工大学);Beihang University(北京航空航天大学);Sun Yat-sen University(中山大学)
SP-Guard: Selective Prompt-adaptive Guidance for Safe Text-to-Image Generation
Department of Electrical and Computer Engineering, Seoul National University, Seoul, South Korea(电气与计算机工程系,首尔国立大学,首尔,韩国);IPAI / ASRI / INMC, Seoul National University, Seoul, South Korea(IPAI/ASRI/INMC,首尔国立大学,首尔,韩国)
Safe-Sora: Safe Text-to-Video Generation via Graphical Watermarking
Tsinghua University(清华大学);Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所);South China University of Technology(华南理工大学);Guangdong Laboratory of Artificial Intelligence and Digital Economy (SZ)(广东人工智能与数字经济实验室);Singapore Management University(新加坡管理学院)
Direct Unlearning Optimization for Robust and Safe Text-to-Image Models
Seoul National University(首尔大学);Korea University(高丽大学);NAVER AI Lab(NAVER AI实验室);NAVER Cloud(NAVER云);Korea Institute for Advanced Study (KIAS)(韩国高等研究院);AI Institute of Seoul National University or SNU AIIS(首尔大学AI研究所(SNU AIIS))