Spherical Latent Spaces for Stable Variational Autoencoders

Jiacheng Xu, Greg Durrett
8/31/2018
cs.CL

Official code: jiacheng-xu/vmf_vae_nlp (172 stars, Python, MIT, PyTorch, last commit 2018-12-12).

Abstract

A hallmark of variational autoencoders (VAEs) for text processing is their combination of powerful encoder-decoder models, such as LSTMs, with simple latent distributions, typically multivariate Gaussians. These models pose a difficult optimization problem: there is an especially bad local optimum where the variational posterior always equals the prior and the model does not use the latent variable at all, a kind of "collapse" which is encouraged by the KL divergence term of the objective.

Show full abstract

In this work, we experiment with another choice of latent distribution, namely the von Mises-Fisher (vMF) distribution, which places mass on the surface of the unit hypersphere. With this choice of prior and posterior, the KL divergence term now only depends on the variance of the vMF distribution, giving us the ability to treat it as a fixed hyperparameter. We show that doing so not only averts the KL collapse, but consistently gives better likelihoods than Gaussians across a range of modeling conditions, including recurrent language modeling and bag-of-words document modeling. An analysis of the properties of our vMF representations shows that they learn richer and more nuanced structures in their latent representations than their Gaussian counterparts.

View on arXivView PDF

Code Implementations(1)

PyTorchMIT

Code for EMNLP18 paper "Spherical Latent Spaces for Stable Variational Autoencoders"

17217PythonMar 1, 20187 years agoMIT
nlppytorchvaevon-mises-fisher

Similar Papers

Cite this paper

@article{xu2018spherical,
  title  = {Spherical Latent Spaces for Stable Variational Autoencoders},
  author = {Jiacheng Xu and Greg Durrett},
  year   = {2018},
  eprint = {1808.10805},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1808.10805}
}

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

Discussion