Abstract
Autoencoders (AEs) are foundational for feature extraction but are highly vulnerable to adversarial attacks, where imperceptible input noise can lead to incorrect reconstructions. This paper proposes Double Backpropagation (DBP) to penalize large input gradients during training, making the model less sensitive to perturbations. By combining DBP with Gaussian Mixture Models (GMMs) in the latent space, the authors develop a robust classifier that maintains high accuracy even under significant adversarial pressure.
Introduction: The Vulnerability of Autoencoders
Autoencoders are widely used for data compression, but they possess a critical "glass jaw": extreme sensitivity to adversarial noise. A malicious actor can add a nearly invisible layer of noise to an input image (e.g., a digit "1") that causes the autoencoder to reconstruct a completely different target (e.g., a digit "0").
This vulnerability stems from the model having extremely large gradients—essentially, the network "over-reacts" to tiny changes in input pixels. While Double Backpropagation (minimizing gradient magnitude) was proposed decades ago, it typically fails in standard classification tasks due to discrete labels. However, autoencoders are ideal candidates for DBP because their latent representations are naturally continuous and smooth.
Methodology
The authors propose a two-pronged approach to fortify autoencoders:
1. Double Backpropagation (DBP)
The standard loss function is modified by adding a penalty term: the squared norm of the gradient of the reconstruction loss with respect to the input pixels. This forces the network to maintain a small $dx'/dx$, ensuring that small changes in input $x$ result in minimal changes in reconstruction $x'$. This technique was applied to Variational Autoencoders (VAE) and the Deep Recurrent Attentive Writer (DRAW).
2. GMM-based Smooth Classifier
To create a robust classifier, the authors model the latent space $Z$ using a Gaussian Mixture Model for each class. Since the encoder is "smooth" thanks to DBP, the mapping from input to latent space is stable. By using GMMs to estimate class probabilities, the final classification output changes smoothly rather than abruptly, making it much harder to "fool" with gradient-based attacks.
Experimental Results
The researchers evaluated their approach on MNIST, CelebA, and SVHN benchmarks. Key findings include:
- Gradient Suppression: On the CelebA dataset, the gradient magnitude dropped from 131.874 in a standard VAE to 7.356 in the DBP version, while reconstruction error remained nearly identical (~2.77 vs ~2.79).
- Attack Resistance: Using the Area Under the Distortion-Distortion Curve (AUDDC) metric, DBP-trained models showed significantly higher resistance to targeted attacks compared to standard models.
- Classifier Performance: Their Encoder(DBP)+GMM classifier achieved 94.83% accuracy on MNIST under FGSM attacks, whereas a standard MLP dropped to 19.03%. Even against the stronger PGD attack, the proposed model maintained 93.56% accuracy.
Discussion and Future Work
A key insight is that a robust model should behave logically under attack. In the GMM-based model, attempting a gradient attack actually transforms the image toward the target class (e.g., a "9" gradually turns into a "7") rather than creating nonsensical noise.
However, limitations exist. If the DBP penalty is too high, the model may prioritize smoothness over accuracy, leading to blurry reconstructions. Additionally, training with DBP requires calculating second-order derivatives, which increases computational cost. Future work will focus on scaling these GMM-based latent models to more complex, high-dimensional datasets like ImageNet.
Summary updated