HyperAIHyperAI

Command Palette

Search for a command to run...

4 months ago

Spherical Latent Spaces for Stable Variational Autoencoders

Jiacheng Xu; Greg Durrett

Spherical Latent Spaces for Stable Variational Autoencoders

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. 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.

Code Repositories

jiacheng-xu/vmf_vae_nlp
Official
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
topic-models-on-20newsgroupsvNVDM
C_v: 0.52
topic-models-on-ag-newsvNVDM
C_v: 0.44
NPMI: 0.028

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp