Andy Jones
Recall that the reverse KL divergence between two distributions, q ( x ) ๐ ( ๐ฅ ) and p ( x ) ๐ ( ๐ฅ ) is defined as Expanding the log, we can write this in terms of an entropy term and a cross entropy term E q ( x ) [ log q ( x ) ] โ E q ( x ) [ log p ( x ) ] = โ H ( q ) + H c ( q , p ) ๐ธ ๐ ( ๐ฅ ) [ log โก ๐ ( ๐ฅ ) ] โ ๐ธ ๐ ( ๐ฅ ) [ log โก ๐ ( ๐ฅ ) ] = โ ๐ป ( ๐ ) + ๐ป ๐ ( ๐ , ๐ ) If we can estimate the entropy of q ๐ exactly, then all thatโs left is to get a Monte Carlo estimate of E q ( x ) [ log p ( x ) ] ๐ธ ๐ ( ๐ฅ ) [ log โก ๐ ( ๐ฅ ) ] . We can do this by sampling x 1 , โฆ , x T โผ q ( x ) ๐ฅ 1 , โฆ , ๐ฅ ๐ โผ ๐ ( ๐ฅ ) and computing There are two types of KL divergence: forward and reverse. Forward KL divergence corresponds to D K L ( p | q ) ๐ท ๐พ ๐ฟ ( ๐ | ๐ ) , and reverse corresponds to D K L ( q | p ) ๐ท ๐พ ๐ฟ ( ๐ | ๐ ) . The reverse KL divergence is said to be โmode-seekingโ. This means that the divergence will be low when q ๐ places densi
Andy Jones //--> $KL(q | p)$ is mode-seeking | Andy Jones $KL(q \| p)$ is mode-seeking Here, we discuss and visualize the mode-seeking behavior of the reverse KL divergence. Introduction Recall that the reverse KL divergence between two distributions, $q(x)$ and $p(x)$ is defined as \[D_{KL}(q(x) \| p(x)) = \mathbb{E}_{q(x)}\left[ \log \frac{q(x)}{p(x)} \right] = \int_{\mathbb{X}} \log \frac{q(x)}{p(x)} q(x) dx.\] Expanding the log, we can write this in terms of an entropy term and a cross entropy term \begin{align} &\mathbb{E}_{q(x)}\left[ \log q(x) \right] - \mathbb{E}_{q(x)}\left[ \log p(x)
saved by
related reading
- Six (and a half) intuitions for KL divergence โ LessWronglesswrong.com
- Approximating KL Divergencejoschu.net
- Tuan Anh Letuananhle.co.uk
- KullbackโLeibler divergence - Wikipediaen.wikipedia.org
- Coordinate Ascent Mean-field Variational Inference (Univariate Gaussian Example)suzyahyah.github.io
- Eric Jang: A Beginner's Guide to Variational Methods: Mean-Field Approximationblog.evjang.com
- blog.alexalemi.com KL is All You Needblog.alexalemi.com
- Exponential families from a single KL identityarxiv.org
- RescaledKL.tmdanilorezende.com
- Short Notes on Divergence Measuresdanilorezende.com
- Mediumandacdemir-94699.medium.com
- 2403.18103.pdfarxiv.org