Variational Family
Chapter 16: Variational Inference and Latent Variables — Variational Family
From the book
Chapter 16: Variational Inference and Latent Variables. In the chapter mind map this icon labels **Formulations: Variational Family $q(\mathbf{z})$. The discussion below is excerpted and lightly edited from § Variational Family** in Mathematics for AI and Machine Learning.
The variational family $\mathcal{Q}$ sets the trade-off between accuracy and cost. The mean field family $q(\mathbf z) = \prod_{i=0}^{k-1} q_i(z_i)$ factorizes over the coordinates; a Gaussian $\mathcal{N}(\mathbf z | \boldsymbol\mu, \boldsymbol\Sigma)$ captures linear correlations with $O(k^2)$ parameters for a full covariance, or $2k$ for a diagonal one; and in a VAE a neural network outputs the parameters for every input, $q_{\boldsymbol\phi}(\mathbf z | \mathbf x) = \mathcal{N}(\mathbf z | \boldsymbol\mu_{\boldsymbol\phi}(\mathbf x), \boldsymbol\Sigma_{\boldsymbol\phi}(\mathbf x))$.
What this drawing shows
What you see. Candidate $q_\phi(z)$ curves fixed; highlight cycles across family members until one approximation becomes solid with filled support.
In the mind map. Chapter 16 — Formulations: Variational Family. See From the book above for definitions, figures, and worked examples.
Where to read next
Read the full definitions, figures, and worked examples in Chapter 16: Variational Inference and Latent Variables — see the mind-map node Formulations: Variational Family.