Latent Guard: A Safety Framework for Text-to-Image GenerationLatent Guard: a Safety Framework for Text-to-image Generation
AI summary
The researchers propose Latent Guard, a safety framework for text-to-image generation that detects whether harmful concepts are present in input text embeddings by learning a latent space on top of the model's text encoder. The framework includes a task-specific data generation pipeline built with the help of large language models, dedicated architectural components, and a contrastive learning strategy trained on the generated data. The authors validate the method's effectiveness on three datasets against four baselines, and plan to release code and data on the project page.