Discrete Flows: Invertible Generative Models of Discrete Data

Dustin Tran, Keyon Vafa, Kumar Krishna Agrawal, Laurent Dinh, Ben Poole
5/24/2019
201 citations
cs.LGstat.ML

Official code: google/edward2 (714 stars, Jupyter Notebook, Apache-2.0, TensorFlow, last commit 2026-10-05).

Abstract

While normalizing flows have led to significant advances in modeling high-dimensional continuous distributions, their applicability to discrete distributions remains unknown. In this paper, we show that flows can in fact be extended to discrete events---and under a simple change-of-variables formula not requiring log-determinant-Jacobian computations.

Show full abstract

Discrete flows have numerous applications. We consider two flow architectures: discrete autoregressive flows that enable bidirectionality, allowing, for example, tokens in text to depend on both left-to-right and right-to-left contexts in an exact language model; and discrete bipartite flows that enable efficient non-autoregressive generation as in RealNVP. Empirically, we find that discrete autoregressive flows outperform autoregressive baselines on synthetic discrete distributions, an addition task, and Potts models; and bipartite flows can obtain competitive performance with autoregressive baselines on character-level language modeling for Penn Tree Bank and text8.

View on arXivView PDF

Code Implementations(1)

google/edward2Official100%
TensorFlowApache-2.0

A simple probabilistic programming language.

71477Jupyter Notebook, PythonAug 7, 20191 months agoApache-2.0
bayesian-methodsdata-sciencedeep-learningmachine-learningneural-networks+3 more

Similar Papers

Cite this paper

@article{tran2019discrete,
  title  = {Discrete Flows: Invertible Generative Models of Discrete Data},
  author = {Dustin Tran and Keyon Vafa and Kumar Krishna Agrawal and Laurent Dinh and Ben Poole},
  year   = {2019},
  eprint = {1905.10347},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1905.10347}
}

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

Discussion