[Paper Review] Autoencoding Variational Autoencoder
This paper introduces the Autoencoding Variational Autoencoder (AVAE), a method that enforces self-consistent encoding by training the VAE to reconstruct its own generated samples, thereby improving representation robustness. The approach achieves state-of-the-art adversarial robustness on ColorMNIST and CelebA without adversarial training, outperforming standard VAEs and specialized robust models.
Does a Variational AutoEncoder (VAE) consistently encode typical samples generated from its decoder? This paper shows that the perhaps surprising answer to this question is `No'; a (nominally trained) VAE does not necessarily amortize inference for typical samples that it is capable of generating. We study the implications of this behaviour on the learned representations and also the consequences of fixing it by introducing a notion of self consistency. Our approach hinges on an alternative construction of the variational approximation distribution to the true posterior of an extended VAE model with a Markov chain alternating between the encoder and the decoder. The method can be used to train a VAE model from scratch or given an already trained VAE, it can be run as a post processing step in an entirely self supervised way without access to the original training data. Our experimental analysis reveals that encoders trained with our self-consistency approach lead to representations that are robust (insensitive) to perturbations in the input introduced by adversarial attacks. We provide experimental results on the ColorMnist and CelebA benchmark datasets that quantify the properties of the learned representations and compare the approach with a baseline that is specifically trained for the desired property.
Motivation & Objective
- To investigate why standard VAEs fail to consistently encode typical samples they generate, undermining representation quality.
- To address the inconsistency between decoder-generated samples and their corresponding latent representations in standard VAEs.
- To propose a self-consistent training procedure that enforces autoencoding, improving robustness of learned representations.
- To demonstrate that self-consistency leads to adversarial robustness without requiring adversarial data or fine-tuning.
Proposed method
- Proposes a novel variational lower bound that enforces consistency between the encoder and decoder by modeling the posterior over latents as a Markov chain alternating between encoder and decoder.
- Introduces a self-supervised post-processing step that can be applied to a pre-trained VAE without access to original training data.
- Uses a two-stage training process: first train a standard VAE, then apply AVAE’s self-consistency objective via iterative encoding and decoding.
- Employs a stochastic approximation of the true posterior using a Markov chain of encoder-decoder passes to refine the latent representation.
- Applies a temperature parameter ρ to control the strength of the self-consistency regularization during training.
- Uses standard VAE training with an additional loss term that encourages the encoder to map generated samples back to their generating latents.
Experimental results
Research questions
- RQ1Does a standard VAE consistently encode typical samples it generates, or is there a mismatch between the decoder’s output and the encoder’s inference?
- RQ2Can enforcing self-consistency in the VAE framework improve the robustness of learned representations to adversarial perturbations?
- RQ3Is it possible to improve representation quality post-training without access to the original data or retraining from scratch?
- RQ4How does the self-consistent AVAE compare to adversarially trained models in terms of robustness and downstream performance?
- RQ5What is the impact of hyperparameters like ρ and ρ_SE on the robustness and generalization of the learned representations?
Key findings
- The AVAE method achieves 87.0% adversarial test accuracy on the 'Bald' task of CelebA under ε=0.1 PGD attack, outperforming the standard VAE (2.1%) and SE-AVAE (70.0%) under the same conditions.
- On the ColorMNIST dataset with convolutional architecture, AVAE achieves 97.8% nominal accuracy and 86.5% adversarial accuracy under ε=0.1 PGD attack, significantly outperforming standard VAE (97.9% nominal, 2.1% adversarial).
- The self-supervised AVAE post-processing step improves downstream adversarial accuracy across all 17 CelebA tasks, with an average improvement of 2.2x in time factor and 2.2x in robustness compared to standard VAE.
- AVAE achieves state-of-the-art performance on adversarial robustness without adversarial data, demonstrating that self-consistency alone can yield robust representations.
- The method is effective across different architectures (MLP and VGG) and datasets (ColorMNIST and CelebA), showing generalization across domains and model structures.
- The FID score of 97.92 for AVAE on CelebA indicates high-quality sample generation, while maintaining strong robustness, suggesting no trade-off between sample quality and robustness.
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.