[Paper Review] Adversarial examples for generative models
This paper introduces adversarial attacks on deep generative models, specifically variational autoencoders (VAEs) and VAE-GANs, by manipulating latent representations. It proposes three attack methods—classifier-based, VAE-loss-based, and latent-space optimization—demonstrating that adversarial examples can distort reconstructions while remaining imperceptible, with the latent attack achieving the best trade-off between perturbation size and attack success.
We explore methods of producing adversarial examples on deep generative models such as the variational autoencoder (VAE) and the VAE-GAN. Deep learning architectures are known to be vulnerable to adversarial examples, but previous work has focused on the application of adversarial examples to classification tasks. Deep generative models have recently become popular due to their ability to model input data distributions and generate realistic examples from those distributions. We present three classes of attacks on the VAE and VAE-GAN architectures and demonstrate them against networks trained on MNIST, SVHN and CelebA. Our first attack leverages classification-based adversaries by attaching a classifier to the trained encoder of the target generative model, which can then be used to indirectly manipulate the latent representation. Our second attack directly uses the VAE loss function to generate a target reconstruction image from the adversarial example. Our third attack moves beyond relying on classification or the standard loss for the gradient and directly optimizes against differences in source and target latent representations. We also motivate why an attacker might be interested in deploying such techniques against a target generative network.
Motivation & Objective
- To investigate whether deep generative models like VAEs and VAE-GANs are vulnerable to adversarial examples, extending the concept beyond classification tasks.
- To identify practical threat models where an attacker could exploit generative models by manipulating latent representations during encoding.
- To develop and evaluate novel attack methods that generate adversarial inputs capable of causing misreconstruction in generative models.
- To compare the effectiveness and efficiency of different attack strategies in terms of perturbation magnitude, reconstruction fidelity, and computational cost.
Proposed method
- Uses a classifier attached to the encoder of a trained VAE to generate adversarial examples via classification-based attacks, leveraging the latent space as an attack surface.
- Employs the VAE reconstruction loss ($\mathcal{L}_{\mathrm{VAE}}$) as a surrogate objective to optimize adversarial examples that maximize reconstruction error.
- Directly optimizes the latent representation by minimizing the $L_2$ distance between source and target latent codes, enabling precise control over the generated output.
- Applies gradient-based optimization to generate adversarial inputs that maintain low $L_2$ and RMSD norms while causing significant reconstruction shifts.
- Evaluates attacks on MNIST, SVHN, and CelebA datasets using multiple metrics including $L_2$ norm, RMSD, and visual inspection of reconstructions.
- Compares attack efficiency by measuring time to generate 1,000 adversarial examples, highlighting trade-offs between accuracy and computational cost.
Experimental results
Research questions
- RQ1Can adversarial examples be successfully generated against deep generative models such as VAEs and VAE-GANs?
- RQ2What are the most effective attack strategies for manipulating latent representations in generative models without increasing perceptible perturbations?
- RQ3How do different attack methods (classifier-based, VAE-loss-based, latent-optimization) compare in terms of perturbation size, reconstruction quality, and computational efficiency?
- RQ4What practical threat models justify the use of adversarial attacks on generative models, especially in settings involving separate encoding and decoding parties?
- RQ5To what extent do adversarial examples remain imperceptible while causing significant reconstruction failures in generative models?
Key findings
- The latent space attack achieved the lowest mean $L_2$ norm (2.96 on MNIST, 2.80 on SVHN) and RMSD (0.105 on MNIST, 0.051 on SVHN), indicating the most imperceptible yet effective perturbations.
- The $\mathcal{L}_{\mathrm{VAE}}$ attack was the slowest, requiring full reconstructions at each optimization step, with a mean time of 895 seconds to generate 1,000 adversarial examples on SVHN.
- On the CelebA dataset, the $\mathcal{L}_{\mathrm{VAE}}$ attack with $\lambda = 0.75$ achieved an $L_2$ norm of 8.98 and RMSD of 0.081, producing high-quality reconstructions of target faces.
- The classifier-based attack had the highest $L_2$ norm (3.36 on MNIST) and was the least effective, indicating larger, more noticeable perturbations.
- The latent attack outperformed both the classifier and $\mathcal{L}_{\mathrm{VAE}}$ attacks on all datasets in terms of minimizing perturbation size while maximizing reconstruction distortion.
- On SVHN, the $L_2$ optimization latent attack achieved a mean $L_2$ norm of 2.80 and RMSD of 0.051, significantly outperforming the $\mathcal{L}_{\mathrm{VAE}}$ attack (2.36 and 0.043) in terms of perceptual stealth.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.