FlowSeq: Non-Autoregressive Conditional Sequence Generation with Generative Flow

Xuezhe Ma, Chunting Zhou, Xian Li, Graham Neubig, Eduard Hovy
9/5/2019
cs.CLcs.LG

Official code: XuezheMax/flowseq (243 stars, Apache-2.0, last commit 2020-01-28).

Abstract

Most sequence-to-sequence (seq2seq) models are autoregressive; they generate each token by conditioning on previously generated tokens. In contrast, non-autoregressive seq2seq models generate all tokens in one pass, which leads to increased efficiency through parallel processing on hardware such as GPUs. However, directly modeling the joint distribution of all tokens simultaneously is challenging, and even with increasingly complex model structures accuracy lags significantly behind autoregressive models. In this paper, we propose a simple, efficient, and effective model for non-autoregressive sequence generation using latent variable models. Specifically, we turn to generative flow, an elegant technique to model complex distributions using neural networks, and design several layers of flow tailored for modeling the conditional density of sequential latent variables. We evaluate this model on three neural machine translation (NMT) benchmark datasets, achieving comparable performance with state-of-the-art non-autoregressive NMT models and almost constant decoding time w.r.t the sequence length.

View on arXivView PDF

Code Implementations(1)

XuezheMax/flowseqOfficial100%
Apache-2.0

Generative Flow based Sequence-to-Sequence Toolkit written in Python.

24331Perl, PythonAug 14, 20196 years agoApache-2.0

Similar Papers

Cite this paper

@article{ma2019flowseq,
  title  = {FlowSeq: Non-Autoregressive Conditional Sequence Generation with Generative Flow},
  author = {Xuezhe Ma and Chunting Zhou and Xian Li and Graham Neubig and Eduard Hovy},
  year   = {2019},
  eprint = {1909.02480},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1909.02480}
}

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

Discussion