Summary
This paper proposes a new defensive method for generative T2I models, termed GuardT2I. GuardT2I utilizes a fine-tuned conditional LLM to map text embedding to explicit prompts and detect the presence of NSFW themes. GuardT2I keeps the target T2I model unchanged thus maintaining the generated image quality. Evaluations are conducted on text-based defenses such OpenAI moderation API.
Weaknesses
* In the paper there is a lack of direct comparison between GuardT2I and other types of defenses, such as SafetyChecker (image classifier employed by Stable Diffusion) [1], Safe Latent Diffusion (SLD) [2], and concept removal methods [3]. While I understand some of these defenses may be out of this paper's scope considering that they may rely on the generated image or fine-tuning the target T2I model, it is still necessary to report the gap.
* Settings of Table 6 are not clearly explained. The inference time of GuardT2I depends on the length of the recovered prompt. However, SafetyChecker detects NSFW themes from the generated image, which means that the inference time of SafetyChecker will not be influenced by the input prompt. SafetyChecker has fewer parameters than GuardT2I while requiring a longer inference time, which is confusing. Please provide more details related to this experiment.
* Selection of evaluated adversarial prompts is not well motivated. There are related adversarial attacks against T2I models such as Ring-A-Bell [4], QF Attack [5], and P4D attack [6], which are not included in this paper.
[1] Rando, Javier et al. “Red-Teaming the Stable Diffusion Safety Filter.” ArXiv abs/2210.04610 (2022): n. pag.
[2] Schramowski, Patrick, et al. "Safe latent diffusion: Mitigating inappropriate degeneration in diffusion models." Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. 2023.
[3] Gandikota, Rohit, et al. "Erasing concepts from diffusion models." Proceedings of the IEEE/CVF International Conference on Computer Vision. 2023.
[4] Tsai, Yu-Lin, et al. "Ring-A-Bell! How Reliable are Concept Removal Methods for Diffusion Models?." arXiv preprint arXiv:2310.10012 (2023).
[5] Zhuang, Haomin, Yihua Zhang, and Sijia Liu. "A pilot study of query-free adversarial attack against stable diffusion." Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. 2023.
[6] Chin, Zhi-Yi, et al. "Prompting4debugging: Red-teaming text-to-image diffusion models by finding problematic prompts." arXiv preprint arXiv:2309.06135 (2023).
[7] Yang, Yijun, et al. "Mma-diffusion: Multimodal attack on diffusion models." Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. 2024.