[Paper Review] Generated Loss and Augmented Training of MNIST VAE
This paper investigates using the VAE loss on generated samples—termed 'generated loss'—as a proxy metric for generation quality and explores data augmentation via repeated encoding/decoding to improve MNIST VAEs. While generated loss poorly reflects actual generation quality in convolutional models, repeated inference from the mean latent vector consistently produces more typical, textbook-like digits, suggesting an inherent VAE property for clustering, though augmented training fails to improve performance.
The variational autoencoder (VAE) framework is a popular option for training unsupervised generative models, featuring ease of training and latent representation of data. The objective function of VAE does not guarantee to achieve the latter, however, and failure to do so leads to a frequent failure mode called posterior collapse. Even in successful cases, VAEs often result in low-precision reconstructions and generated samples. The introduction of the KL-divergence weight $β$ can help steer the model clear of posterior collapse, but its tuning is often a trial-and-error process with no guiding metrics. Here we test the idea of using the total VAE loss of generated samples (generated loss) as the proxy metric for generation quality, the related hypothesis that VAE reconstruction from the mean latent vector tends to be a more typical example of its class than the original, and the idea of exploiting this property by augmenting training data with generated variants (augmented training). The results are mixed, but repeated encoding and decoding indeed result in qualitatively and quantitatively more typical examples from both convolutional and fully-connected MNIST VAEs, suggesting that it may be an inherent property of the VAE framework.
Motivation & Objective
- To assess whether the total VAE loss on generated samples (generated loss) can serve as a reliable proxy metric for generation quality.
- To test the hypothesis that repeated encoding and decoding from the mean latent vector produce more typical, representative examples of each digit class.
- To investigate whether augmenting training data with generated samples improves VAE generation quality.
- To compare the behavior of generated loss and standard metrics like FID across different VAE architectures and hyperparameters.
Proposed method
- Measure the total VAE loss (ELBO) on generated samples as 'generated loss' to evaluate model performance during generation.
- Apply iterative encoding and decoding using the mean latent vector to generate increasingly typical digit reconstructions.
- Use conditional p-values based on a trained classifier to quantitatively assess how 'typical' generated and reconstructed samples are relative to their class distribution.
- Augment the training set with generated samples from the VAE and retrain the model to evaluate improvements in generation quality.
- Train both convolutional and fully-connected VAE architectures on MNIST with varying $eta$ values to assess sensitivity and generalization.
- Compare generated loss, training/test loss, and FID scores across different $eta$ values to evaluate correlation with perceptual quality.
Experimental results
Research questions
- RQ1Does the generated loss correlate with actual generation quality, as measured by FID or human perception?
- RQ2Do repeated encoding and decoding from the mean latent vector produce more typical, representative examples of each digit class?
- RQ3Can data augmentation using generated samples improve the generation quality of a VAE?
- RQ4How does the sensitivity of generated loss vary between convolutional and fully-connected VAE architectures?
- RQ5Is the observed improvement in typicality due to the VAE's variational optimization process or architectural inductive biases?
Key findings
- Generated loss does not reliably reflect generation quality, especially for convolutional VAEs, as it lags behind training loss and shows poor correlation with FID scores.
- For both convolutional and fully-connected MNIST VAEs, repeated encoding and decoding from the mean latent vector consistently produce more typical, textbook-like digit examples.
- Conditional p-values show that both generated and reconstructed samples converge toward the mode of the class distribution, with training examples converging faster than generated samples.
- Despite the improved typicality of repeated reconstructions, augmented training using generated samples fails to improve the generation quality of the VAE.
- The sensitivity of generated loss to $eta$ is higher in fully-connected VAEs than in convolutional ones, suggesting architectural inductive biases affect loss behavior.
- The tendency of repeated inference to produce more typical samples appears to be an inherent property of the VAE framework, possibly due to the minimization of reconstruction loss in latent space.
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.