Variational autoencoders
Step 3 of 13 in Generative AI · Build · Medium
Make the code a distribution and keep it close to a standard Gaussian, so sampling the code space generates new data.
Build it
MNIST VAE
Reparameterization trick and ELBO loss; decode a grid over the latent space.
Done when: Smooth morphing between digits.
Case study: VAE paper (2013)
- The reparameterization trick made sampling differentiable.
- Turned variational inference into ordinary backprop.
- Latent spaces like this power Stable Diffusion's compression stage.
Resources
Earn this star
On the map, you log what you built. Finish the step and its star lights.
Open this step on the map