The target is a bivariate Gaussian with zero mean, unit variances and correlation ρ=0.9. A mean-field approximation q(z1,z2)=q1(z1)q2(z2) is fitted by minimising KL(q ∥ p). What are the factor variances, and why are they much smaller than the true marginal variances?

Probabilistic models, Variational inference
Level L4 Advanced. Length Medium. Nature Th+Mat Both.

What's being asked

Whether you know that minimising KL(q∥p) with a factorised q gives variances 1/Λii, and can explain why this under-covers.

Key idea

The mean-field update gives qi=N(μi,Λii−1) where Λ=Σ−1 is the precision matrix. The conditional variance is below the marginal variance whenever the variables are correlated.

Steps

  1. The covariance is Σ=(10.90.91). Its inverse is Λ=11−ρ2(1−ρ−ρ1). With 1−0.81=0.19, we get Λ11=Λ22=1/0.19=5.26.
  2. ln⁡p(z1,z2)=−12(Λ11z12+2Λ12z1z2+Λ22z22)+const. Average over q2 in the q1 update, keeping only terms in z1: Eq2[ln⁡p]=−12Λ11z12−Λ12z1 E[z2]+const.
  3. This is a Gaussian in z1 with precision Λ11 and mean −Λ12E[z2]/Λ11=ρ E[z2]. By symmetry the same holds for q2. The fixed point is the true mean 0.
  4. Variance of each factor: 1/Λ11=1−ρ2=0.19, with standard deviation 0.436. The true marginal variance is 1.
  5. Why: the reverse KL KL(q∥p) heavily penalises any mass that q puts where p has almost none (it would be infinite where p=0). The target is a thin ridge along the diagonal, and an axis-aligned q must stay narrow to avoid leaving the ridge. So q ends up with the conditional variance, not the marginal variance.
  6. Consequence: mean-field posteriors are over-confident. The means are right here, but credible intervals are too narrow, and the stronger the correlation, the worse it gets.

Common mistakes

How long your answer should be

Half a page to a page.

Last checked on 4 December 2026.

Read this

Previous in Probabilistic models: Derive the log marginal likelihood of a GP regression model with y∼N(0,Ky), Ky=K+σ2I, and its gradient with respect to a kernel hyperparameter θ. How do the data-fit and complexity terms trade off as the length-scale grows?
Next in Probabilistic models: Two chains, each with n=4 post-burn-in draws of a scalar, give (1,2,3,2) and (3,4,5,4). Compute the Gelman–Rubin R^ and say what it indicates. Why is R^≈1 still not a proof of convergence?