Skip to main content
QUICK REVIEW

[Paper Review] Diffusion Priors In Variational Autoencoders

Antoine Wehenkel, Gilles Louppe|arXiv (Cornell University)|Jun 29, 2021
Generative Adversarial Networks and Image SynthesisComputer Science21 references8 citations
TL;DR

This paper proposes using denoising diffusion probabilistic models (DDPMs) as learnable priors in variational autoencoders (VAEs), replacing the standard Gaussian prior to improve generative performance. By jointly training the VAE encoder, decoder, and diffusion prior via the ELBO objective, the method achieves sample quality on par with normalizing flow priors, particularly outperforming Gaussian priors on CelebA and showing competitive results on CIFAR10 despite FID score limitations.

ABSTRACT

Among likelihood-based approaches for deep generative modelling, variational autoencoders (VAEs) offer scalable amortized posterior inference and fast sampling. However, VAEs are also more and more outperformed by competing models such as normalizing flows (NFs), deep-energy models, or the new denoising diffusion probabilistic models (DDPMs). In this preliminary work, we improve VAEs by demonstrating how DDPMs can be used for modelling the prior distribution of the latent variables. The diffusion prior model improves upon Gaussian priors of classical VAEs and is competitive with NF-based priors. Finally, we hypothesize that hierarchical VAEs could similarly benefit from the enhanced capacity of diffusion priors.

Motivation & Objective

  • To improve the generative performance of variational autoencoders (VAEs) by replacing the standard Gaussian prior with a more expressive prior model.
  • To investigate whether denoising diffusion probabilistic models (DDPMs) can serve as effective, learnable priors in the VAE framework.
  • To evaluate the impact of diffusion priors on sample quality and FID scores across different datasets and latent dimensions.
  • To explore the potential of diffusion priors in hierarchical VAE architectures for enhanced structural modeling.

Proposed method

  • The method replaces the standard Gaussian prior in VAEs with a DDPM-based prior, trained jointly via the evidence lower bound (ELBO) objective.
  • The diffusion prior is trained to model the distribution of latent variables by reversing a forward noising process, learning a score-based generative model in latent space.
  • The VAE's encoder and decoder are trained end-to-end with the diffusion prior using stochastic gradient ascent on the ELBO, which includes KL divergence between posterior and prior.
  • The architecture uses a DCGAN-inspired encoder-decoder backbone with shared components across all models for fair comparison.
  • The diffusion prior is implemented as a 3-step denoising process with a simple MLP-based transition function, similar to the normalizing flow baseline.
  • Training is performed for 250 epochs using Adam with a fixed learning rate of 0.0005, with model selection based on validation set performance.

Experimental results

Research questions

  • RQ1Can DDPMs effectively serve as a learnable prior in VAEs, improving upon the performance of standard Gaussian priors?
  • RQ2How does the generative quality of VAEs with diffusion priors compare to those with normalizing flow priors in terms of FID scores and visual fidelity?
  • RQ3Does the diffusion prior provide a more expressive and compatible prior distribution for complex data distributions like CelebA and CIFAR10?
  • RQ4To what extent do FID scores accurately reflect perceptual sample quality when using diffusion priors in VAEs?
  • RQ5Can the combination of VAE compression and diffusion modeling lead to improved sample quality with simpler decoder architectures?

Key findings

  • On the CelebA dataset, the diffusion prior achieves a FID score of 114.8 at 40 latent dimensions, outperforming the Gaussian prior (154.3) and approaching the performance of normalizing flows (72.9).
  • At 100 latent dimensions on CelebA, the diffusion prior achieves a FID of 67.95, significantly outperforming the Gaussian prior (149.4) and nearing the NF baseline (59.49).
  • On CIFAR10, the diffusion prior yields a FID of 160.5 at 100 dimensions, slightly worse than the Gaussian prior (126.2), but visual inspection suggests it generates more realistic samples than the Gaussian prior.
  • Despite higher FID scores, visual samples from the diffusion prior on CIFAR10 are perceived as more realistic than those from the Gaussian prior, indicating FID may not fully capture perceptual quality.
  • The normalizing flow prior achieves the best FID scores on both datasets, but visual quality does not consistently reflect this advantage, suggesting FID scores alone are insufficient for evaluating sample quality.
  • The results suggest that diffusion priors offer a strong alternative to normalizing flows for prior modeling in VAEs, particularly in terms of sample realism and compatibility with hierarchical architectures.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.