The Devil is in the GAN: Backdoor Attacks and Defenses in Deep Generative Models
On the map: LLM safety and security → Backdoor and data poisoning attacks
Abstract (arXiv)
Deep Generative Models (DGMs) are a popular class of deep learning models which find widespread use because of their ability to synthesize data from complex, high-dimensional manifolds. However, even with their increasing industrial adoption, they haven't been subject to rigorous security and privacy analysis. In this work we examine one such aspect, namely backdoor attacks on DGMs which can significantly limit the applicability of pre-trained models within a model supply chain and at the very least cause massive reputation damage for companies outsourcing DGMs form third parties. While similar attacks scenarios have been studied in the context of classical prediction models, their manifestation in DGMs hasn't received the same attention. To this end we propose novel training-time attacks which result in corrupted DGMs that synthesize regular data under normal operations and designated target outputs for inputs sampled from a trigger distribution. These attacks are based on an adversarial loss function that combines the dual objectives of attack stealth and fidelity. We systematically analyze these attacks, and show their effectiveness for a variety of approaches like Generative Adversarial Networks (GANs) and Variational Autoencoders (VAEs), as well as different data domains including images and audio. Our experiments show that - even for large-scale industry-grade DGMs (like StyleGAN) - our attacks can be mounted with only modest computational effort. We also motivate suitable defenses based on static/dynamic model and output inspections, demonstrate their usefulness, and prescribe a practical and comprehensive defense strategy that paves the way for safe usage of DGMs.
Key facts. Cited by 12 papers in the map (data through 7 Oct 2026). Placed in Backdoor and data poisoning attacks, one of 12 directions in LLM safety and security. Builds on 36 of its 56 references that are in the map. First posted on arXiv 3 Aug 2021.
Builds on
36 of 56 references.
References · 36
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2018A Style-Based Generator Architecture for Generative Adversarial Networkscited by 5,986
- 2017Fashion-MNIST: a Novel Image Dataset for Benchmarking Machine Learning Algorithmscited by 4,283
- 2016Improved Techniques for Training GANscited by 2,938
- 2014Conditional Generative Adversarial Netscited by 2,152
- 2015Unsupervised Representation Learning with Deep Convolutional Generative Adversarial Networkscited by 2,048
- 2016Photo-Realistic Single Image Super-Resolution Using a Generative Adversarial Networkcited by 1,898
- 2018Obfuscated Gradients Give a False Sense of Security: Circumventing Defenses to Adversarial Examplescited by 1,259
- 2017BadNets: Identifying Vulnerabilities in the Machine Learning Model Supply Chaincited by 1,052
- 2019Image2StyleGAN: How to Embed Images Into the StyleGAN Latent Space?cited by 675
- 2018Fine-Pruning: Defending Against Backdooring Attacks on Deep Neural Networkscited by 550
- 2018Poison Frogs! Targeted Clean-Label Poisoning Attacks on Neural Networkscited by 500
24 more
- 2014Semi-Supervised Learning with Deep Generative Modelscited by 494
- 2017Towards Principled Methods for Training Generative Adversarial Networkscited by 460
- 2018Threat of Adversarial Attacks on Deep Learning in Computer Vision: A Surveycited by 459
- 2018Detecting Backdoor Attacks on Deep Neural Networks by Activation Clusteringcited by 429
- 2017Wild Patterns: Ten Years After the Rise of Adversarial Machine Learningcited by 411
- 2017The Effectiveness of Data Augmentation in Image Classification using Deep Learningcited by 368
- 2020Weight Poisoning Attacks on Pre-trained Modelscited by 318
- 2018Everybody Dance Nowcited by 313
- 2016NIPS 2016 Tutorial: Generative Adversarial Networkscited by 284
- 2021Deep Generative Modelling: A Comparative Review of VAEs, GANs, Normalizing Flows, Energy-Based and Autoregressive Modelscited by 251
- 2018Adversarial Audio Synthesiscited by 222
- 2017Generating Multi-label Discrete Patient Records using Generative Adversarial Networkscited by 197
- 2018FairGAN: Fairness-aware Generative Adversarial Networkscited by 164
- 2019Reconstruction and Membership Inference Attacks against Generative Modelscited by 122
- 2018GAN Augmentation: Augmenting Training Data using Generative Adversarial Networkscited by 107
- 2017Adversarial examples for generative modelscited by 58
- 2017Continual Learning in Generative Adversarial Netscited by 51
- 2017Adversarial Ranking for Language Generationcited by 50
- 2019Compressing GANs using Knowledge Distillationcited by 31
- 2020BAAAN: Backdoor Attacks Against Autoencoder and GAN-Based Machine Learning Modelscited by 23
- 2020Hijack-GAN: Unintended-Use of Pretrained, Black-Box GANscited by 23
- 2017LatentPoison - Adversarial Attacks On The Latent Spacecited by 9
- 2020Self-Supervised GAN Compressioncited by 6
- 2019Brain MRI Tumor Segmentation with Adversarial Networkscited by 3
Built on by
Citing papers per year: 2022: 1; 2023: 2; 2024: 2; 2025: 5; 2026: 2.
12 papers.
- 2022How to Backdoor Diffusion Models?cited by 102
- 2023Text-to-Image Diffusion Models can be Easily Backdoored through Multimodal Data Poisoningcited by 91
- 2023TrojDiff: Trojan Attacks on Diffusion Models with Diverse Targetscited by 88
- 2025Efficient Input-level Backdoor Defense on Text-to-Image Synthesis via Neuron Activation Variationcited by 8
- 2024Backdoor Attacks against Image-to-Image Networkscited by 7
- 2025BadRefSR: Backdoor Attacks Against Reference-based Image Super Resolutioncited by 6
- 2025Retrievals Can Be Detrimental: Unveiling the Backdoor Vulnerability of Retrieval-Augmented Diffusion Modelscited by 5
- 2025MixBridge: Heterogeneous Image-to-Image Backdoor Attack through Mixture of Schr"odinger Bridgescited by 5
- 2024Watch the Watcher! Backdoor Attacks on Security-Enhancing Diffusion Modelscited by 4
- 2026When LoRA Betrays: Backdooring Text-to-Image Models by Masquerading as Benign Adapterscited by 4
- 2025Beyond Invisibility: Learning Robust Visible Watermarks for Stronger Copyright Protectioncited by 0
- 2026Tiny, Hardware-Independent, Compression-based Classificationcited by 0
- 2026Tiny, Hardware-Independent, Compression-based Classification6 Mar 2026
- 2026When LoRA Betrays: Backdooring Text-to-Image Models by Masquerading as Benign Adapters25 Feb 2026
- 2025Beyond Invisibility: Learning Robust Visible Watermarks for Stronger Copyright Protection3 Jun 2025
- 2025MixBridge: Heterogeneous Image-to-Image Backdoor Attack through Mixture of Schr"odinger Bridges12 May 2025
- 2025Efficient Input-level Backdoor Defense on Text-to-Image Synthesis via Neuron Activation Variation9 Mar 2025
- 2025BadRefSR: Backdoor Attacks Against Reference-based Image Super Resolution28 Feb 2025
- 2025Retrievals Can Be Detrimental: Unveiling the Backdoor Vulnerability of Retrieval-Augmented Diffusion Models23 Jan 2025
- 2024Backdoor Attacks against Image-to-Image Networks15 Jul 2024
- 2024Watch the Watcher! Backdoor Attacks on Security-Enhancing Diffusion Models14 Jun 2024
- 2023Text-to-Image Diffusion Models can be Easily Backdoored through Multimodal Data Poisoning7 May 2023
- 2023TrojDiff: Trojan Attacks on Diffusion Models with Diverse Targets10 Mar 2023
- 2022How to Backdoor Diffusion Models?11 Dec 2022