Skip to content
Neural Networks and AI / Generative Deep Learning

Variational Autoencoders and the Reparameterization Idea

A standard autoencoder maps each input to one code — useful for compression and anomaly screening, but awkward for sampling new plausible observations. A variational autoencoder (VAE) treats the code as a distribution: the encoder outputs parameters of qϕ(z∣x)q_\phi(z\mid x), the decoder models pθ(x∣z)p_\theta(x\mid z), and training maximises a variational lower bound combining reconstruction with a penalty that shapes the latent space. The reparameterization trick makes sampling from that latent distribution differentiable, enabling end-to-end training with stochastic gradient methods.

In this lesson

  1. Learning objectives
  2. Probabilistic latent codes
  3. The reparameterization trick
  4. Generation and limits
  5. Worked example

Before you start

The full lesson, with worked examples and exercise solutions, is for members.

Read the full lesson

New to SelfMadeQuant.com? See membership options or explore the curriculum.