Lagging Inference Networks and Posterior Collapse in Variational Autoencoders

Junxian He, Daniel Spokoyny, Graham Neubig, Taylor Berg-Kirkpatrick
1/16/2019
cs.LGstat.ML

Official code: jxhe/vae-lagging-encoder (185 stars, MIT, last commit 2020-12-15).

Abstract

The variational autoencoder (VAE) is a popular combination of deep latent variable model and accompanying variational learning technique. By using a neural inference network to approximate the model's posterior on latent variables, VAEs efficiently parameterize a lower bound on marginal data likelihood that can be optimized directly via gradient methods. In practice, however, VAE training often results in a degenerate local optimum known as "posterior collapse" where the model learns to ignore the latent variable and the approximate posterior mimics the prior. In this paper, we investigate posterior collapse from the perspective of training dynamics. We find that during the initial stages of training the inference network fails to approximate the model's true posterior, which is a moving target. As a result, the model is encouraged to ignore the latent encoding and posterior collapse occurs. Based on this observation, we propose an extremely simple modification to VAE training to reduce inference lag: depending on the model's current mutual information between latent variable and observation, we aggressively optimize the inference network before performing each model update. Despite introducing neither new model components nor significant complexity over basic VAE, our approach is able to avoid the problem of collapse that has plagued a large amount of previous work. Empirically, our approach outperforms strong autoregressive baselines on text and image benchmarks in terms of held-out likelihood, and is competitive with more complex techniques for avoiding collapse while being substantially faster.

View on arXivView PDF

Code Implementations(1)

MIT

PyTorch implementation of "Lagging Inference Networks and Posterior Collapse in Variational Autoencoders" (ICLR 2019)

18533Python, Jupyter NotebookJul 19, 20185 years agoMIT
image-generationposterior-collapsetext-generationvae

Cite this paper

@article{he2019lagging,
  title  = {Lagging Inference Networks and Posterior Collapse in Variational Autoencoders},
  author = {Junxian He and Daniel Spokoyny and Graham Neubig and Taylor Berg-Kirkpatrick},
  year   = {2019},
  eprint = {1901.05534},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1901.05534}
}

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/1901.05534.svg)](https://codeofpaper.com/paper/1901.05534)

Discussion