The parent note on VAE theory moves fast — it assumes you already read its vectors, distributions, averages, integrals, and divergences fluently. This page slows all the way down and earns each of those symbols from nothing. We introduce them one at a time, in an order where every symbol depends only on the ones already defined. Nothing below is used before it appears in its own boxed definition.
The picture. Imagine every image you could ever draw. A 28×28 image has 784 pixels, so it is a single point in a space with 784 axes. You cannot draw 784 axes, so we always pretend it is a 2D or 3D space — one dot = one whole image.
Why the topic needs it. VAEs are generative: we want to invent new points x that look like they came from the same cloud of real data. So we must first agree that a data example is a point in a space. The bold font just says "this is a vector, not a single number."
The picture. Squeeze the giant x-cloud down onto a tiny 2D map. Nearby points on the map should decode to similar images. That tiny map is the latent space, and a point on it is z.
Why the topic needs it. The whole latent variable model idea is: "data is complicated, but it was generated from a few simple hidden causes." Learning those causes gives us knobs to turn to generate new data. See Latent Variable Models for the general framework.
Everything in a VAE is probabilistic — the model never says "the answer is exactly this," it says "here is a spread of plausible answers." So we need the language of distributions.
The picture. A hill. Tall where values are common, flat where they are rare. The whole hill has area 1.
Why the topic needs it. The VAE's generative story is written entirely in these: sample z∼p(z), then sample x∼p(x∣z). The squiggle ∼ means "is drawn at random from."
Before the bell curve, we need one small piece of bookkeeping notation it will lean on.
The picture. For two dimensions,
I=[1001].
Diagonal = "how much each axis wiggles"; off-diagonal = "how much axes wiggle together" — here, zero.
Why the topic needs it. VAEs assume the latent dimensions are independent — turning one knob does not drag another. That independence is exactly what the 0s in I encode, which is why the prior is written N(0,I) once we meet the Gaussian next.
The picture. Sample z a million times from the hill p, compute f each time, and take the plain average. Common values of z pull the average toward their f.
Why the topic needs it. Every VAE loss term is an average of the form Eqϕ(z∣x)[⋯] — "average reconstruction quality over the codes the encoder suggests." Training estimates this average with just a few samples (Monte Carlo). Understanding E as "weighted average" is the key to reading every loss term you will meet later.
The picture. Slice the hill into thin vertical strips, measure each strip's area, add them all up.
Why "intractable" in the parent note. The marginal is
pθ(x)=∫pθ(x∣z)p(z)dz.
To compute it you must visit everyz and ask "could this code have made x?" In a 784-slot or even 32-slot latent space, there are effectively infinite z to check — no computer can sum them all. This impossibility is the entire reason VAEs exist: they dodge the integral with an approximation. That approximation is inference, formalised in the Evidence Lower Bound.
Why this tool. Likelihoods multiply across a dataset (∏ip(x(i))), giving astronomically small numbers. Taking log converts that product into a sum ∑ilogp(x(i)) that a computer can actually add without rounding to zero. It also linearises the Gaussian's exponential, exposing the clean quadratic terms you see in the KL derivation.
The picture. Two bell curves. When they sit on top of each other, DKL=0. Slide one away or squash its width and DKL climbs.
Why the topic needs it. The VAE's regularization term is DKL(qϕ(z∣x)∥p(z)) — it pulls the encoder's output toward the standard Gaussian prior, keeping the latent map smooth and gap-free. Full details in Kullback-Leibler Divergence.
The picture. An hourglass: data x funnels down through the encoder into the narrow waist z, then fans back out through the decoder into a reconstruction x^.
Why the topic needs it. Training adjusts θandϕtogether to maximize the Evidence Lower Bound. ϕ is the inference machine (approximate posterior); θ is the generator.