[Paper Review] On the Necessity and Effectiveness of Learning the Prior of Variational Auto-Encoder
This paper proves the necessity and effectiveness of learning the prior in Variational Autoencoders (VAEs) when the aggregated posterior fails to match a unit Gaussian, proposing a Real NVP-based learned prior that improves reconstruction loss and test negative log-likelihood (NLL). Surprisingly, using just one latent variable with a learned prior achieves NLL comparable to deep hierarchical VAEs, outperforming complex architectures with standard priors.
Using powerful posterior distributions is a popular approach to achieving better variational inference. However, recent works showed that the aggregated posterior may fail to match unit Gaussian prior, thus learning the prior becomes an alternative way to improve the lower-bound. In this paper, for the first time in the literature, we prove the necessity and effectiveness of learning the prior when aggregated posterior does not match unit Gaussian prior, analyze why this situation may happen, and propose a hypothesis that learning the prior may improve reconstruction loss, all of which are supported by our extensive experiment results. We show that using learned Real NVP prior and just one latent variable in VAE, we can achieve test NLL comparable to very deep state-of-the-art hierarchical VAE, outperforming many previous works with complex hierarchical VAE architectures.
Motivation & Objective
- To formally prove the necessity and effectiveness of learning the prior in VAEs when the aggregated posterior does not match the unit Gaussian prior.
- To analyze why the aggregated posterior may fail to match the unit Gaussian prior, identifying distributional mismatches as a root cause.
- To demonstrate that learning the prior can reduce reconstruction loss and improve sample quality, especially on low-posterior samples.
- To show that a simple VAE with a single latent variable and a learned Real NVP prior can match or exceed the performance of deep hierarchical VAEs.
- To validate that learned priors avoid assigning high likelihoods to low-quality interpolations and low-posterior samples.
Proposed method
- Proposes a Real NVP-based normalizing flow to learn the prior distribution, enabling flexible, non-Gaussian priors.
- Introduces a joint training scheme where the prior is optimized end-to-end with the encoder and decoder, improving ELBO optimization.
- Uses a Monte Carlo estimator for the ELBO that includes the learned prior, enabling gradient-based optimization.
- Employs a post-hoc prior adaptation method to evaluate the impact of learned priors on existing models without retraining.
- Applies the low-posterior sample detection algorithm from prior work to assess whether learned priors assign lower likelihoods to problematic latent codes.
- Conducts extensive ablation studies across four binarized datasets using four different architectures to validate generalization.
Experimental results
Research questions
- RQ1Is learning the prior necessary and effective when the aggregated posterior does not match the unit Gaussian prior?
- RQ2Why does the aggregated posterior fail to match the unit Gaussian prior, and what causes this distributional mismatch?
- RQ3Can learning the prior reduce reconstruction loss and improve sample quality, especially on low-posterior samples?
- RQ4Can a simple VAE with a single latent variable and a learned Real NVP prior achieve performance comparable to deep hierarchical VAEs?
- RQ5Does a learned prior avoid assigning high likelihoods to low-quality interpolations and low-posterior samples in the latent space?
Key findings
- Using a Real NVP prior with just one latent variable achieves test negative log-likelihood (NLL) comparable to state-of-the-art deep hierarchical VAEs on binarized MNIST, EMNIST, and Fashion-MNIST.
- The learned prior significantly reduces the likelihood assigned to low-posterior samples, avoiding high scores on problematic latent codes.
- The jointly trained VAE with a Real NVP prior outperforms both standard VAEs and VAEs with Real NVP posterior across all datasets and architectures.
- The post-hoc trained prior reduces log-prior likelihood on low-posterior samples by up to 10x compared to unit Gaussian prior, indicating better generalization.
- The method avoids assigning high likelihoods to low-quality interpolations in the latent space, improving sample quality and robustness.
- Training time increases with flow depth but plateaus beyond K=50, suggesting K=20 is a practical trade-off between performance and efficiency.
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.