A Batch Normalized Inference Network Keeps the KL Vanishing Away

Qile Zhu, Jianlin Su, Wei Bi, Xiaojiang Liu, Xiyao Ma +2 more
4/27/2020
cs.LGcs.CL

Official code: valdersoul/bn-vae (34 stars, Python, MIT, last commit 2020-08-14).

Abstract

Variational Autoencoder (VAE) is widely used as a generative model to approximate a model's posterior on latent variables by combining the amortized variational inference and deep neural networks. However, when paired with strong autoregressive decoders, VAE often converges to a degenerated local optimum known as "posterior collapse".

Show full abstract

Previous approaches consider the Kullback Leibler divergence (KL) individual for each datapoint. We propose to let the KL follow a distribution across the whole dataset, and analyze that it is sufficient to prevent posterior collapse by keeping the expectation of the KL's distribution positive. Then we propose Batch Normalized-VAE (BN-VAE), a simple but effective approach to set a lower bound of the expectation by regularizing the distribution of the approximate posterior's parameters. Without introducing any new model component or modifying the objective, our approach can avoid the posterior collapse effectively and efficiently. We further show that the proposed BN-VAE can be extended to conditional VAE (CVAE). Empirically, our approach surpasses strong autoregressive baselines on language modeling, text classification and dialogue generation, and rivals more complex approaches while keeping almost the same training time as VAE.

View on arXivView PDF

Code Implementations(1)

valdersoul/bn-vaeOfficial100%
MIT
342Python, PerlApr 26, 20206 years agoMIT

Similar Papers

Cite this paper

@article{zhu2020batch,
  title  = {A Batch Normalized Inference Network Keeps the KL Vanishing Away},
  author = {Qile Zhu and Jianlin Su and Wei Bi and Xiaojiang Liu and Xiyao Ma and Xiaolin Li and Dapeng Wu},
  year   = {2020},
  eprint = {2004.12585},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2004.12585}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2004.12585.svg)](https://codeofpaper.com/paper/2004.12585)

Discussion