Skip to content

Latent Guard: A Safety Framework for Text-to-Image GenerationLatent Guard: a Safety Framework for Text-to-image Generation

arXiv· arXiv:2404.08031· Runtao Liu, Ashkan Khakzar, Jindong Gu, Qifeng Chen, Philip Torr, Fabio Pizzati·Indexed by this site · 25 days ago· Originally publishedDefenses
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.

Read originalarxiv.org