# VAE (2013)

> An autoencoder whose code is a probability distribution, trained with ordinary backpropagation thanks to one change of variables.

Page: https://mralbu.github.io/ai-datasets/p/vae

## Key facts

- Title: Auto-Encoding Variational Bayes
- Authors: Diederik P. Kingma, Max Welling
- Venue: ICLR 2014
- Category: Vision
- Paper: https://www.alphaxiv.org/abs/1312.6114

## Why it matters

It made deep latent-variable models trainable with the same tools as any neural network. The reparameterization trick spread far beyond generative models, and VAE-style autoencoders now compress images for latent diffusion models such as Stable Diffusion.

## The idea

An encoder maps each image to a distribution over hidden codes, a decoder maps codes back to images, and both are trained to maximize a bound on the likelihood of the data. The reparameterization trick writes a random code as a deterministic function of the input plus independent noise, so gradients flow through the sampling step.

## The result

On MNIST and a set of face images it trained faster and reached better likelihood bounds than wake-sleep and Monte Carlo EM, and learned smooth two-dimensional maps of digits and faces.

## The data

- [MNIST (1998)](https://mralbu.github.io/ai-datasets/d/mnist.md): 70,000 handwritten digits, 28×28 grayscale, 10 classes.

## Led to

- [Latent diffusion (2021)](https://mralbu.github.io/ai-datasets/p/latent-diffusion.md)

## Part of

- [Generative image models](https://mralbu.github.io/ai-datasets/t/generative-images.md) (step 1 of 5)
