Two knobs on the ELBO
The VAE leaves two complaints behind. Its samples are blurry, and its fixed Gaussian prior is only roughly filled by the codes the encoder actually produces, so a prior sample can land where the decoder was never trained. The topic The reparameterization trick also left a hint: a different fixed decoder variance reweights the KL term.
Start again from the ELBO of one image:
The first term wants the code to say as much about as possible; the second charges for every nat it says. That leaves two independent knobs:
- change the balance between the terms — the β-VAE;
- change what a code is, a continuous Gaussian or one symbol out of — the VQ-VAE.
The first moves along a trade-off. The second changes where the difficulty of generation lives. Notation as before: an image , a code , an encoder , a decoder , a prior .