Skip to main content
QUICK REVIEW

[Paper Review] Exemplar VAE: Linking Generative Models, Nearest Neighbor Retrieval, and Data Augmentation

Sajad Norouzi, David J. Fleet|arXiv (Cornell University)|Apr 9, 2020
Generative Adversarial Networks and Image SynthesisComputer Science61 references9 citations
TL;DR

Exemplar VAE introduces a non-parametric variational autoencoder with a Parzen window prior over latent codes, enabling generation by transforming random training exemplars. It achieves state-of-the-art results in density estimation and representation learning, reducing MNIST and Fashion MNIST test errors from 1.17% to 0.69% and 8.56% to 8.16% via generative data augmentation.

ABSTRACT

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 parametric and non-parametric generative modeling by combining VAEs with exemplar-based learning.
  • To improve representation learning and density estimation by replacing the standard Gaussian prior with a non-parametric Parzen window prior in the latent space.
  • To enable scalable training of exemplar-based models on large datasets through retrieval-augmented training (RAT).
  • To enhance generalization via exemplar leave-one-out and subsampling regularization.
  • To demonstrate the effectiveness of Exemplar VAEs for generative data augmentation in supervised learning.

Proposed method

  • Uses a non-parametric prior in the latent space based on a Parzen window estimator over training exemplars, replacing the standard Gaussian prior in VAEs.
  • Samples from the Exemplar VAE by first drawing a random training exemplar, then stochastically transforming it into a latent code and a new observation via a learned decoder.
  • Proposes Retrieval-Augmented Training (RAT), which uses approximate nearest neighbor search in the latent space to compute a lower bound on the log marginal likelihood, accelerating training.
  • Employs exemplar leave-one-out and subsampling as regularizers to prevent overfitting and improve generalization.
  • Leverages amortized variational inference to jointly optimize the autoencoder, latent space, and distance metric by maximizing a lower bound on log-likelihood.
  • Uses a hybrid objective combining reconstruction loss and a contrastive term that encourages the model to generate diverse, plausible samples from different exemplars.

Experimental results

Research questions

  • RQ1Can a non-parametric prior in the latent space of a VAE improve representation quality and density estimation compared to parametric priors like Gaussian or VampPrior?
  • RQ2Can retrieval-augmented training (RAT) significantly accelerate training of exemplar-based VAEs while maintaining or improving performance?
  • RQ3Does generative data augmentation using Exemplar VAEs lead to improved generalization in supervised classification tasks, especially on permutation-invariant datasets?
  • RQ4Can the model learn a meaningful latent space and distance metric without relying on pre-specified metrics, through joint optimization of the autoencoder and prior?
  • RQ5How does the performance of Exemplar VAEs compare to standard VAEs and other state-of-the-art models in terms of test error and log-likelihood on benchmark datasets?

Key findings

  • Exemplar VAEs outperform standard VAEs with Gaussian prior and VampPrior on density estimation across MNIST, Fashion MNIST, Omniglot, and CelebA.
  • The model achieves a test error of 0.69% on permutation-invariant MNIST, reducing the baseline error of 1.17% by 41.0%, demonstrating strong generalization via data augmentation.
  • On Fashion MNIST, Exemplar VAE-based data augmentation reduces test error from 8.56% to 8.16%, a relative improvement of 4.7%.
  • Retrieval-augmented training (RAT) enables efficient training on large-scale datasets by using approximate nearest neighbor search to compute a lower bound on log-likelihood.
  • Exemplar leave-one-out and subsampling regularization significantly reduce overfitting and improve generalization, especially in low-data regimes.
  • Generative data augmentation with Exemplar VAEs produces better classifier performance than training on real data alone, even when using only synthetic data for training.

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.