SafeText: Achieving safe text-to-image models by aligning the text encoderSafeText: Safe Text-to-image Models via Aligning the Text Encoder
AI summary
SafeText is a new alignment method for text-to-image models that prevents harmful image generation by fine-tuning the text encoder rather than the diffusion module. It substantially changes the embeddings of unsafe prompts while having little effect on safe prompts, thereby blocking harmful generation while preserving image quality for safe prompts. On multiple safe and unsafe prompt datasets (including prompts generated by jailbreak attacks), SafeText outperforms six existing alignment methods.