Tuning Just Enough: Lightweight Backdoor Attacks on Multi-Encoder Diffusion Models
Organizations: Computer Science Department, TU Darmstadt, Germany · Hessian Center for Artificial Intelligence (hessian.AI), Darmstadt, Germany
Abstract
As text-to-image diffusion models become increasingly deployed in real-world applications, concerns about backdoor attacks have gained significant attention. Prior work on text-based backdoor attacks has largely focused on diffusion models conditioned on a single lightweight text encoder. However, more recent diffusion models that incorporate multiple large-scale text encoders remain underexplored in this context. Given the substantially increased number of trainable parameters introduced by multiple text encoders, an important question is whether backdoor attacks can remain both efficient and effective in such settings. In this work, we study Stable Diffusion 3, which uses three distinct text encoders and has not yet been systematically analyzed for text-encoder-based backdoor vulnerabilities. To understand the role of text encoders in backdoor attacks, we define four categories of attack targets and identify the minimal sets of encoders required to achieve effective performance for each attack objective. Based on this, we further propose Multi-Encoder Lightweight aTtacks (MELT), which trains only low-rank adapters while keeping the pretrained text encoder weight frozen. We demonstrate that tuning fewer than 0.2% of the total encoder parameters is sufficient for successful backdoor attacks on Stable Diffusion 3, revealing previously underexplored vulnerabilities in practical attack scenarios in multi-encoder settings.
Figures & tables
| Target | Method | Poisoned Text Encoders | ASR (%) | FID | Params (#) | Params (%) | ||
| TPA | Clean Model | - | 0 | 30.61 | 15.03 | 24.46 | - | - |
| Full Fine-tuning | 97.8 | 29.77 | 15.23 | 25.99 | 5583.96M | 100 | ||
| ME‑Rickrolling | 97.8 | 29.77 | 15.23 | 25.99 | 5583.96M | 100 | ||
| MELT | 99 | 30.36 | 15.34 | 25.01 | 11.40M | 0.2 | ||
| TOA | Clean Model | - | 0 | 26.77 | 15.03 | 24.46 | - | - |
| Full fine-tuning | 100 | 26.93 | 15.16 | 25.08 | 5583.96M | 100 |
Appendix figures & tables4 assets
Supplementary material from the paper’s appendix.
Appendix
| Attack Type | Targets |
| TPA | - Sunglasses on the table - Cat on the table - A soldier fighting in war - An Atari game machine - A white teapot |
| TOA | - cat (same category) - bird (similar category) - sunglasses (unrelated object) - cup (unrelated object) - banana (unrelated object) |
| TSA | - Black and white photo - Van Gogh style - Pencil sketch - Pixel art |
| TAA | - holding - touching - kissing |
| Target | Poisoned Text Encoders | FID | |
| clean model | - | 15.03 | 24.46 |
| TPA | 15.20 | 24.59 | |
| 14.78 | 25.38 | ||
| 14.44 | 25.61 | ||
| 14.92 | 25.15 | ||
| 15.47 | 25.93 |
| Target | Method | ASR (%) | CLIP-poison | CLIP-clean | FID | Parameters |
| SD1.5 | ||||||
| TPA | Clean Model | 0 | 28.79 | 15.20 | 19.7 | - |
| Rickrolling Struppek et al. (2023) | 98.00 | 28.69 | 14.40 | 19.83 | 123M | |
| MELT | 98.00 | 29.03 | 14.40 | 19.78 | 1.74M | |
| TOA | Clean Model | 0 | 24.17 | 15.20 | 19.7 | - |
| Rickrolling Struppek et al. (2023) | 99.00 | 24.20 | 15.23 | 20.13 | 123M | |
Backdoor Attacks
Backdoor attacks implant hidden, trigger-dependent behaviors in models while aiming to preserve normal performance.
See all 135 papers