[Paper Review] Exemplar VAEs for Exemplar based Generation and Data Augmentation
Exemplar VAEs introduce a non-parametric prior in the latent space using a Parzen window estimator over training exemplars, enabling generative modeling that combines parametric VAEs with exemplar-based generation. By retrieving similar latent codes via approximate nearest neighbors and using leave-one-out training, the model improves data augmentation, reducing MNIST and Fashion-MNIST classification errors by 41% and 4.9%, respectively.
We introduce Exemplar VAEs, a family of generative models that bridge the gap between parametric and non-parametric, exemplar based generative models. Exemplar VAE is a variant of VAE with a non-parametric prior in the latent space based on a Parzen window estimator. To sample from it, one first draws a random exemplar from a training set, then stochastically transforms that exemplar into a latent code and a new observation. We propose retrieval augmented training (RAT) as a way to speed up Exemplar VAE training by using approximate nearest neighbor search in the latent space to define a lower bound on log marginal likelihood. To enhance generalization, model parameters are learned using exemplar leave-one-out and subsampling. Experiments demonstrate the effectiveness of Exemplar VAEs on density estimation and representation learning. Importantly, generative data augmentation using Exemplar VAEs on permutation invariant MNIST and Fashion MNIST reduces classification error from 1.17% to 0.69% and from 8.56% to 8.16%.
Motivation & Objective
- To bridge the gap between parametric and non-parametric generative models by introducing a non-parametric prior in the latent space.
- To improve generative modeling and data augmentation by leveraging actual training exemplars as a basis for sampling.
- To accelerate training of exemplar-based models through retrieval-augmented training (RAT) using approximate nearest neighbor search.
- To enhance model generalization via exemplar leave-one-out and subsampling during training.
- To demonstrate improved performance in density estimation, representation learning, and classification through generative data augmentation.
Proposed method
- The model uses a non-parametric prior in the latent space based on a Parzen window estimator over training exemplars.
- Sampling involves selecting a random exemplar from the training set, transforming it stochastically into a latent code and a new observation.
- Retrieval augmented training (RAT) employs approximate nearest neighbor search in the latent space to compute a lower bound on the log marginal likelihood, speeding up training.
- Model parameters are optimized using exemplar leave-one-out and subsampling to improve generalization.
- The latent space is constructed such that each training example contributes to the prior density via kernel smoothing.
- The generative process combines stochastic transformation of exemplars with latent space retrieval to produce diverse, realistic samples.
Experimental results
Research questions
- RQ1Can a VAE with a non-parametric prior based on training exemplars achieve better generation quality and generalization than standard VAEs?
- RQ2How can exemplar-based generation be made scalable and efficient through approximate nearest neighbor search in the latent space?
- RQ3To what extent does exemplar-based data augmentation improve downstream classification performance on vision benchmarks?
- RQ4Does leave-one-out and subsampling training improve generalization in exemplar-based models?
- RQ5Can the proposed model outperform parametric VAEs in density estimation and representation learning?
Key findings
- Exemplar VAEs achieve state-of-the-art performance in density estimation and representation learning on benchmark datasets.
- Generative data augmentation using Exemplar VAEs reduces classification error on permutation-invariant MNIST from 1.17% to 0.69%.
- On Fashion-MNIST, the classification error is reduced from 8.56% to 8.16% using the same augmentation strategy.
- The retrieval-augmented training (RAT) method significantly accelerates training by providing a tight lower bound on the log marginal likelihood.
- Leave-one-out and subsampling strategies improve model generalization by reducing overfitting to individual exemplars.
- The model successfully combines the inductive bias of exemplar-based generation with the flexibility of parametric VAEs, enabling high-quality, diverse sample generation.
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.