Mean-Field Approximation

Chapter 16 Probability & information

Chapter 16: Variational Inference and Latent Variables — Mean-Field Variational Inference (also appears in Ch. 21)

From the book

Chapter 16: Variational Inference and Latent Variables. In the chapter mind map this icon labels Mean-Field Variational Inference. The discussion below is excerpted and lightly edited from § Mean-Field Variational Inference in Mathematics for AI and Machine Learning. Related material also appears in Chapter 21 (Wasserstein Gradient Flow & Stein's Identity).

We have seen three choices of variational family; the simplest is mean field. Here we assume the latent variables are independent, so $q(\mathbf z)$ factorizes into a product of univariate marginals. That factorization buys tractability: coordinate-ascent variational inference (CAVI) updates each factor $q_i(z_i)$ in turn with the others held fixed, often in closed form.

Mean field works well when correlations between latents are weak; when they are strong, the independence assumption misses important structure, as the book figure shows.

What this drawing shows

What you see. Correlated posterior $p$ (blue ellipse) fixed; dashed factorized $q$ expands, illustrating $q(z)=\prod_i q_i(z_i)$ mean-field VI.

In the mind map. Chapter 16 — Mean-Field Variational Inference. See From the book above for definitions, figures, and worked examples.

Also appears in Ch. 21 (Wasserstein Gradient Flow & Stein's Identity).

Where to read next

Open Chapter 16 companion →

Read the full definitions, figures, and worked examples in Chapter 16: Variational Inference and Latent Variables — see the mind-map node Mean-Field Variational Inference.

This concept is also referenced in Chapter 21 (Wasserstein Gradient Flow & Stein's Identity).

PNG Icons

Textless (256×256 px)
PNG 256×256 px Copy PNG URL
Textless (64×64 px)
PNG 64×64 px Copy PNG URL
Textless (32×32 px)
PNG 32×32 px Copy PNG URL

Animated GIFs

Animated GIF (256×256 px)
GIF 256×256 px Copy GIF URL
Animated GIF (128×128 px)
GIF 128×128 px Copy GIF URL
Animated GIF (64×64 px)
GIF 64×64 px Copy GIF URL