Stochastic Wasserstein Autoencoder for Probabilistic Sentence Generation

Hareesh Bahuleyan, Lili Mou, Hao Zhou, Olga Vechtomova
6/22/2018
cs.CLcs.LGstat.ML

Official code: HareeshBahuleyan/probabilistic_nlg (26 stars, Python, MIT, TensorFlow, last commit 2023-03-24).

Abstract

The variational autoencoder (VAE) imposes a probabilistic distribution (typically Gaussian) on the latent space and penalizes the Kullback--Leibler (KL) divergence between the posterior and prior. In NLP, VAEs are extremely difficult to train due to the problem of KL collapsing to zero.

Show full abstract

One has to implement various heuristics such as KL weight annealing and word dropout in a carefully engineered manner to successfully train a VAE for text. In this paper, we propose to use the Wasserstein autoencoder (WAE) for probabilistic sentence generation, where the encoder could be either stochastic or deterministic. We show theoretically and empirically that, in the original WAE, the stochastically encoded Gaussian distribution tends to become a Dirac-delta function, and we propose a variant of WAE that encourages the stochasticity of the encoder. Experimental results show that the latent space learned by WAE exhibits properties of continuity and smoothness as in VAEs, while simultaneously achieving much higher BLEU scores for sentence reconstruction.

View on arXivView PDF

Code Implementations(1)

TensorFlowMIT

Tensorflow Implementation of Stochastic Wasserstein Autoencoder for Probabilistic Sentence Generation (NAACL 2019).

264PythonMar 3, 20193 years agoMIT
autoencoderdialoggenerationreconstructionsentence+7 more

Similar Papers

Cite this paper

@article{bahuleyan2018stochastic,
  title  = {Stochastic Wasserstein Autoencoder for Probabilistic Sentence Generation},
  author = {Hareesh Bahuleyan and Lili Mou and Hao Zhou and Olga Vechtomova},
  year   = {2018},
  eprint = {1806.08462},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1806.08462}
}

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

Discussion