Discovering Failure Modes of Text-guided Diffusion Models via Adversarial Search
Qihao Liu, Adam Kortylewski, Yutong Bai, Song Bai, Alan L. Yuille
Abstract
Text-guided diffusion models (TDMs) are widely applied but can fail unexpectedly. Common failures include: (i) natural-looking text prompts generating images with the wrong content, or (ii) different random samples of the latent variables that generate vastly different, and even unrelated, outputs despite being conditioned on the same text prompt. In this work, we aim to study and understand the failure modes of TDMs in more detail. To achieve this, we propose SAGE, the first adversarial search method on TDMs that systematically explores the discrete prompt space and the high-dimensional latent space, to automatically discover undesirable behaviors and failure cases in image generation. We use image classifiers as surrogate loss functions during searching, and employ human inspections to validate the identified failures. For the first time, our method enables efficient exploration of both the discrete and intricate human language space and the challenging latent space, overcoming the gradient vanishing problem. Then, we demonstrate the effectiveness of SAGE on five widely used generative models and reveal four typical failure modes that have not been systematically studied before: (1) We find a variety of natural text prompts that generate images failing to capture the semantics of input texts. We further discuss the underlying causes and potential solutions based on the results. (2) We find regions in the latent space that lead to distorted images independent of the text prompt, suggesting that parts of the latent space are not wellstructured. (3) We also find latent samples that result in natural-looking images unrelated to the text prompt, implying a possible misalignment between the latent and prompt spaces. (4) By appending a single adversarial token embedding to any input prompts, we can generate a variety of specified target objects, with minimal impact on CLIP scores, demonstrating the fragility of language representations. Project page: https://sage-diffusion.github.io
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
10 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- High-Resolution Image Synthesis with Latent Diffusion Models cites Diffusion Models Beat GANs on Image Synthesis
- High-Resolution Image Synthesis with Latent Diffusion Models cites Denoising Diffusion Probabilistic Models
- Step Vulnerability Guided Mean Fluctuation Adversarial Attack against Conditional Diffusion Models cites High-Resolution Image Synthesis with Latent Diffusion Models
- PLA: Prompt Learning Attack Against Text-To-Image Generative Models cites High-Resolution Image Synthesis with Latent Diffusion Models
- PLA: Prompt Learning Attack Against Text-To-Image Generative Models cites Learning Transferable Visual Models From Natural Language Supervision
- PLA: Prompt Learning Attack Against Text-To-Image Generative Models cites Denoising Diffusion Probabilistic Models
- Unlocking Dataset Distillation with Diffusion Models cites High-Resolution Image Synthesis with Latent Diffusion Models
- Unlocking Dataset Distillation with Diffusion Models cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Unlocking Dataset Distillation with Diffusion Models cites Diffusion Models Beat GANs on Image Synthesis
- Unlocking Dataset Distillation with Diffusion Models cites Denoising Diffusion Probabilistic Models
- RAGDiffusion: Faithful Cloth Generation via External Knowledge Assimilation cites High-Resolution Image Synthesis with Latent Diffusion Models
- RAGDiffusion: Faithful Cloth Generation via External Knowledge Assimilation cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- RAGDiffusion: Faithful Cloth Generation via External Knowledge Assimilation cites Learning Transferable Visual Models From Natural Language Supervision
- Diffusion Models Beat GANs on Image Synthesis cites Learning Transferable Visual Models From Natural Language Supervision
- Diffusion Models Beat GANs on Image Synthesis cites Denoising Diffusion Probabilistic Models
- Uncovering Conceptual Blindspots in Generative Image Models Using Sparse Autoencoders cites High-Resolution Image Synthesis with Latent Diffusion Models
- Uncovering Conceptual Blindspots in Generative Image Models Using Sparse Autoencoders cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Uncovering Conceptual Blindspots in Generative Image Models Using Sparse Autoencoders cites Denoising Diffusion Probabilistic Models
- Learning Transferable Visual Models From Natural Language Supervision cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
Cited by top-tier papers10
- Unlocking Dataset Distillation with Diffusion ModelsBrian B. Moser, Federico Raue, Sebastian Palacio, Stanislav Frolov et al.NeurIPS 2025 · 23 citations
- Step Vulnerability Guided Mean Fluctuation Adversarial Attack against Conditional Diffusion ModelsHongwei Yu, Jiansheng Chen, Xinlong Ding, Yudong Zhang et al.AAAI 2024 · 18 citations
- RAGDiffusion: Faithful Cloth Generation via External Knowledge AssimilationYuhan Li, Xianfeng Tan, Wenxiang Shang, Yubo Wu et al.ICCV 2025 · 11 citations
- PLA: Prompt Learning Attack Against Text-To-Image Generative ModelsXinqi Lyu, Yihao Liu, Yanjie Li, Bin XiaoICCV 2025 · 10 citations
- Uncovering Conceptual Blindspots in Generative Image Models Using Sparse AutoencodersMatyas Bohacek, Thomas Fel, Maneesh Agrawala, Ekdeep Singh LubanaICLR 2026 · 7 citations
Builds on18
- Learning Transferable Visual Models From Natural Language SupervisionAlec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh et al.ICML 2021 · 47,906 citations
- Denoising Diffusion Probabilistic ModelsJonathan Ho, Ajay Jain, Pieter AbbeelNeurIPS 2020 · 35,902 citations
- An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn et al.ICLR 2021 · 21,477 citations
- Diffusion Models Beat GANs on Image SynthesisPrafulla Dhariwal, Alexander Quinn NicholNeurIPS 2021 · 13,211 citations
- High-Resolution Image Synthesis with Latent Diffusion ModelsRobin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser et al.CVPR 2022 · 13,123 citations
Related papers
- SafeGuider: Robust and Practical Content Safety Control for Text-to-Image ModelsPeigui Qi, Kunsheng Tang, Wenbo Zhou, Weiming Zhang et al.CCS 2025
- FailureAtlas: Mapping the Failure Landscape of T2I Models via Active ExplorationMuxi Chen, Zhaohua Zhang, Chenchen Zhao, Mingyang Chen et al.CVPR 2026 · 2 citations
- SafeGen: Mitigating Sexually Explicit Content Generation in Text-to-Image ModelsXinfeng Li, Yuchen Yang, Jiangyi Deng, Chen Yan et al.CCS 2024 · 8 citations
- Prompting4Debugging: Red-Teaming Text-to-Image Diffusion Models by Finding Problematic PromptsZhi-Yi Chin, Chieh-Ming Jiang, Ching-Chun Huang, Pin-Yu Chen et al.ICML 2024 · 155 citations
- Attend-and-Excite: Attention-Based Semantic Guidance for Text-to-Image Diffusion ModelsHila Chefer, Yuval Alaluf, Yael Vinker, Lior Wolf et al.SIGGRAPH 2023 · 438 citations
