Harmful Content Generation in Text-to-Image Models: Capabilities and Moderation Limitations
cs.CV, cs.AI
Submitted: 2026-10-05
Updated: 2026-10-05
Comments: Accepted for publication in ACM Transactions on Intelligent Systems and Technology (TIST)
Code: https://github.com/rrgeorge-pdcontributions/NSFW-Words-List
License: http://creativecommons.org/licenses/by/4.0/
The gist: Text-to-image generative models can produce highly realistic imagery but also raise concerns about harmful misuse.
Abstract
Text-to-image generative models can produce highly realistic imagery but also raise concerns about harmful misuse. While safety mechanisms exist, systematic evaluations of their effectiveness against realistic attacks remain limited. We present a systematic evaluation of harmful content generation across five open text-to-image models using an automated pipeline that transforms legitimate news captions into unsafe prompts targeting sexually explicit content, violence/gore, harmful stereotypes, self-harm, and hate speech. We evaluate both standard models with built-in safety mechanisms and community fine-tuned variants that bypass content restrictions. A human evaluation of 1,500 generated images shows high harmful-content generation rates: 89.2% for gore-related prompts, 47.6% for sexually explicit content, 43.6% for harmful stereotypes, 46.0% for hate speech, and 34.5% for self-harm, predominantly through graphic violence. Models show substantial capability for generating violent and stereotypical content, while community fine-tuned variants are particularly vulnerable to sexually explicit prompts. Generation quality is largely preserved under harmful prompting, producing imagery of sufficient fidelity to pose risks for disinformation and abuse; FLUX.1-dev produces clearly realistic harmful images in 30.9% of cases. We further evaluate automated moderation systems and find substantial detection gaps that allow unsafe images to evade filtering. Finally, we assess synthetic image detectors and show that models trained only on benign datasets perform worse on explicit content, while more diverse training data improves detection, highlighting semantic distribution gaps in current approaches. These findings expose limitations in current generation safeguards, moderation systems, and synthetic image detection, highlighting the need for stronger defenses against misuse at scale.
Sources
- Phi-4 Technical Report
- Multimodal datasets: misogyny, pornography, and malignant stereotypes
- On the Opportunities and Risks of Foundation Models
- Large Scale GAN Training for High Fidelity Natural Image Synthesis
- What makes fake images detectable? Understanding properties that generalize
- TWIGMA: A dataset of AI-Generated Images with Metadata From Twitter
- The Synthetic Media Shift: Tracking the Rise, Virality, and Detectability of AI-Generated Multimodal Misinformation
- On the detection of synthetic images generated by diffusion models
- AMMeBa: A Large-Scale Survey and Dataset of Media-Based Misinformation In-The-Wild
- Risks and Opportunities of Open-Source Generative AI
- AEGIS: Online Adaptive AI Content Safety Moderation with Ensemble of LLM Experts
- Generative Adversarial Networks
- The Llama 3 Herd of Models
- ShieldDiff: Suppressing Sexual Content Generation from Diffusion Models through Reinforcement Learning
- Harm Amplification in Text-to-Image Models
- Denoising Diffusion Probabilistic Models
- Llama Guard: LLM-based Input-Output Safeguard for Human-AI Conversations
- Mistral 7B
- Jailbreaking Safeguarded Text-to-Image Models via Large Language Models
- Any-Resolution AI-Generated Image Detection by Spectral Learning
Related papers
- Loss Knows Best: Detecting Annotation Errors in Videos via Loss Trajectories
- AnchorWeave: World-Consistent Video Generation with Retrieved Local Spatial Memories
- Benchmarking the Robustness of Foundation Models for Mammography under Domain Shift
- MambaX-Net: Dual-Input Mamba-Enhanced Cross-Attention Network for Longitudinal MRI Segmentation
- TeleOCR: Navigating Document Parsing Across Digital and Camera-Captured Documents
- A Survey on Efficient Vision-Language-Action Models