Skip to content
InfoResearchPeer-reviewed

PromptGuard: Soft Prompt-Guided Unsafe Content Moderation for Text-to-Image Models

Published
Record updated
View JSON

Summary

PromptGuard is a content moderation technique for text-to-image models that optimizes a universal safety soft prompt in the model's textual embedding space to act as an implicit system prompt. A divide-and-conquer strategy builds category-specific soft prompts into holistic safety guidance. Across five datasets it reduces NSFW generation, reaches an average unsafe ratio of 5.84% and 6.18% under multi-head classifiers and VLM-based guardrails, and runs 3.8 times faster than prior methods.