[Paper Review] PixelVAE++: Improved PixelVAE with Discrete Prior
PixelVAE++ improves generative modeling of images by integrating a PixelCNN++ decoder with a hierarchical variational autoencoder that uses discrete latent variables and a restricted Boltzmann machine (RBM) prior. The model achieves state-of-the-art log-likelihood performance on MNIST, Omniglot, and CIFAR-10, with improved disentanglement and sharper conditional generation compared to Gaussian priors, while using 25% fewer parameters than PixelCNN++.
Constructing powerful generative models for natural images is a challenging task. PixelCNN models capture details and local information in images very well but have limited receptive field. Variational autoencoders with a factorial decoder can capture global information easily, but they often fail to reconstruct details faithfully. PixelVAE combines the best features of the two models and constructs a generative model that is able to learn local and global structures. Here we introduce PixelVAE++, a VAE with three types of latent variables and a PixelCNN++ for the decoder. We introduce a novel architecture that reuses a part of the decoder as an encoder. We achieve the state of the art performance on binary data sets such as MNIST and Omniglot and achieve the state of the art performance on CIFAR-10 among latent variable models while keeping the latent variables informative.
Motivation & Objective
- To improve the performance of variational autoencoders in modeling both global and local image structures.
- To address the limitation of VAEs in reconstructing fine-grained details by combining them with autoregressive decoders.
- To investigate the impact of discrete latent priors—specifically RBM priors—on representation quality and generative performance.
- To reduce model complexity while maintaining or improving log-likelihood and disentanglement on benchmark datasets.
- To enable more informative and sharper conditional generation by optimizing the prior distribution over latent variables.
Proposed method
- Introduces a hierarchical VAE with three types of latent variables: 512 concatenated, 128 conditional, and 8×8×3×(n+1) shared latent variables.
- Employs a PixelCNN++ decoder for autoregressive modeling of image pixels, enabling high-fidelity reconstruction of local details.
- Shares most parameters between the decoder and a hierarchical encoder, reducing model complexity and enabling end-to-end training.
- Uses a continuous relaxation via the Gumbel-Softmax estimator to backpropagate through discrete latent variables in the RBM prior.
- Applies a fully visible RBM as the prior over discrete latent variables to model complex, multi-modal distributions in the latent space.
- Optimizes the evidence lower bound (ELBO) with a relaxed objective that enables training of the DVAE with RBM priors.
Experimental results
Research questions
- RQ1Can a VAE with a discrete latent prior and autoregressive decoder outperform existing models in log-likelihood on image generation tasks?
- RQ2How does the choice of prior (Gaussian vs. RBM) affect the disentanglement and sharpness of the conditional distribution in image generation?
- RQ3To what extent can shared parameters between encoder and decoder reduce model complexity without sacrificing performance?
- RQ4Can discrete latent variables effectively capture global image features (e.g., digit class, object composition) while the autoregressive decoder models local variations?
- RQ5Does using an RBM prior improve the informativeness and expressivity of the latent space compared to standard Gaussian priors?
Key findings
- PixelVAE++ achieves a log-likelihood of 2.90 bits per dimension (bpd) on CIFAR-10, outperforming other latent variable models and matching PixelCNN++ with 25% fewer parameters.
- On MNIST, the model achieves a test log-likelihood of -78.65 bpd with an RBM prior, slightly better than the Gaussian prior variant (-78.66 bpd), with significantly lower KL divergence (7.62 vs. 6.86), indicating better posterior alignment.
- On Omniglot, the RBM-prior model achieves a test log-likelihood of -88.29 bpd, outperforming the Gaussian prior model (-88.65 bpd), and shows sharper conditional distributions that better capture shape variations.
- The RBM prior leads to a more informative latent space, as evidenced by lower KL divergence between the posterior and prior, and improved disentanglement of global features.
- Conditional generation results show that the RBM-prior model produces sharper, more consistent reconstructions across multiple samples per latent code, especially on MNIST and Omniglot.
- On CIFAR-10, despite broad conditional distributions, the model still captures global features like color and composition, and the RBM prior enables better performance than Gaussian priors in terms of log-likelihood and disentanglement.
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.