Compute KL(N(1,0.25)∥N(0,1)) with (I.13.5). Then
compute KL(N(0,1)∥N(1,0.25)) with the general
formula
21(v1/v2+(m1−m2)2/v2−1+log(v2/v1)).
Which direction does a VAE’s loss use, and what does the asymmetry mean?
Hint
The first is a narrow distribution measured against a wide one, the second
a wide one against a narrow one.
The VAE’s loss uses the first direction: the encoder’s distribution
measured against the prior, KL(q∥p). It is cheap for q to be
narrower than the prior and costly to put mass where the prior has
little. The reverse direction punishes the narrow distribution for every
place the wide one reaches and it does not, so it is more than three times
larger here.
The same direction appears in the gap of (I.13.4), KL(q∥p(z∣x)).
That is why an encoder fitted by the ELBO tends to sit inside the
posterior rather than cover it, the effect
I.13.X03 measures.