Back to Deep Learning Mind Map
中文·English
🧠 Deep LearningID: vae

VAE & Reparameterization

VAE 与重参数化
🎯Core Definition
A VAE is a variational generative model trained on the evidence lower bound: logp(x)Eq(zx)[logp(xz)]DKL(q(zx)p(z))\log p(x) \ge \mathbb{E}_{q(z|x)}[\log p(x|z)] - D_{KL}(q(z|x) \Vert p(z)) — a reconstruction term plus a KL regularizer toward the prior. Because sampling from q(zx)q(z|x) gives an expectation non-differentiable w.r.t. parameters, the reparameterization trick writes z=μ+σϵz = \mu + \sigma \odot \epsilon with ϵN(0,I)\epsilon \sim \mathcal{N}(0, I), moving the randomness into parameter-free noise so the sampling path is backprop-compatible.
💡Use Cases
generative modeling, latent representation learning, anomaly detection, and as the conceptual foundation of diffusion models (the noising process is a hierarchical VAE); interviews drill ELBO derivation and the reparameterization trick.
Key Problems Solved
maximizing logp(x)\log p(x) directly requires an intractable marginal integral; VAEs turn inference into an SGD-optimizable lower bound. Unlike an autoencoder — a deterministic encoder with no prior constraint, giving an unstructured latent space that cannot be sampled for generation — the VAE pushes q(zx)q(z|x) toward the prior p(z)p(z) and becomes generative; the cost is blurry samples (mode averaging: one zz must explain many modes, so outputs average over them) from the Gaussian pixel likelihood — the mirror image of GANs, which are sharp but hard to train.
🎯5 High-Frequency Exam Points
1
Derive the VAE ELBO. Why is it a lower bound on logp(x)\log p(x)?
2
What problem does the reparameterization trick solve? Why can't we sample straight from q(zx)q(z|x)?
3
Core difference between VAE and AE? Why can't an AE generate new samples?
4
Why are VAE samples blurry? The mechanism of mode averaging?
5
How are the KL and reconstruction terms balanced? What are β\beta-VAE and posterior collapse?
Updated 2026-08-12
🎯
Test Your Knowledge: Practice Questions for "VAE & Reparameterization"
Single choice pitfall questions with instant feedback and mistake tracking.
🚀 Start Card Practice
Previous CardWGAN & WassersteinNext CardTraining Debugging

🔗 More Deep Learning Knowledge Cards

Activation FunctionsAdam & AdamWAutograd Compute GraphBatch Normalization