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)
Explore this link on the map โsaved by
related reading
- Six (and a half) intuitions for KL divergence โ LessWronglesswrong.com
- Approximating KL Divergencejoschu.net
- KullbackโLeibler divergence - Wikipediaen.wikipedia.org
- 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
- Short Notes on Divergence Measuresdanilorezende.com
- Mediumandacdemir-94699.medium.com
- Anas Aldadi on X: "We know VAEs try to match *Density values* using KL-Divergence, while score-matching try to match *Density gradients* using Fisher-Divergence but do you know that if you take KL and add Gaussian noise to it, the derivative of KL with respect to noise level is actually F-Div https://t.co/e6k6hhUhFT" / Xx.com
- Visual Information Theory -- colah's blogcolah.github.io
- What are Diffusion Models? | Lil'Loglilianweng.github.io
- Stable Diffusion I โ Mathematics Behind It | by Void | Mediummedium.com