[Paper Review] Variational Autoencoders with Normalizing Flow Decoders
This paper proposes a hybrid generative model that combines a variational autoencoder (VAE) with a normalizing flow decoder (Glow) to improve training efficiency without sacrificing image quality. By training the VAE first and then fine-tuning with a Glow flow, the model achieves competitive FID scores and bits-per-dimension while reducing training time by over 3.5x compared to standalone Glow.
Recently proposed normalizing flow models such as Glow have been shown to be able to generate high quality, high dimensional images with relatively fast sampling speed. Due to their inherently restrictive architecture, however, it is necessary that they are excessively deep in order to train effectively. In this paper we propose to combine Glow with an underlying variational autoencoder in order to counteract this issue. We demonstrate that our proposed model is competitive with Glow in terms of image quality and test likelihood while requiring far less time for training.
Motivation & Objective
- Address the high computational cost and long training times of normalizing flow models like Glow, which require deep architectures to compensate for structural constraints.
- Improve sample quality of standard VAEs, which typically produce blurry images due to restrictive Gaussian assumptions and independent pixel decoders.
- Enable faster training of likelihood-based generative models by leveraging the VAE's compact latent space as a prior for the normalizing flow.
- Demonstrate that a two-stage training procedure—first training a VAE, then adding a Glow flow—can yield competitive image quality with reduced training time.
Proposed method
- Use a standard VAE with a deep residual encoder and a learnable diagonal Gaussian decoder to learn a compact, disentangled latent representation.
- Apply a single-layer Glow normalizing flow on top of the VAE's latent space to model complex, non-Gaussian likelihoods and refine generated samples.
- Train the VAE for 1,000 epochs first, then fine-tune the Glow flow for another 1,000 epochs, using a shared latent space and shared optimization schedule.
- Implement the Glow flow with 16 coupling layers, each consisting of two fully connected layers with ReLU activations, to enable invertible, normalizing flow-based transformation.
- Use a learnable scale parameter γ in the VAE decoder to optimize the variance of the pixel-wise Gaussian distribution, improving reconstruction quality.
- Apply two-stage training: first optimize the VAE to learn a meaningful latent space, then use the VAE's latent codes as input to the Glow flow for refinement.
Experimental results
Research questions
- RQ1Can combining a VAE with a normalizing flow decoder reduce training time while maintaining or improving image quality compared to standalone Glow?
- RQ2Does the two-stage training procedure—first training a VAE, then adding a Glow flow—lead to better sample diversity and sharper images than a standard VAE?
- RQ3To what extent does the VAE's latent space serve as an effective prior for the normalizing flow, enabling faster convergence and better likelihood scores?
- RQ4How does the proposed model compare in FID and bits-per-dimension to state-of-the-art likelihood-based models like Glow, PixelCNN, and Residual Flow on CIFAR-10 and CelebA?
- RQ5Can the Glow flow act as a 'sharpening' module that preserves content while enhancing fine details without degrading the VAE's latent representation?
Key findings
- The proposed model achieves a Fréchet Inception Distance (FID) of 42.14 on CIFAR-10, outperforming Glow (46.90) and matching or exceeding other likelihood-based models.
- On CelebA, the model achieves an FID of 20.59, slightly higher than Glow’s 19.00 but within a competitive range, with bits-per-dimension ≤2.50.
- The model reduces training time by over 3.5x compared to standalone Glow, with an average of 140 seconds per epoch on a single GTX 1080 Ti, versus Glow’s ~512 seconds.
- Qualitative results show that the Glow layer acts as a 'sharpening' module: VAE samples are blurry, but after passing through Glow, they become significantly sharper with preserved content.
- Latent space interpolation demonstrates that the model learns a compact, disentangled representation, as shown by smooth transitions between generated images.
- The use of a learnable decoder variance in the VAE improves reconstruction quality and enables better alignment with the optimal VAE objective, even when combined with a normalizing flow.
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.