Mean-Field VI on a Banana
What you are seeing: the simplest variational inference setup, fit to the simplest distribution that breaks it. Target: a Rosenbrock-style "banana" , a long curved valley. Variational family: a product , axis-aligned Gaussian (mean-field). VI maximizes by gradient ascent.
The contour lines are the target . The orange ellipse is the current . The yellow trace below is the ELBO over training. The "best" Gaussian approximation cannot follow the banana's curvature; it settles into a compact ellipse at the bend.
lr0.005
K (MC)32
speed5
WHAT TO TRY
- Watch the axis-aligned Gaussian try to fit the curved banana: mean-field VI cannot tilt, so it collapses onto one part of the valley and underestimates the variance. That is the classic failure mode.
- Raise K (Monte Carlo samples): the ELBO gradient gets less noisy and the fit settles more smoothly, at higher cost per step. Lower K and it jitters.
- Tune the learning rate: too high and the variational parameters oscillate around the valley, too low and they crawl. The ELBO trace shows convergence.