Semantic-level Backdoor Attack against Text-to-Image Diffusion Models
Tianxin Chen, Wenbo Jiang, Hongqiao Chen, Zhirun Zheng, Cheng Huang
TL;DR
This work introduces SemBD, a semantic-level backdoor attack against text-to-image diffusion models that operates in continuous semantic representation space rather than discrete text triggers. By distilling cross-attention projections (K and V) to align triggers with multi-entity semantic targets and applying semantic regularization to bound activation under incomplete semantics, SemBD achieves robust activation across semantically equivalent prompts while evading prompt enumeration and attention-based defenses. The approach yields a 100% attack success rate and maintains strong image-quality and semantic-accuracy metrics, with significantly reduced detectability under state-of-the-art input-level defenses and resilience to fine-tuning. The findings highlight a need for defenses that model and monitor semantic representations and cross-modal alignment, not just surface-form prompts.
Abstract
Text-to-image (T2I) diffusion models are widely adopted for their strong generative capabilities, yet remain vulnerable to backdoor attacks. Existing attacks typically rely on fixed textual triggers and single-entity backdoor targets, making them highly susceptible to enumeration-based input defenses and attention-consistency detection. In this work, we propose Semantic-level Backdoor Attack (SemBD), which implants backdoors at the representation level by defining triggers as continuous semantic regions rather than discrete textual patterns. Concretely, SemBD injects semantic backdoors by distillation-based editing of the key and value projection matrices in cross-attention layers, enabling diverse prompts with identical semantic compositions to reliably activate the backdoor attack. To further enhance stealthiness, SemBD incorporates a semantic regularization to prevent unintended activation under incomplete semantics, as well as multi-entity backdoor targets that avoid highly consistent cross-attention patterns. Extensive experiments demonstrate that SemBD achieves a 100% attack success rate while maintaining strong robustness against state-of-the-art input-level defenses.
