[Paper Review] Learnable Explicit Density for Continuous Latent Space and Variational Inference
This paper proposes a learnable explicit density for variational autoencoders by making both the prior and posterior flexible using invertible flows, specifically inverse autoregressive flows (inverse AF). It shows that learning the prior improves sample quality and inference by better matching the marginal approximate posterior, and theoretically justifies inverse AF as a universal posterior approximator, outperforming standard Gaussian priors on MNIST and toy mixtures.
In this paper, we study two aspects of the variational autoencoder (VAE): the prior distribution over the latent variables and its corresponding posterior. First, we decompose the learning of VAEs into layerwise density estimation, and argue that having a flexible prior is beneficial to both sample generation and inference. Second, we analyze the family of inverse autoregressive flows (inverse AF) and show that with further improvement, inverse AF could be used as universal approximation to any complicated posterior. Our analysis results in a unified approach to parameterizing a VAE, without the need to restrict ourselves to use factorial Gaussians in the latent real space.
Motivation & Objective
- To improve variational autoencoder (VAE) performance by making the prior distribution learnable rather than fixed to a factorial Gaussian.
- To address the issue of poor sample quality in VAEs caused by entropy overestimation and mismatched prior-posterior distributions.
- To theoretically justify the use of inverse autoregressive flows (inverse AF) as a universal approximator for complex posterior distributions.
- To unify prior and posterior modeling in VAEs using invertible normalizing flows, avoiding restrictive assumptions on latent space distributions.
- To demonstrate empirically that flexible priors outperform flexible posteriors in training stability and likelihood performance.
Proposed method
- The method decomposes VAE training into layerwise density estimation, treating the marginal approximate posterior as a target for the prior.
- It uses invertible flows—specifically inverse AF—to parameterize both the prior and posterior, enabling explicit density estimation.
- The prior is learned via a normalizing flow with NVP-style coupling layers, allowing it to adapt to the data manifold.
- The posterior is modeled using inverse AF with MADE or PixelCNN-style autoregressive structures for parallelizable, flexible density estimation.
- The variational lower bound is optimized by jointly training the encoder, decoder, and flow-based prior/posterior, with KL divergence minimized between approximate and true posteriors.
- The approach avoids restrictive assumptions by replacing fixed factorial Gaussians with learnable, flexible densities in the latent space.
Experimental results
Research questions
- RQ1Can learning the prior distribution in a VAE improve sample generation and inference quality compared to a fixed prior?
- RQ2Does using inverse autoregressive flows (inverse AF) enable universal approximation of complex posterior distributions in variational inference?
- RQ3Why do models with flexible priors train more stably and achieve better likelihood than models with flexible posteriors?
- RQ4Can a learnable prior that matches the marginal approximate posterior reduce entropy overestimation and improve data distribution modeling?
- RQ5What is the relative contribution of prior versus posterior flexibility in improving VAE likelihood and sample quality?
Key findings
- Models with learnable priors outperform those with flexible posteriors on MNIST, achieving a negative log-likelihood (NLL) of 80.81 with 16 NVP layers for prior and 16 MADE layers for posterior.
- Using 8 NVP layers for the prior and 8 MADE layers for the posterior reduces NLL from 83.11 (baseline) to 80.81, demonstrating significant likelihood improvement.
- The flexible prior alone reduces NLL from 90.78 to 88.70, showing that prior learning improves performance even without posterior flexibility.
- The use of inverse AF as a posterior approximator enables universal approximation of complex posteriors, justifying its use in VAEs.
- Training with a learnable prior leads to better marginal posterior matching, reducing the discrepancy between the true posterior and variational approximation.
- The method achieves state-of-the-art likelihood on MNIST among normalizing flow-based VAEs, with a final NLL of 80.60 using 16 NVP and 16 MADE layers.
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.