Variational Inference: Simple Example (+ Python Demo)

Published: 29 April 2022
on channel: Machine Learning & Simulation
23,755
662

Variational Bayesian Methods can be difficult to understand. In this video, we will look at the simple Exponential-Normal model for which the posterior is intractable. We will show why and then propose a surrogate and perform VI. Here are the notes: https://github.com/Ceyron/machine-lea...

Find the visualization here: https://share.streamlit.io/ceyron/mac...

Variational Inference is a powerful technique in Machine Learning that is used to find approximate posteriors for generative models. In particular, it is being used extensively for Variational Autoencoders.

-------

📝 : Check out the GitHub Repository of the channel, where I upload all the handwritten notes and source-code files (contributions are very welcome): https://github.com/Ceyron/machine-lea...

📢 : Follow me on LinkedIn or Twitter for updates on the channel and other cool Machine Learning & Simulation stuff:   / felix-koehler   and   / felix_m_koehler  

💸 : If you want to support my work on the channel, you can become a Patreon here:   / mlsim  

-------

Timestamps:
00:00 Introduction
00:38 Agenda
01:30 Joint distribution
04:49 Trying to find the true posterior (and fail)
14:45 Visualization (Joint, Posterior & Surrogate)
19:05 Recap: Variational Inference & ELBO
21:56 Introducing a parametric surrogate posterior
24:45 Remark: Approximating the ELBO by sampling
27:24 Performing Variational Inference (Optimizing ELBO)
38:38 Python example with TensorFlow Probability
47:09 Outro


On this page of the site you can watch the video online Variational Inference: Simple Example (+ Python Demo) with a duration of hours minute second in good quality, which was uploaded by the user Machine Learning & Simulation 29 April 2022, share the link with friends and acquaintances, this video has already been watched 23,755 times on youtube and it was liked by 662 viewers. Enjoy your viewing!