โœณflรขneur โ€” a map of the web's best reading

Andy Jones

andrewcharlesjones.github.io ยท 1,769 words ยท saved by 1 readers

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