The interactive film is in the book's Companion

Play it, pause it, turn it and drag it with Mathematics for AI and Machine Learning.

Get the book

The ELBO: a Hill under the Evidence

Chapter 14 · Mathematics for AI and Machine Learning · Advanced · 1:58

An interactive live film: for a small Gaussian latent model, the ELBO over all Gaussian q is a hill under the flat sheet log p(x); the gap is KL(q || p(z|x)). Drag q to close the gap.

Narration

A tiny latent variable model: z is standard normal, and x given z is normal around z with variance one half. We observe x equal to one and a half. The evidence, p of x, integrates over every z.

Pick any Gaussian q for z, with a mean and a standard deviation: a point on this floor. Above it stands its evidence lower bound, the expected log joint minus the expected log q. Over the floor, the ELBO is a hill.

The rest of the narration is in the book's Companion.

More from Chapter 14

Interactive1:42KL Divergence: Two Orders, Two Different FitsChapter 14Preview1:57Entropy, Cross-Entropy and KL: the Wasted BitsChapter 14Preview1:38Entropic Optimal Transport and SinkhornChapter 14Preview1:45Wasserstein Distance: the Cheapest Way to Move the EarthChapter 14Preview2:04Fisher Information: the Curvature of KLChapter 14Preview1:53The InfoNCE BoundChapter 14