Reproduce “Universal Prompt Optimizer for Safe Text-to-Image Generation” on OpenResearch
Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Zongyu Wu, Hongcheng Gao, Yueze Wang, Xiang Zhang, Suhang Wang
Researchers at The Pennsylvania State University developed POSI, a universal prompt optimizer for Text-to-Image models, which revises toxic prompts into safer, semantically preserved versions in black-box scenarios. The system significantly reduces inappropriate image generation, achieving up to 65% reduction in Inappropriate Probability on benchmark datasets and demonstrating transferability to models like DALL-E 3 and Midjourney.
Key insights
- Prompt optimization serves as a highly effective, universal, and black-box defense strategy for T2I model safety, bypassing the need for internal model access or output rejection.
- The combination of supervised learning with reinforcement learning, utilizing a tailored reward function, is crucial for teaching a language model to transform toxic prompts into safe and semantically consistent ones.
- The PPO stage, incorporating image generation feedback via a reward function, is critical for achieving substantial safety improvements beyond the foundational capabilities acquired through supervised fine-tuning alone.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.