[Paper Review] Resampled Priors for Variational Autoencoders
This paper introduces Learned Accept/Reject Sampling (Lars), a method that improves variational autoencoder (VAE) performance by learning an acceptance function to resample from a base prior, creating a richer, more expressive prior distribution. The approach enables efficient training and sampling, achieving higher ELBOs and improved generation quality on standard datasets, especially when combined with flow-based proposals.
We propose Learned Accept/Reject Sampling (LARS), a method for constructing richer priors using rejection sampling with a learned acceptance function. This work is motivated by recent analyses of the VAE objective, which pointed out that commonly used simple priors can lead to underfitting. As the distribution induced by LARS involves an intractable normalizing constant, we show how to estimate it and its gradients efficiently. We demonstrate that LARS priors improve VAE performance on several standard datasets both when they are learned jointly with the rest of the model and when they are fitted to a pretrained model. Finally, we show that LARS can be combined with existing methods for defining flexible priors for an additional boost in performance.
Motivation & Objective
- To address the mismatch between the prior and aggregate posterior in VAEs, which can lead to underfitting with standard priors.
- To develop a method for constructing expressive, tractable priors that improve VAE performance without sacrificing sampling efficiency.
- To enable end-to-end learning of the acceptance function for rejection sampling, using only samples from the target distribution.
- To provide a flexible, modular approach that can be combined with existing methods like normalizing flows for further performance gains.
- To support both joint training and post-hoc adaptation of priors in pretrained VAEs.
Proposed method
- Lars uses a learned acceptance function, typically a neural network, to perform rejection sampling on a base prior (e.g., standard normal), transforming it into a richer, more expressive prior.
- The acceptance function is trained end-to-end via the ELBO objective, allowing the model to learn a density that better matches the aggregate posterior.
- A truncated variant of Lars ensures a minimum acceptance rate by forcing acceptance after a fixed number of rejections, improving sampling efficiency.
- The normalizing constant of the resulting resampled prior is estimated via Monte Carlo sampling, enabling reliable model comparison.
- The method is general and applicable to both continuous and discrete latent spaces, and can be combined with other flexible prior models like flows.
- The acceptance function effectively learns a density ratio between the aggregate posterior and the proposal, without requiring explicit density evaluation.
Experimental results
Research questions
- RQ1Can a learned acceptance function in rejection sampling produce a more expressive prior that improves VAE performance?
- RQ2How can the normalizing constant of a resampled prior be efficiently estimated and differentiated during training?
- RQ3Can Lars be applied to both joint training and post-hoc refinement of pretrained VAEs?
- RQ4What is the trade-off between sampling efficiency and approximation accuracy in Lars, and how can it be controlled?
- RQ5How does Lars compare to other flexible prior methods like flows or VampPrior in terms of ELBO and generation quality?
Key findings
- Lars priors significantly improve the ELBO on multiple standard datasets, including MNIST, CIFAR-10, and CelebA, compared to standard normal priors.
- When combined with flow-based proposals, Lars achieves further gains in ELBO, demonstrating compatibility and synergy with existing flexible prior methods.
- The truncated version of Lars enables a controlled trade-off between sampling efficiency and approximation quality, with minimal performance drop at high truncation thresholds.
- Lars can be applied post-hoc to pretrained VAEs, where the learned acceptance function effectively ranks latent samples by reconstruction quality.
- The method generalizes to discrete latent spaces, as demonstrated on the discrete output distribution of a VAE, showing broad applicability.
- The resampled prior's explicit density allows reliable model comparison via Monte Carlo estimation of the normalizing constant.
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.