Skip to content
BIASED

Latent variables and the ELBO

Block 1 of 8~1 min

From autoencoders to latent variables

The topic Autoencoders ended with a model that compresses well but cannot generate. It has no distribution over codes, so there is nothing to draw a new code from. And its decoder was trained only at the codes of training images, so a code from anywhere else may decode to a smear.

The way out, as that topic suggested, is to make the distribution of codes part of the model. Choose a distribution over codes before training, let the decoder define the probability of an image given its code, and train both so that the codes stay where that distribution expects them. A model built this way is a latent-variable model. Its language — joint, marginal and conditional distributions — comes first.

Answers are saved on the server and tied to this browser until you sign in.

Go deeper — optional

Code and labs do not count toward the main percentage or the certificate.

  • ELBO on a binary-latent toyoptional

    Compare log p(x), ELBO at a mismatched q, and equality at the true posterior. Self-check in the notebook.

    ~25 min · easier on a computer · The ELBO topic read.

    Self-check in the notebook — not part of mastery or the certificate.