Variational Inference
MCMC samples from the posterior and is asymptotically exact. It is also slow, and on large models it can be impractically so.
Variational inference takes a different route: pick a family of simple distributions, and find the member closest to the true posterior. Inference becomes optimisation.
Take the closest tractable distribution to the true posterior, where closeness is measured by KL divergence.
The ELBO
Minimising that KL directly is impossible, since it contains the intractable posterior. The standard manipulation shows it is equivalent to maximising the evidence lower bound:
which is computable. Maximising the ELBO minimises the KL, and now you have an ordinary optimisation problem that gradient methods can attack at scale.
The rest of this lesson is for subscribers
Unlock every lesson in Advanced Topics in Probability and Statistics, and every other premium course.
Subscribe to continueTest your knowledge
Keep reading Advanced Topics in Probability and Statistics
35 lessons in this course, and every other premium course, on one subscription.
- Every lesson in every course, with the worked examples and interactive simulators
- Graded questions on every lesson, with explanations for the wrong answers as well as the right one
- The trainers, timed assessments and brainteaser library that go with them