Skip to content

PromptGuard: Soft-prompt-guided unsafe content moderation for text-to-image modelsPromptGuard: Soft Prompt-Guided Unsafe Content Moderation for Text-to-Image Models

arXiv· arXiv:2501.03544· IEEE Transactions on Information Forensics and Security 2026· Lingzhi Yuan, Xinfeng Li, Chejian Xu, Guanhong Tao, Xiaojun Jia, Yihao Huang, Wei Dong, Yang Liu, Bo Li·Indexed by this site · 25 days ago· Originally publishedDefenses
AI summary

The researchers propose PromptGuard, a content moderation method for text-to-image (T2I) models that draws on the system prompt mechanism of large language models, optimizes a universal safety soft prompt in the T2I model's text embedding space, and directly modulates NSFW inputs to generate safe and realistic images without affecting inference efficiency and without requiring a proxy model. The method further uses a divide-and-conquer strategy to optimize category-specific soft prompts and merge them into a unified safety guidance. Experiments on five datasets show that PromptGuard is 3.8 times faster than existing content moderation methods and outperforms eight state-of-the-art defense methods; evaluated with a multi-head safety classifier and a VLM-based guardrail, the average unsafe ratios are 5.84% and 6.18%, respectively. Code and datasets are released at https://t2i-promptguard.github.io/。

Related events and news

1 events · 1 news mentions

News that mentions this paper

Adversa AI:编码智能体安全需自建与采购分层

Read originalIEEE Transactions on Information Forensics and Security 2026