Latent Normalizing Flows for Discrete Sequences

Zachary M. Ziegler, Alexander M. Rush
1/29/2019
stat.MLcs.CLcs.LG
diffusion-flow

Official code: harvardnlp/TextFlow (122 stars, Python, MIT, last commit 2019-10-31).

Abstract

Normalizing flows are a powerful class of generative models for continuous random variables, showing both strong model flexibility and the potential for non-autoregressive generation. These benefits are also desired when modeling discrete random variables such as text, but directly applying normalizing flows to discrete sequences poses significant additional challenges.

Show full abstract

We propose a VAE-based generative model which jointly learns a normalizing flow-based distribution in the latent space and a stochastic mapping to an observed discrete space. In this setting, we find that it is crucial for the flow-based distribution to be highly multimodal. To capture this property, we propose several normalizing flow architectures to maximize model flexibility. Experiments consider common discrete sequence tasks of character-level language modeling and polyphonic music generation. Our results indicate that an autoregressive flow-based model can match the performance of a comparable autoregressive baseline, and a non-autoregressive flow-based model can improve generation speed with a penalty to performance.

View on arXivView PDF

Code Implementations(1)

MIT
12214PythonFeb 13, 20197 years agoMIT

Similar Papers

Cite this paper

@article{ziegler2019latent,
  title  = {Latent Normalizing Flows for Discrete Sequences},
  author = {Zachary M. Ziegler and Alexander M. Rush},
  year   = {2019},
  eprint = {1901.10548},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1901.10548}
}

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

Discussion